@@ -81,7 +81,7 @@ pytest = "*"
8181
8282[tool .pixi .feature .lint .tasks ]
8383pre-commit-install = { cmd = " pre-commit install" }
84- pre-commit = { cmd = " pre-commit run -v -- all-files --show-diff-on-failure " }
84+ pre-commit = { cmd = " pre-commit run -- all-files" }
8585mypy = { cmd = " mypy" , cwd = " ." }
8686pylint = { cmd = [" pylint" , " array_api_extra" ], cwd = " src" }
8787pyright = { cmd = " basedpyright" , cwd = " ." }
@@ -94,9 +94,11 @@ array-api-strict = "*"
9494numpy = " *"
9595
9696[tool .pixi .feature .tests .tasks ]
97- tests = { cmd = " pytest" }
98- tests-ci = { cmd = " pytest -ra --cov --cov-report=xml --cov-report=term --durations=20" }
97+ tests = { cmd = " pytest -v " }
98+ tests-ci = { cmd = " pytest -v - ra --cov --cov-report=xml --cov-report=term --durations=20" }
9999tests-vendor = { cmd = " pytest vendor_tests" }
100+ coverage = { cmd = [" coverage" , " html" ], depends-on = [" tests-ci" ] }
101+ open-coverage = { cmd = [" open" , " htmlcov/index.html" ], depends-on = [" coverage" ] }
100102
101103[tool .pixi .feature .docs .dependencies ]
102104sphinx = " >=7.0"
@@ -108,7 +110,7 @@ typing_extensions = ">=4.12.2,<4.13"
108110
109111[tool .pixi .feature .docs .tasks ]
110112docs = { cmd = [" sphinx-build" , " ." , " build/" ], cwd = " docs" }
111- open-docs = { cmd = [" open" , " build/index.html" ], cwd = " docs" }
113+ open-docs = { cmd = [" open" , " build/index.html" ], cwd = " docs" , depends-on = [ " docs " ] }
112114
113115[tool .pixi .feature .dev .dependencies ]
114116ipython = " *"
@@ -154,6 +156,7 @@ run.source = ["array_api_extra"]
154156report.exclude_also = [
155157 ' \.\.\.' ,
156158 ' if typing.TYPE_CHECKING:' ,
159+ ' if TYPE_CHECKING:' ,
157160]
158161
159162
@@ -200,11 +203,16 @@ target-version = "py310"
200203[tool .ruff .lint ]
201204extend-select = [
202205 " B" , # flake8-bugbear
206+ " F" , # Pyflakes
203207 " I" , # isort
208+ " E" , # Pycodestyle
209+ " W" , # Pycodestyle
210+ " N" , # pep8-naming
204211 " ARG" , # flake8-unused-arguments
205212 " C4" , # flake8-comprehensions
206213 " EM" , # flake8-errmsg
207214 " ICN" , # flake8-import-conventions
215+ " ISC" , # flake8-implicit-str-concat
208216 " G" , # flake8-logging-format
209217 " PGH" , # pygrep-hooks
210218 " PIE" , # flake8-pie
@@ -220,11 +228,14 @@ extend-select = [
220228 " EXE" , # flake8-executable
221229 " NPY" , # NumPy specific rules
222230 " PD" , # pandas-vet
231+ " UP" , # Pyupgrade
223232]
224233ignore = [
225234 " PLR09" , # Too many <...>
226235 " PLR2004" , # Magic value used in comparison
227236 " ISC001" , # Conflicts with formatter
237+ " N802" , # Function name should be lowercase
238+ " N806" , # Variable in function should be lowercase
228239]
229240
230241[tool .ruff .lint .per-file-ignores ]
0 commit comments