diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index adf55b4..2114c2a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ exclude: | )$ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -28,13 +28,13 @@ repos: - javascript - json - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.3.5 hooks: - id: ruff args: [--fix] - id: ruff-format - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.15.2 hooks: - id: pyupgrade args: [--py39-plus] diff --git a/pyproject.toml b/pyproject.toml index 64e07d0..9f358c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,10 @@ extend-exclude = [ "*/migrations/*", ] line-length = 88 +target-version = "py39" + +[tool.ruff.lint] +ignore = [] select = [ # Reference: https://docs.astral.sh/ruff/rules/ "B", # flake8-bugbear @@ -36,7 +40,3 @@ select = [ "RUF100", # unused-noqa "RUF200", # invalid-pyproject-toml ] -target-version = "py39" - -[tool.ruff.lint] -ignore = [] diff --git a/tox.ini b/tox.ini index d88d2c2..95f0d2c 100644 --- a/tox.ini +++ b/tox.ini @@ -53,4 +53,4 @@ commands = [testenv:ruff] skip_install = true deps = ruff -commands = ruff check {posargs:--show-source .} +commands = ruff check {posargs:--output-format=full .}