diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index da48c76..ec76055 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,3 +17,4 @@ repos: rev: v0.0.292 hooks: - id: ruff + args: [--fix, --exit-non-zero-on-fix] diff --git a/docs/conf.py b/docs/conf.py index 1ee1ca2..9f39b80 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,7 +17,7 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings") -import django +import django # noqa: E402 django.setup() diff --git a/pyproject.toml b/pyproject.toml index 30a2492..e80b337 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,6 +63,10 @@ dev = [ "twine", ] +[tool.ruff] +exclude = ["user_sessions/migrations/*.py"] +line-length = 100 + [tool.setuptools] packages = ["user_sessions"]