Skip to content

Commit

Permalink
style: add some links to lint exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
christiansiegel committed Nov 8, 2023
1 parent 0933eb7 commit 8af3f90
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,17 @@ ignore = [
"EM101", # https://docs.astral.sh/ruff/rules/raw-string-in-exception/
"EM102", # https://docs.astral.sh/ruff/rules/f-string-in-exception/
"S101", # https://docs.astral.sh/ruff/rules/assert/
"TRY003",
"PD", # false positives; not using Pandas
"TRY003", # https://docs.astral.sh/ruff/rules/raise-vanilla-args/
"PD", # https://docs.astral.sh/ruff/rules/#pandas-vet-pd (false positives)
]
[tool.ruff.per-file-ignores]
"**/__init__.py" = ["F401"]
"tests/**/*.py" = ["S106", "S108", "ANN", "PT009"]
"tests/**/*.py" = [
"S106", # https://docs.astral.sh/ruff/rules/hardcoded-password-func-arg/
"S108", # https://docs.astral.sh/ruff/rules/hardcoded-temp-file/
"ANN", # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
"PT009" # https://docs.astral.sh/ruff/rules/pytest-unittest-assertion/
]
# the following exclusions have been introduced to prevent huge changes
# feel free to remove them and fix the code
"gitopscli/appconfig_api/app_tenant_config.py" = ["PTH110", "PTH112", "PTH118"]
Expand Down

0 comments on commit 8af3f90

Please sign in to comment.