Skip to content

Commit

Permalink
Merge pull request #598 from mraspaud/add_npy_to_ruff
Browse files Browse the repository at this point in the history
Add NPY to ruff rules
  • Loading branch information
djhoese authored May 13, 2024
2 parents cc49062 + 56f4506 commit 4e18999
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,22 @@ requires = ["setuptools", "wheel", "numpy>=2.0.0rc1,<2.3", "Cython>=3", "version
build-backend = "setuptools.build_meta"

[tool.ruff]
line-length = 120
exclude = ["versioneer.py", "pyresample/version.py"]

[tool.ruff.lint]
# See https://docs.astral.sh/ruff/rules/
select = ["E", "W", "B", "D", "T10", "C90"]
select = ["E", "W", "B", "D", "T10", "C90", "NPY"]
# Remove D416 when all docstrings have been converted to google-style
ignore = ["D107", "D416"]
line-length = 120
exclude = ["versioneer.py", "pyresample/version.py"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"pyresample/test/*.py" = ["D102", "S101"] # assert allowed in tests

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
max-complexity = 10

[tool.mypy]
Expand Down

0 comments on commit 4e18999

Please sign in to comment.