Skip to content

Commit

Permalink
Enable ruff pep8-naming rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Schilling committed Feb 19, 2025
1 parent eaf6816 commit 0d51c77
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ select = [
"F",
# https://docs.astral.sh/ruff/rules/#flake8-simplify-sim
"SIM",
# https://docs.astral.sh/ruff/rules/#pep8-naming-n
"N",
]
ignore = [
# Whitespace before ':' (conflicts with Black)
Expand All @@ -66,10 +68,13 @@ ignore = [
"SIM102"
]


# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []

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

# Ad hoc exceptions
[lint.pep8-naming]
ignore-names = ["eHerkenning[a-zA-Z]*", "eSuite[A-Z][a-zA-Z]*", "BRP_[0-9]_[0-9]"]

0 comments on commit 0d51c77

Please sign in to comment.