Skip to content

Commit

Permalink
extract ruff settings into ruff.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
blooop committed Nov 14, 2024
1 parent 88231ff commit 615d4cf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
line-length = 100

[lint]
# E501: Lines too long (maximum of 79 characters).
ignore = [
"E501", # Long line that exceeds maximum allowed length.
"F841", # Local variable referenced before assignment, this is annoying during development.
]

# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
[lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"**/{tests,docs,tools}/*" = ["E402"]

0 comments on commit 615d4cf

Please sign in to comment.