-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace flake8, isort etc. with ruff
- Loading branch information
Showing
5 changed files
with
44 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[tool.ruff] | ||
select = ["E", "F", "I", "W", "Q"] | ||
ignore = ["E501", "E402"] | ||
fixable = ["A", "B", "C", "D", "E", "F", "I"] | ||
unfixable = [] | ||
extend-exclude = [ | ||
"providers", | ||
] | ||
target-version = "py310" | ||
per-file-ignores = {} | ||
# Allow unused variables when underscore-prefixed. | ||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | ||
|
||
[tool.mypy] | ||
plugins = "pydantic.mypy" | ||
ignore_missing_imports = true | ||
follow_imports = "skip" | ||
|
||
[tool.pytest.ini_options] | ||
filterwarnings = [ | ||
"error", | ||
"ignore:.*parameter is deprecated for the.*:DeprecationWarning", | ||
"ignore:.*read_text is deprecated.*:DeprecationWarning", | ||
"ignore:.*open_text is deprecated.*:DeprecationWarning", | ||
"ignore:.*SixMetaPathImporter.*:ImportWarning", | ||
"ignore:.*PY_SSIZE_T_CLEAN will be required for.*:DeprecationWarning", | ||
"ignore:.*not found, cannot convert structure.*:", | ||
"ignore:.*will default to setting mass to 1.0.:", | ||
"ignore:.*is missing fields.*which are required if.*:", | ||
"ignore:.*the imp module is deprecated in favour of importlib.*:DeprecationWarning", | ||
"ignore:.*has an unrecognised prefix.*:", | ||
] | ||
testpaths = "tests" | ||
addopts = "-rs" | ||
|
||
[tool.isort] | ||
known_first_party = "optimade" | ||
profile = "black" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ pre-commit==3.0.4 | |
pylint==2.16.2 | ||
pytest==7.2.1 | ||
pytest-cov==4.0.0 | ||
ruff==0.0.247 | ||
types-all==1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ | |
"pre-commit~=3.0", | ||
"invoke~=2.0", | ||
"types-all==1.0.0", | ||
"ruff==0.0.247", | ||
] | ||
+ docs_deps | ||
+ testing_deps | ||
|