diff --git a/.ruff.toml b/.ruff.toml deleted file mode 100644 index 3537cc52..00000000 --- a/.ruff.toml +++ /dev/null @@ -1,8 +0,0 @@ -extend = "pyproject.toml" - -[lint.extend-per-file-ignores] -"src/geovista/geoplotter.py" = [ - # flake8-annotations (ANN) - # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann - "ANN401", # Dynamically typed expressions (typing.Any). -] diff --git a/MANIFEST.in b/MANIFEST.in index a2b650ab..3ee6f650 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -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 diff --git a/changelog/1217.contributor.rst b/changelog/1217.contributor.rst new file mode 100644 index 00000000..02904e7e --- /dev/null +++ b/changelog/1217.contributor.rst @@ -0,0 +1,4 @@ +Dropped the use of ``.ruff.toml`` to capture outstanding +`ruff `__ rule exceptions. Non-compliances +have been addressed or moved to the ``pyproject.toml``. +(:user:`bjlittle`) diff --git a/pyproject.toml b/pyproject.toml index a8192848..fac3e714 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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. @@ -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