Skip to content

Commit

Permalink
Fix: update configuration for new keys⚡
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelZe committed Feb 10, 2024
1 parent 7236aa6 commit 799596f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:
# Similar to: https://stackoverflow.com/a/73603491/5755604
additional_dependencies: ['types-PyYAML']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.0
rev: v0.2.1
hooks:
- id: ruff
args:
Expand Down
16 changes: 10 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ exclude_also = [
show_missing = true

[tool.ruff]


include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]


[tool.ruff.lint]

# See rules: https://beta.ruff.rs/docs/rules/
select = [
"C", # flake8-comprehensions
Expand All @@ -96,8 +103,6 @@ select = [
"W", # pycodestyle warnings
]

include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]

ignore = [
"E501", # line too long, handled by black
"N803", # argument name should be lowercase
Expand All @@ -107,18 +112,17 @@ ignore = [
"W191", # tab identation
]

[tool.ruff.lint]
preview = true

[tool.ruff.format]
preview = true

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["tclf"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["D104", "F401"] # disable missing docstrings in __init__, unused imports

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

0 comments on commit 799596f

Please sign in to comment.