Skip to content

Commit

Permalink
Add ruff pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Jul 17, 2023
1 parent 9cacfa6 commit 3af5724
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.0.276'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@ extend-exclude = '''
[tool.pytest.ini_options]
env_files = ["web.env"]
testpaths = "web"

[tool.ruff]
ignore = [
"E501", # line too long
"E722", # bare expect
]

0 comments on commit 3af5724

Please sign in to comment.