-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
167 lines (150 loc) · 3.72 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "ase-fleur"
dynamic = ["version"] # read from masci_tools/__init__.py
description = "Package adding IO/calculator functionalities for the FLEUR code to the ase package."
authors = [{name = "The JuDFT team", email = "he.janssen@fz-juelich.de"}]
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Chemistry",
]
keywords = ['ase', 'fleur']
requires-python = ">=3.7"
dependencies = [
'ase>=3.23.0b1',
'masci_tools~=0.13',
]
[project.optional-dependencies]
pre-commit = [
'pre-commit>=2.6.0',
'pylint~=2.11.1',
]
testing = [
'pytest~=6.0',
'pytest-cov~=3.0',
]
[project.urls]
Home = "https://github.com/JuDFTteam/ase-fleur"
Source = "https://github.com/JuDFTteam/ase-fleur"
[project.entry-points."ase.ioformats"]
"fleur-inpgen" = "ase_fleur.io:inpgen_format"
"fleur-outxml" = "ase_fleur.io:outxml_format"
"fleur-xml" = "ase_fleur.io:xml_format"
[project.entry-points."ase.calculator"]
"fleur" = "ase_fleur.calculator:Fleur"
[tool.flit.module]
name = "ase_fleur"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--durations=30 --quiet --cov=ase_fleur --cov=tests --cov-report xml"
testpaths = [
"tests"
]
[tool.pydocstyle]
ignore = ["D105","D2","D4"]
match-dir="(?!(tests)).*"
[tool.mypy]
python_version = "3.8"
warn_unused_ignores = true
warn_redundant_casts = true
no_implicit_optional = true
show_error_codes = true
warn_no_return = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
[tool.black]
line-length = 120
target-version = ['py38']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)
'''
[tool.pylint.basic]
good-names = [
"_",
"x",
"y",
"z",
"i",
"j",
"k",
]
no-docstring-rgx = "^_"
docstring-min-length = 5
[tool.pylint.classes]
exclude-protected = [
"_asdict",
"_fields",
"_replace",
"_source",
"_make",
"_Element",
"_ElementTree",
"_pprint_dict",
"_pprint_set",
"_dispatch"
]
[tool.pylint.design]
max-locals = 20
[tool.pylint.format]
max-line-length = 120
[tool.pylint.messages_control]
disable = [
"too-few-public-methods",
"too-many-public-methods",
"wrong-import-position",
"line-too-long",
"locally-disabled",
"wildcard-import",
"too-many-instance-attributes",
"fixme",
"len-as-condition",
"wrong-import-order",
"import-outside-toplevel",
"duplicate-code",
"unnecessary-pass",
"invalid-name",
"unused-variable",
"unused-argument",
"unused-import",
"missing-function-docstring",
"too-many-locals",
"too-many-branches",
"c-extension-no-member",
"too-many-statements",
"too-many-nested-blocks",
"too-many-lines",
"too-many-return-statements",
"too-many-arguments",
"pointless-string-statement",
"no-member",
"consider-using-f-string"
]