22requires = [" setuptools>=42" , " cmake>=3.18" , " ninja" ]
33build-backend = " setuptools.build_meta"
44
5+
56[tool .check-manifest ]
67ignore = [
78 " tests/**" ,
@@ -15,6 +16,7 @@ ignore = [
1516 " noxfile.py" ,
1617]
1718
19+
1820[tool .mypy ]
1921files = [" pybind11" ]
2022python_version = " 3.6"
@@ -24,7 +26,7 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
2426warn_unreachable = true
2527
2628[[tool .mypy .overrides ]]
27- module = [" ghapi.*" , " setuptools.* " ]
29+ module = [" ghapi.*" ]
2830ignore_missing_imports = true
2931
3032
@@ -55,10 +57,11 @@ messages_control.disable = [
5557 " unused-argument" , # covered by Ruff ARG
5658]
5759
60+
5861[tool .ruff ]
5962select = [
6063 " E" , " F" , " W" , # flake8
61- " B" , " B904 " , # flake8-bugbear
64+ " B" , # flake8-bugbear
6265 " I" , # isort
6366 " N" , # pep8-naming
6467 " ARG" , # flake8-unused-arguments
@@ -77,14 +80,13 @@ select = [
7780 " YTT" , # flake8-2020
7881]
7982ignore = [
80- " PLR" , # Design related pylint
81- " E501" , # Line too long (Black is enough)
82- " PT011" , # Too broad with raises in pytest
83- " PT004" , # Fixture that doesn't return needs underscore (no, it is fine)
84- " SIM118" ,# iter(x) is not always the same as iter(x.keys())
83+ " PLR" , # Design related pylint
84+ " E501" , # Line too long (Black is enough)
85+ " PT011" , # Too broad with raises in pytest
86+ " PT004" , # Fixture that doesn't return needs underscore (no, it is fine)
87+ " SIM118" , # iter(x) is not always the same as iter(x.keys())
8588]
8689target-version = " py37"
87- typing-modules = [" scikit_build_core._compat.typing" ]
8890src = [" src" ]
8991unfixable = [" T20" ]
9092exclude = []
0 commit comments