Skip to content

Commit

Permalink
feat: ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause committed Sep 7, 2023
1 parent ba6234a commit 82523f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,11 @@ repos:
args:
- --jobs=1
- --extend-ignore=W503,E203,E501
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.265'
hooks:
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ plugins = ['sqlalchemy.ext.mypy.plugin']
[tool.isort]
profile = "black"

[tool.ruff]
select = ["ALL"]
target-version = "py37"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 82523f1

Please sign in to comment.