Skip to content

Commit c7b61d4

Browse files
committed
add ruff and remove flake8
1 parent 13bf457 commit c7b61d4

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

ruff.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
line-length = 99
2+
ignore = [
3+
"PLR2004",
4+
"D104",
5+
"D107",
6+
"C901",
7+
"PT001",
8+
]
9+
exclude = ["venv*"]
10+
select = ["C", "D", "E", "F", "UP", "YTT", "PT", "W"]
11+
# "SIM" flake-simplify
12+
# "ARG" flake8-unused args
13+
# "B" bandit
14+
# "I" isort conflicts with isort config
15+
# "RUF" ruff base config
16+
[pydocstyle]
17+
convention = "pep257"
18+
[flake8-unused-arguments]
19+
ignore-variadic-names = true

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ add_ignore = D104,D107
1616
[tool:pytest]
1717
asyncio_mode = auto
1818

19+
[tool:ruff]
20+
target-version = "py38"
21+
1922
[mypy]
2023
check_untyped_defs = true

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
'pytest-cov>=4,<5',
2727
'pytest-asyncio==0.*',
2828
'pytest-xdist==3.*',
29-
'flake8==6.*',
30-
'flake8-docstrings==1.*',
29+
'ruff==0.0.261',
3130
'mypy==1.0.1',
31+
'types-pyserial==3.5.0.5'
3232
],
3333
},
3434
entry_points={

0 commit comments

Comments
 (0)