Skip to content

Commit

Permalink
🔧 Update ruff config top-level linter settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sgraaf committed Mar 31, 2024
1 parent eb6462a commit 391d18f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.ruff]
select = ["ALL"]
ignore = [
lint.select = ["ALL"]
lint.ignore = [
"E501", # line too long, handled by black
"COM", # flake8-commas, handled by black
"CPY", # flake8-copyright
Expand Down
10 changes: 5 additions & 5 deletions {{ cookiecutter.project_name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ name = "{{ cookiecutter.package_name }}"
{% endif -%}

[tool.ruff]
select = ["ALL"]
ignore = [
lint.select = ["ALL"]
lint.ignore = [
"E501", # line too long, handled by black (pycodestyle)
"ANN003", # missing-type-kwargs (flake8-annotations)
"ANN101", # missing-type-self (flake8-annotations)
Expand All @@ -82,7 +82,7 @@ ignore = [
src = ["src", "tests", "docs"]
target-version = "py38" # the minimum Python version supported, used by pyupgrade

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # unused-import (Pyflakes)
]
Expand All @@ -101,12 +101,12 @@ target-version = "py38" # the minimum Python version supported, used by pyupgra
"ERA001", # commented-out-code (eradicate)
]

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = [
"{{ cookiecutter.project_name }}",
"tests",
]
lines-between-types = 0

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"

1 comment on commit 391d18f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.