Skip to content

Commit

Permalink
More ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Daemo00 committed Nov 19, 2023
1 parent 7cf098b commit 8d104af
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
16 changes: 7 additions & 9 deletions template/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# See https://pre-commit.com for more information
repos:
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
hooks:
- id: autoflake
- repo: https://github.com/pycqa/bandit
rev: 1.7.5
hooks:
Expand All @@ -16,8 +8,14 @@ repos:
rev: v0.1.6
hooks:
- id: ruff
args: [ --fix ]
args: [
--fix,
--config, "pyproject.toml",
]
- id: ruff-format
args: [
--config, "pyproject.toml",
]
- repo: https://github.com/pycqa/docformatter
rev: v1.7.5
hooks:
Expand Down
9 changes: 9 additions & 0 deletions template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,12 @@ requires = [
"wheel",
]
build-backend = "setuptools.build_meta"

[tool.ruff.lint]
select = [
"E4", "E7", "E9", "F", # Default
"D", # Enable all `pydocstyle` rules
]

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

0 comments on commit 8d104af

Please sign in to comment.