diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 83329d8dfcf..487c9b5cddd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.231 + rev: v0.0.235 hooks: - id: ruff args: diff --git a/pyproject.toml b/pyproject.toml index 6f13604cdea..23a8ad9c1b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -240,7 +240,17 @@ asyncio_mode = "auto" [tool.ruff] target-version = "py310" -exclude = [] + +select = [ + "C", # complexity + "D", # docstrings + "E", # pycodestyle + "F", # pyflakes/autoflake + "T20", # flake8-print + "W", # pycodestyle + "UP", # pyupgrade + "PGH004", # Use specific rule codes when using noqa +] ignore = [ "D202", # No blank lines allowed after function docstring @@ -257,16 +267,6 @@ ignore = [ "E731", # do not assign a lambda expression, use a def "UP024", # Replace aliased errors with `OSError` ] -select = [ - "C", # complexity - "D", # docstrings - "E", # pycodestyle - "F", # pyflakes/autoflake - "T20", # flake8-print - "W", # pycodestyle - "UP", # pyupgrade - "PGH004", # Use specific rule codes when using noqa -] [tool.ruff.per-file-ignores] diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt index 34b68588285..5a120c9a13f 100644 --- a/requirements_test_pre_commit.txt +++ b/requirements_test_pre_commit.txt @@ -14,5 +14,5 @@ pycodestyle==2.10.0 pydocstyle==6.2.3 pyflakes==3.0.1 pyupgrade==3.3.1 -ruff==0.0.231 +ruff==0.0.235 yamllint==1.28.0