Skip to content

Commit

Permalink
Update ruff.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
TheByronHimes committed Sep 26, 2023
1 parent 728b3f5 commit fe4b9aa
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ ignore = [
"PLW", # pylint warnings
"RUF001", # ambiguous unicode character strings
"RUF010", # explicit conversion to string or repr: !s or !r
"B008", # function call in arg defaults
"RUF012", # mutable class variables need typing.ClassVar annotation
"N818", # Errors need to have Error suffix
"B008", # function call in arg defaults,
"PLR2004", # magic numbers should be constants
]

line-length = 88
Expand All @@ -37,15 +40,19 @@ fixable = [
"D", # pydocstyle
]

src = ["src", "tests", "examples"]

target-version = "py39"

[mccabe]
max-complexity = 10

[per-file-ignores]
"scripts/*" = ["PL", "S", "SIM", "D"]
"tests/*" = ["S", "SIM"]
"tests/*" = ["S", "SIM", "PLR"]
".devcontainer/*" = ["S", "SIM", "D"]
"examples/*" = ["S", "D"]
"__init__.py" = ["D"]

[pydocstyle]
convention = "pep257"

0 comments on commit fe4b9aa

Please sign in to comment.