@@ -18,21 +18,11 @@ pytest-cov = "^6.0.0"
1818tox = " ^4.0.0"
1919
2020[tool .poetry .group .lint .dependencies ]
21- black = " ^24.0.0 "
21+ ruff = " ==0.12.1 "
2222commitizen = " ^3.0.0"
23- darglint = " ^1.8.1"
24- flake8 = " ^7.0.0"
25- flake8-alphabetize = " ^0.0.19"
26- flake8-bugbear = " ^24.0.0"
27- flake8-comprehensions = " ^3.10.0"
28- flake8-docstrings = " ^1.5.0"
29- flake8-pytest-style = " ^2.0.0"
30- flake8-use-fstring = " ^1.1"
3123"github3.py" = " ^4.0.0"
32- isort = " ^5.10.1"
33- mccabe = " ^0.7.0"
3424pre-commit = " ^4.0.0"
35- pyright = " ^ 1.1.267 "
25+ pyright = " == 1.1.402 "
3626
3727[tool .poetry .group .docs .dependencies ]
3828furo = " *"
@@ -55,9 +45,6 @@ bump_pattern = '^(build|deprecate|feat|fix|perf)'
5545bump_map = { feat = " MINOR" , build = " PATCH" , deprecate = " PATCH" , fix = " PATCH" , perf = " PATCH" }
5646schema_pattern = ' (build|ci|deprecate|docs|feat|fix|perf|refactor|release|style|test)(\(\w+\))?!?:\s\S.*'
5747
58- [tool .isort ]
59- profile = ' black'
60-
6148[tool .pytest .ini_options ]
6249log_cli_level = 10
6350addopts = " --color=yes"
@@ -74,6 +61,33 @@ exclude = [
7461]
7562pythonPlatform = " All"
7663
64+ [tool .ruff .lint ]
65+ select = [" ALL" ]
66+ ignore = [
67+ " COM" , # the formatter handles trailing commas
68+ " G004" , # use f strings in logging for a consistent string format
69+ " PYI056" , # use extend on __all__
70+ " RET501" , # don't care about return None semantics
71+ " RET502" , # don't care about return None semantics
72+ " RET503" , # don't care about return None semantics
73+ ]
74+
75+ [tool .ruff .lint .per-file-ignores ]
76+ "docs/conf.py" = [
77+ " INP001" , # docs directory isn't a python package
78+ ]
79+ "tests/*" = [
80+ " ANN" , # tests don't need type annotations
81+ " ARG" , # arguments in pytest are fixtures
82+ " C90" , # tests are as complex as they need to be
83+ " INP001" , # tests don't need __init__
84+ " RET" , # tests don't need returns
85+ " S" , # asserts used in tests
86+ ]
87+
88+ [tool .ruff .lint .pydocstyle ]
89+ convention = " google"
90+
7791[build-system ]
7892requires = [" poetry-core>=1.0" ]
7993build-backend = " poetry.core.masonry.api"
0 commit comments