Skip to content

Commit 5fbc4d7

Browse files
committed
add ruff
1 parent 20e4cdd commit 5fbc4d7

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

pyproject.toml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ python = "^3.9"
4242
cryptography = ">=3.4.6"
4343
requests = "^2.25.1"
4444

45-
[tool.poetry.dev-dependencies]
45+
[tool.poetry.group.dev.dependencies]
4646
alabaster = "^0.7.12"
4747
black = "^24.4.2"
4848
isort = "^5.13.2"
@@ -54,7 +54,27 @@ responses = "^0.13.0"
5454
sphinx = "^3.5.2"
5555
sphinx-autobuild = "^2021.3.14"
5656
coverage = "^7"
57+
ruff = "^0.4.6"
58+
pytest-ruff = "^0.3.2"
5759

5860
[build-system]
5961
requires = ["poetry-core>=1.0.0"]
6062
build-backend = "poetry.core.masonry.api"
63+
64+
[tool.ruff.lint]
65+
select = [
66+
# pycodestyle
67+
"E",
68+
# Pyflakes
69+
"F",
70+
# pyupgrade
71+
"UP",
72+
# flake8-bugbear
73+
"B",
74+
# flake8-simplify
75+
"SIM",
76+
# isort
77+
"I",
78+
]
79+
ignore = ["E501", "I001", "SIM102"]
80+
exclude = ["examples/*"]

0 commit comments

Comments
 (0)