Skip to content

Commit dfc4121

Browse files
[pre-commit] Replace flake8 by ruff
1 parent 4a08909 commit dfc4121

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ repos:
55
hooks:
66
- id: check-merge-conflict
77
exclude: rst$
8+
- repo: https://github.com/astral-sh/ruff-pre-commit
9+
rev: v0.7.0
10+
hooks:
11+
- id: ruff
12+
args: [--fix]
813
- repo: https://github.com/asottile/yesqa
914
rev: v1.5.0
1015
hooks:
@@ -43,11 +48,6 @@ repos:
4348
exclude: ^(docs|tests)/.*
4449
additional_dependencies:
4550
- pytest
46-
- repo: https://github.com/pycqa/flake8
47-
rev: 7.1.1
48-
hooks:
49-
- id: flake8
50-
language_version: python3
5151
- repo: https://github.com/pre-commit/pygrep-hooks
5252
rev: v1.10.0
5353
hooks:

pyproject.toml

+8
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@ requires = [
99

1010
[tool.setuptools_scm]
1111
write_to = "pytest_asyncio/_version.py"
12+
13+
[tool.ruff]
14+
line-length = 88
15+
lint.select = [
16+
"E", # pycodestyle
17+
"F", # pyflakes
18+
"W", # pycodestyle
19+
]

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,3 @@ junit_family=xunit2
7474
filterwarnings =
7575
error
7676
ignore:The event_loop fixture provided by pytest-asyncio has been redefined.*:DeprecationWarning
77-
78-
[flake8]
79-
max-line-length = 88

0 commit comments

Comments
 (0)