Skip to content

Commit 75a97d5

Browse files
committed
Replace code quality tools with ruff for linting and formatting in dev dependencies
1 parent c9bbd51 commit 75a97d5

1 file changed

Lines changed: 6 additions & 15 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,8 @@ dev = [
2828
"pytest-aiohttp>=1.0.5,<2.0",
2929
"pytest-cov>=7.0.0,<8.0",
3030
"prek>=0.3.8,<1.0",
31-
"black>=25.11,<26.0",
32-
"pylint>=3.2.7,<4.0",
33-
"isort>=5.10.1,<6.0",
31+
"ruff>=0.9.0,<1.0",
3432
"mypy>=1.19,<2.0",
35-
"flake8>=7.3.0,<8.0",
36-
"flake8-pyproject>=1.2.3,<2.0",
37-
"pyupgrade>=3.21.0,<4.0",
3833
]
3934

4035
[build-system]
@@ -50,18 +45,14 @@ include = [
5045
packages = ["sagemcom_api"]
5146
only-packages = true
5247

53-
[tool.isort]
54-
# https://github.com/PyCQA/isort/wiki/isort-Settings
55-
profile = "black"
56-
force_sort_within_sections = true
57-
combine_as_imports = true
48+
[tool.ruff]
49+
line-length = 140
50+
target-version = "py39"
5851

59-
[tool.flake8]
52+
[tool.ruff.lint]
53+
select = ["E", "F", "UP", "B", "SIM", "I", "N"]
6054
ignore = ["E501"]
6155

62-
[tool.pylint.format]
63-
max-line-length = 140
64-
6556
[tool.pytest.ini_options]
6657
asyncio_mode = "auto"
6758
testpaths = ["tests"]

0 commit comments

Comments
 (0)