Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
86a64290
Unverified
Commit
86a64290
authored
May 24, 2024
by
Henry Schreiner
Committed by
GitHub
May 24, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: some cleanup (#5137)
parent
4d0fcedc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
19 deletions
+11
-19
.pre-commit-config.yaml
+7
-6
pyproject.toml
+3
-13
tests/pytest.ini
+1
-0
No files found.
.pre-commit-config.yaml
View file @
86a64290
...
...
@@ -25,14 +25,14 @@ repos:
# Clang format the codebase automatically
-
repo
:
https://github.com/pre-commit/mirrors-clang-format
rev
:
"
v18.1.
4
"
rev
:
"
v18.1.
5
"
hooks
:
-
id
:
clang-format
types_or
:
[
c++
,
c
,
cuda
]
# Ruff, the Python auto-correcting linter/formatter written in Rust
-
repo
:
https://github.com/astral-sh/ruff-pre-commit
rev
:
v0.4.
3
rev
:
v0.4.
5
hooks
:
-
id
:
ruff
args
:
[
"
--fix"
,
"
--show-fixes"
]
...
...
@@ -78,7 +78,7 @@ repos:
-
id
:
trailing-whitespace
# Also code format the docs
-
repo
:
https://github.com/a
sottile
/blacken-docs
-
repo
:
https://github.com/a
damchainz
/blacken-docs
rev
:
"
1.16.0"
hooks
:
-
id
:
blacken-docs
...
...
@@ -119,7 +119,7 @@ repos:
# Use tools/codespell_ignore_lines_from_errors.py
# to rebuild .codespell-ignore-lines
-
repo
:
https://github.com/codespell-project/codespell
rev
:
"
v2.
2.6
"
rev
:
"
v2.
3.0
"
hooks
:
-
id
:
codespell
exclude
:
"
.supp$"
...
...
@@ -142,13 +142,14 @@ repos:
# PyLint has native support - not always usable, but works for us
-
repo
:
https://github.com/PyCQA/pylint
rev
:
"
v3.
1.0
"
rev
:
"
v3.
2.2
"
hooks
:
-
id
:
pylint
files
:
^pybind11
# Check schemas on some of our YAML files
-
repo
:
https://github.com/python-jsonschema/check-jsonschema
rev
:
0.28.
2
rev
:
0.28.
4
hooks
:
-
id
:
check-readthedocs
-
id
:
check-github-workflows
...
...
pyproject.toml
View file @
86a64290
...
...
@@ -21,7 +21,6 @@ ignore = [
files
=
["pybind11"]
python_version
=
"3.8"
strict
=
true
show_error_codes
=
true
enable_error_code
=
[
"ignore-without-code"
,
"redundant-expr"
,
"truthy-bool"
]
warn_unreachable
=
true
...
...
@@ -30,18 +29,6 @@ module = ["ghapi.*"]
ignore_missing_imports
=
true
[tool.pytest.ini_options]
minversion
=
"6.0"
addopts
=
[
"-ra"
,
"--showlocals"
,
"--strict-markers"
,
"--strict-config"
]
xfail_strict
=
true
filterwarnings
=
["error"]
log_cli_level
=
"info"
testpaths
=
[
"tests"
,
]
timeout
=
300
[tool.pylint]
master.py-version
=
"3.6"
reports.output-format
=
"colorized"
...
...
@@ -93,3 +80,6 @@ isort.known-first-party = ["env", "pybind11_cross_module_tests", "pybind11_tests
[tool.ruff.lint.per-file-ignores]
"tests/**"
=
[
"EM"
,
"N"
,
"E721"
]
"tests/test_call_policies.py"
=
["PLC1901"]
[tool.repo-review]
ignore
=
["PP"]
tests/pytest.ini
View file @
86a64290
...
...
@@ -20,3 +20,4 @@ filterwarnings =
# bogus numpy ABI warning (see numpy/#432)
ignore:.*numpy.dtype
size
changed.*:RuntimeWarning
ignore:.*numpy.ufunc
size
changed.*:RuntimeWarning
default:The
global
interpreter
lock:RuntimeWarning
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment