@@ -89,63 +89,3 @@ include = ["deeprank2*"]
8989[tool .pytest .ini_options ]
9090# pytest options: -ra: show summary info for all test outcomes
9191addopts = " -ra"
92-
93- [tool .ruff ]
94- output-format = " concise"
95- line-length = 159
96-
97- [tool .ruff .lint ]
98- select = [" ALL" ]
99- pydocstyle.convention = " google" # docstring settings
100- ignore = [
101- # Unrealistic for this code base
102- " PTH" , # flake8-use-pathlib
103- " N" , # naming conventions
104- " PLR0912" , # Too many branches,
105- " PLR0913" , # Too many arguments in function definition
106- " D102" , # Missing docstring in public method
107- # Unwanted
108- " FBT" , # Using boolean arguments
109- " ANN101" , # Missing type annotation for `self` in method
110- " ANN102" , # Missing type annotation for `cls` in classmethod
111- " ANN204" , # Missing return type annotation for special (dunder) method
112- " B028" , # No explicit `stacklevel` keyword argument found in warning
113- " S105" , # Possible hardcoded password
114- " S311" , # insecure random generators
115- " PT011" , # pytest-raises-too-broad
116- " SIM108" , # Use ternary operator
117- # Unwanted docstrings
118- " D100" , # Missing module docstring
119- " D104" , # Missing public package docstring
120- " D105" , # Missing docstring in magic method
121- " D107" , # Missing docstring in `__init__`
122- ]
123-
124- # Autofix settings
125- fixable = [" ALL" ]
126- unfixable = [" F401" ] # unused imports (should not disappear while editing)
127- extend-safe-fixes = [
128- " D415" , # First line should end with a period, question mark, or exclamation point
129- " D300" , # Use triple double quotes `"""`
130- " D200" , # One-line docstring should fit on one line
131- " TCH" , # Format type checking only imports
132- " ISC001" , # Implicitly concatenated strings on a single line
133- " EM" , # Exception message variables
134- " RUF013" , # Implicit Optional
135- " B006" , # Mutable default argument
136- ]
137-
138- isort.known-first-party = [" deeprank2" ]
139-
140- [tool .ruff .lint .per-file-ignores ]
141- "tests/*" = [
142- " S101" , # Use of `assert` detected
143- " PLR2004" , # Magic value used in comparison
144- " D101" , # Missing class docstring
145- " D102" , # Missing docstring in public method
146- " D103" , # Missing docstring in public function
147- " SLF001" , # private member access
148- ]
149- "docs/*" = [" ALL" ]
150- "tests/perf/*" = [" T201" ] # Use of print statements
151- "*.ipynb" = [" T201" , " E402" , " D103" ]
0 commit comments