forked from materialsproject/pymatgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
73 lines (62 loc) · 1.82 KB
/
setup.cfg
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
[isort]
profile = black
[tool:pytest]
addopts = -x --durations=30 --quiet -rxXs --color=yes -p no:warnings
[pycodestyle]
count = true
ignore = E121,E123,E126,E133,E226,E241,E242,E704,W503,W504,W505,E741,W605,W293,W291,W292,E203,E231
max-line-length = 120
statistics = true
exclude = docs_rst/*.py
[flake8]
exclude = .git,__pycache__,docs_rst/conf.py,tests
# B019: Use of `functools.lru_cache` on methods can lead to memory leaks
# B023: Function definition does not bind loop variable
extend-ignore = E741,W291,W293,E501,E231,E203,B019,B023
max-line-length = 120
per-file-ignores =
# F401: imported but unused
__init__.py: F401
[pydocstyle]
convention = google
# D100: Missing docstring in public module
# D104: Missing docstring in public package
# D105: Missing docstring in magic method
# D107: Missing docstring in __init__
# D200: One-line docstring should fit on one line with quotes
# D205: 1 blank line required between summary line and description
# D212: Multi-line docstring summary should start at the first line
# D415: First line should end with ., ? or !
add-ignore = D100,D104,D105,D107,D200,D205,D212,D415
[coverage:run]
omit =
pymatgen/cli
relative_files = true
[coverage.report]
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
@deprecated
show_plot
[mypy]
ignore_missing_imports = true
namespace_packages = true
explicit_package_bases = true
[mypy-tabulate.*]
ignore_missing_imports = true
[mypy-requests.*]
ignore_missing_imports = true
[autoflake]
in-place = true
remove-unused-variables = true
remove-all-unused-imports = true
expand-star-imports = true
ignore-init-module-imports = true
[codespell]
ignore-words-list = titel,alls,ans,nd,mater,nwo,te,hart,ontop,ist,ot,fo