Skip to content

Commit

Permalink
feat: ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause committed Sep 4, 2023
1 parent 175b45a commit a5b8841
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 a5b8841

Please sign in to comment.