Skip to content

Commit cd061ae

Browse files
authored
style: pre-commit cleanup (#3111)
* style: disallow PyTest (should be pytest) * style: cleanup spell checking a bit * style: add a few items to the .gitignore
1 parent 7331d38 commit cd061ae

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ pybind11Targets.cmake
4141
/.vscode
4242
/pybind11/include/*
4343
/pybind11/share/*
44+
/docs/_build/*
45+
.ipynb_checkpoints/

.pre-commit-config.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,16 @@ repos:
9292
rev: v2.1.0
9393
hooks:
9494
- id: codespell
95-
name: codespell
96-
description: Checks for common misspellings in text files.
97-
entry: codespell
98-
language: python
99-
types: [text]
100-
args: ["-q", "3", "--skip", "*.supp", "-L", "nd,ot,thist,readded"]
95+
exclude: ".supp$"
96+
args: ["-L", "nd,ot,thist"]
10197

10298
# The original pybind11 checks for a few C++ style items
10399
- repo: local
104100
hooks:
105101
- id: disallow-caps
106102
name: Disallow improper capitalization
107103
language: pygrep
108-
entry: PyBind|Numpy|Cmake|CCache
104+
entry: PyBind|Numpy|Cmake|CCache|PyTest
109105
exclude: .pre-commit-config.yaml
110106

111107
- repo: local

docs/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Bug fixes:
226226
* Fix ``py::gil_scoped_acquire`` assert with CPython 3.9 debug build.
227227
`#2683 <https://github.com/pybind/pybind11/pull/2683>`_
228228

229-
* Fix issue with a test failing on PyTest 6.2.
229+
* Fix issue with a test failing on pytest 6.2.
230230
`#2741 <https://github.com/pybind/pybind11/pull/2741>`_
231231

232232
Warning fixes:

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ function(pybind11_enable_warnings target_name)
315315
endif()
316316
endif()
317317

318-
# Needs to be readded since the ordering requires these to be after the ones above
318+
# Needs to be re-added since the ordering requires these to be after the ones above
319319
if(CMAKE_CXX_STANDARD
320320
AND CMAKE_CXX_COMPILER_ID MATCHES "Clang"
321321
AND PYTHON_VERSION VERSION_LESS 3.0)

0 commit comments

Comments
 (0)