Skip to content

Commit

Permalink
Switch to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
blag committed Oct 11, 2023
1 parent bf3eeb3 commit 33a0154
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ repos:
rev: v0.0.292
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")

import django
import django # noqa: E402

django.setup()

Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ dev = [
"twine",
]

[tool.ruff]
exclude = ["user_sessions/migrations/*.py"]
line-length = 100

[tool.setuptools]
packages = ["user_sessions"]

Expand Down

0 comments on commit 33a0154

Please sign in to comment.