Skip to content

Commit

Permalink
Add lint prefix to ruff configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy committed Feb 14, 2024
1 parent 1fd1137 commit 642a0e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ testpaths = [
[tool.ruff]
fix = true
force-exclude = true
ignore = [
target-version = "py39"
lint.ignore = [
"COM812", # trailing commas (ruff-format recommended)
"D203", # no-blank-line-before-class
"D212", # multi-line-summary-first-line
"D407", # removed dashes lines under sections
"D417", # argument description in docstring (unreliable)
"ISC001", # simplify implicit str concatenation (ruff-format recommended)
]
per-file-ignores = {"*tests*" = [
lint.per-file-ignores = {"*tests*" = [
"INP001",
"S101",
], "hooks*" = [
"INP001",
"T201",
]}
select = [
lint.select = [
"ALL",
]
target-version = "py39"
mccabe.max-complexity = 18
lint.mccabe.max-complexity = 18

[tool.tomlsort]
all = true
Expand Down
13 changes: 6 additions & 7 deletions {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,27 +72,26 @@ testpaths = [
[tool.ruff]
fix = true
force-exclude = true
ignore = [
lint.ignore = [
"COM812", # trailing commas (ruff-format recommended)
"D203", # no-blank-line-before-class
"D212", # multi-line-summary-first-line
"D407", # removed dashes lines under sections
"D417", # argument description in docstring (unreliable)
"ISC001", # simplify implicit str concatenation (ruff-format recommended)
]
per-file-ignores = {"tests*" = [
lint.per-file-ignores = {"tests*" = [
"INP001",
"S101",
]}
select = [
lint.select = [
"ALL",
]
target-version = "py{{cookiecutter.min_python_version | replace('.', '')}}"
isort.known-first-party = [
lint.isort.known-first-party = [
"{{cookiecutter.project_slug | replace('-', '_')}}",
]
mccabe.max-complexity = 18
pep8-naming.classmethod-decorators = [
lint.mccabe.max-complexity = 18
lint.pep8-naming.classmethod-decorators = [
"classmethod",
]

Expand Down

0 comments on commit 642a0e6

Please sign in to comment.