Skip to content

Commit

Permalink
ruff: drop use of .ruff.toml (#1217)
Browse files Browse the repository at this point in the history
* ruff: drop use of .ruff.toml

* add changelog news fragment
  • Loading branch information
bjlittle authored Nov 20, 2024
1 parent 00a82ed commit a431136
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
8 changes: 0 additions & 8 deletions .ruff.toml

This file was deleted.

1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ exclude .all-contributorsrc
exclude .gitignore
exclude .pre-commit-config.yaml
exclude .readthedocs.yml
exclude .ruff.toml
include *.md
exclude CHANGELOG.rst
include CITATION.cff
Expand Down
4 changes: 4 additions & 0 deletions changelog/1217.contributor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Dropped the use of ``.ruff.toml`` to capture outstanding
`ruff <https://github.com/astral-sh/ruff>`__ rule exceptions. Non-compliances
have been addressed or moved to the ``pyproject.toml``.
(:user:`bjlittle`)
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ preview = false
# Allow information-source (U+2139) which could be confused for "i".
allowed-confusables = [""]
ignore = [
# NOTE: Non-permanent exclusions should be added to ".ruff.toml".

# flake8-annotations (ANN)
# https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
"ANN101", # Missing type annotation for 'self' in method.
Expand Down Expand Up @@ -264,6 +262,11 @@ max-statements = 91
# https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt
"FBT001", # flake8-boolean-trap: Boolean-typed positional argument in function definition.
]
# TODO @bjlittle: resolve use of typing.Any
"src/geovista/geoplotter.py" = [
# https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
"ANN401", # flake8-annotations: Dynamically typed expressions (typing.Any).
]
"test_*.py" = [
# flake8-annotations (ANN)
# https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
Expand Down

0 comments on commit a431136

Please sign in to comment.