diff --git a/.ruff.toml b/.ruff.toml index dca23e32..da37dd22 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -18,23 +18,11 @@ lint.ignore = [ ] [lint.extend-per-file-ignores] -"conftest.py" = [ - # flake8-annotations (ANN) - # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann - "ANN001", # Missing type annotation for function argument. - "ANN201", # Missing return type annotation for public function. -] "src/geovista/geoplotter.py" = [ # flake8-annotations (ANN) # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann "ANN401", # Dynamically typed expressions (typing.Any). ] -"test_*.py" = [ - # flake8-annotations (ANN) - # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann - "ANN001", # Missing type annotation for function argument. - "ANN201", # Missing return type annotation for public funciton. -] "test_slice_lines.py" = [ # eradicate (ERA) # https://docs.astral.sh/ruff/rules/#eradicate-era diff --git a/changelog/1212.contributor.rst b/changelog/1212.contributor.rst new file mode 100644 index 00000000..86b3ccaa --- /dev/null +++ b/changelog/1212.contributor.rst @@ -0,0 +1,2 @@ +Complied with `ruff `__ +``flake8-annotations`` (``ANN``) rules. (:user:`bjlittle`) diff --git a/pyproject.toml b/pyproject.toml index 5851979b..053bffc5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -224,6 +224,12 @@ max-complexity = 26 # https://docs.astral.sh/ruff/rules/print/ "T201", # flake8-print: print found. ] +"conftest.py" = [ + # flake8-annotations (ANN) + # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann + "ANN001", # Missing type annotation for function argument. + "ANN201", # Missing return type annotation for public function. +] "src/geovista/cli.py" = [ # https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt "FBT001", # flake8-boolean-trap: Boolean-typed positional argument in function definition. @@ -246,6 +252,12 @@ max-complexity = 26 # https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt "FBT001", # flake8-boolean-trap: Boolean-typed positional argument in function definition. ] +"test_*.py" = [ + # flake8-annotations (ANN) + # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann + "ANN001", # Missing type annotation for function argument. + "ANN201", # Missing return type annotation for public funciton. +] [tool.ruff.lint.pydocstyle]