Skip to content

Commit

Permalink
Safely ignore new linting errors after checking
Browse files Browse the repository at this point in the history
  • Loading branch information
huong-li-nguyen committed Jan 2, 2024
1 parent df97e1c commit d2552dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@ target-version = "py38"
known-first-party = ["vizro"]

[tool.ruff.per-file-ignores]
# Ignore current false positives for pydantic models subclassing across files
# See: https://github.com/astral-sh/ruff/issues/5243#issuecomment-1860776975
"**/models/**" = ["RUF012"]
# Tests can use magic values, assertions, and relative imports, ignore missing docstrings,
# compare to empty string
"**/tests/**" = ["PLR2004", "S101", "TID252", "D100", "D101", "D102", "D103", "PLC1901"]
"**/tests/**" = ["PLR2004", "S101", "TID252", "D100", "D101", "D102", "D103", "PLC1901", "RUF012"]
# Ignore import violations in all __init__.py files
"__init__.py" = ["E402", "F401"]

Expand Down

0 comments on commit d2552dc

Please sign in to comment.