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 dab2bdf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@ dev = [
"django-debug-toolbar",
# Testing
"coverage",
"flake8",
"tox",
"tox-pyenv",
"detox",
"isort",
# Transifex
"transifex-client",
# Documentation
Expand All @@ -63,6 +61,10 @@ dev = [
"twine",
]

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

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

Expand Down

0 comments on commit dab2bdf

Please sign in to comment.