forked from ACEsuit/mace-jax
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (84 loc) · 2.62 KB
/
pyproject.toml
File metadata and controls
89 lines (84 loc) · 2.62 KB
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
[build-system]
requires = [
"setuptools>=42",
"wheel",
]
build-backend = "setuptools.build_meta"
# Make isort compatible with black
[tool.isort]
profile = "black"
# Pylint
[tool.pylint.'MESSAGES CONTROL']
disable = [
"line-too-long",
"no-member",
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"too-many-arguments",
"too-many-locals",
"not-callable",
"logging-fstring-interpolation",
"logging-not-lazy",
"invalid-name",
"too-few-public-methods",
"too-many-instance-attributes",
"too-many-statements",
"too-many-branches",
"import-outside-toplevel",
"duplicate-code",
]
[tool.pylint.MASTER]
ignore-paths = [
]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"PL", # pylint
"F", # Pyflakes
"UP", # pyupgrade
"I", # isort
]
ignore = [
"F401", # Module imported but unused
"E501", # Line too long ({width} > {limit} characters)
"E701", # Multiple statements on one line (colon)
"E731", # Do not assign a lambda expression, use a def
"E402", # Module level import not at top of file
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments in function definition
"PLR0915", # Too many statements
"PLR2004", # Magic value used instead of constant
"PLW0603", # Using the global statement
"PLW2901", # redefined-loop-name
"PLR1714", # consider-using-in
"PLR5501", # else-if-used
]
fixable = ["ALL"]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# this is entirely optional, you can remove this if you wish to
[tool.ruff.format]
# use single quotes for strings.
quote-style = "single"
# indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.pytest.ini_options]
addopts = "-m 'not slow'"
markers = [
"slow: marks tests that require extended runtime",
]
filterwarnings = [
"ignore:Creating NamedTuple classes using keyword arguments is deprecated.*:DeprecationWarning",
"ignore:`use_fallback` is deprecated.*:DeprecationWarning:cuequivariance",
"ignore:The TorchScript type system doesn't support instance-level annotations.*:UserWarning:torch",
"ignore:No artists with labels found to put in legend.*:UserWarning:matplotlib",
"ignore:.*TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD.*:UserWarning:torch",
"ignore:.*TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD.*:UserWarning:e3nn",
]
testpaths = ["tests"]