Skip to content

Commit 86a6429

Browse files
authored
chore: some cleanup (#5137)
1 parent 4d0fced commit 86a6429

File tree

3 files changed

+11
-19
lines changed

3 files changed

+11
-19
lines changed

.pre-commit-config.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ repos:
2525

2626
# Clang format the codebase automatically
2727
- repo: https://github.com/pre-commit/mirrors-clang-format
28-
rev: "v18.1.4"
28+
rev: "v18.1.5"
2929
hooks:
3030
- id: clang-format
3131
types_or: [c++, c, cuda]
3232

3333
# Ruff, the Python auto-correcting linter/formatter written in Rust
3434
- repo: https://github.com/astral-sh/ruff-pre-commit
35-
rev: v0.4.3
35+
rev: v0.4.5
3636
hooks:
3737
- id: ruff
3838
args: ["--fix", "--show-fixes"]
@@ -78,7 +78,7 @@ repos:
7878
- id: trailing-whitespace
7979

8080
# Also code format the docs
81-
- repo: https://github.com/asottile/blacken-docs
81+
- repo: https://github.com/adamchainz/blacken-docs
8282
rev: "1.16.0"
8383
hooks:
8484
- id: blacken-docs
@@ -119,7 +119,7 @@ repos:
119119
# Use tools/codespell_ignore_lines_from_errors.py
120120
# to rebuild .codespell-ignore-lines
121121
- repo: https://github.com/codespell-project/codespell
122-
rev: "v2.2.6"
122+
rev: "v2.3.0"
123123
hooks:
124124
- id: codespell
125125
exclude: ".supp$"
@@ -142,13 +142,14 @@ repos:
142142

143143
# PyLint has native support - not always usable, but works for us
144144
- repo: https://github.com/PyCQA/pylint
145-
rev: "v3.1.0"
145+
rev: "v3.2.2"
146146
hooks:
147147
- id: pylint
148148
files: ^pybind11
149149

150+
# Check schemas on some of our YAML files
150151
- repo: https://github.com/python-jsonschema/check-jsonschema
151-
rev: 0.28.2
152+
rev: 0.28.4
152153
hooks:
153154
- id: check-readthedocs
154155
- id: check-github-workflows

pyproject.toml

+3-13
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ ignore = [
2121
files = ["pybind11"]
2222
python_version = "3.8"
2323
strict = true
24-
show_error_codes = true
2524
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
2625
warn_unreachable = true
2726

@@ -30,18 +29,6 @@ module = ["ghapi.*"]
3029
ignore_missing_imports = true
3130

3231

33-
[tool.pytest.ini_options]
34-
minversion = "6.0"
35-
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
36-
xfail_strict = true
37-
filterwarnings = ["error"]
38-
log_cli_level = "info"
39-
testpaths = [
40-
"tests",
41-
]
42-
timeout=300
43-
44-
4532
[tool.pylint]
4633
master.py-version = "3.6"
4734
reports.output-format = "colorized"
@@ -93,3 +80,6 @@ isort.known-first-party = ["env", "pybind11_cross_module_tests", "pybind11_tests
9380
[tool.ruff.lint.per-file-ignores]
9481
"tests/**" = ["EM", "N", "E721"]
9582
"tests/test_call_policies.py" = ["PLC1901"]
83+
84+
[tool.repo-review]
85+
ignore = ["PP"]

tests/pytest.ini

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ filterwarnings =
2020
# bogus numpy ABI warning (see numpy/#432)
2121
ignore:.*numpy.dtype size changed.*:RuntimeWarning
2222
ignore:.*numpy.ufunc size changed.*:RuntimeWarning
23+
default:The global interpreter lock:RuntimeWarning

0 commit comments

Comments
 (0)