mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
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
This commit is contained in:
parent
7331d381af
commit
cd061aeef1
2
.gitignore
vendored
2
.gitignore
vendored
@ -41,3 +41,5 @@ pybind11Targets.cmake
|
|||||||
/.vscode
|
/.vscode
|
||||||
/pybind11/include/*
|
/pybind11/include/*
|
||||||
/pybind11/share/*
|
/pybind11/share/*
|
||||||
|
/docs/_build/*
|
||||||
|
.ipynb_checkpoints/
|
||||||
|
@ -92,12 +92,8 @@ repos:
|
|||||||
rev: v2.1.0
|
rev: v2.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: codespell
|
- id: codespell
|
||||||
name: codespell
|
exclude: ".supp$"
|
||||||
description: Checks for common misspellings in text files.
|
args: ["-L", "nd,ot,thist"]
|
||||||
entry: codespell
|
|
||||||
language: python
|
|
||||||
types: [text]
|
|
||||||
args: ["-q", "3", "--skip", "*.supp", "-L", "nd,ot,thist,readded"]
|
|
||||||
|
|
||||||
# The original pybind11 checks for a few C++ style items
|
# The original pybind11 checks for a few C++ style items
|
||||||
- repo: local
|
- repo: local
|
||||||
@ -105,7 +101,7 @@ repos:
|
|||||||
- id: disallow-caps
|
- id: disallow-caps
|
||||||
name: Disallow improper capitalization
|
name: Disallow improper capitalization
|
||||||
language: pygrep
|
language: pygrep
|
||||||
entry: PyBind|Numpy|Cmake|CCache
|
entry: PyBind|Numpy|Cmake|CCache|PyTest
|
||||||
exclude: .pre-commit-config.yaml
|
exclude: .pre-commit-config.yaml
|
||||||
|
|
||||||
- repo: local
|
- repo: local
|
||||||
|
@ -226,7 +226,7 @@ Bug fixes:
|
|||||||
* Fix ``py::gil_scoped_acquire`` assert with CPython 3.9 debug build.
|
* Fix ``py::gil_scoped_acquire`` assert with CPython 3.9 debug build.
|
||||||
`#2683 <https://github.com/pybind/pybind11/pull/2683>`_
|
`#2683 <https://github.com/pybind/pybind11/pull/2683>`_
|
||||||
|
|
||||||
* Fix issue with a test failing on PyTest 6.2.
|
* Fix issue with a test failing on pytest 6.2.
|
||||||
`#2741 <https://github.com/pybind/pybind11/pull/2741>`_
|
`#2741 <https://github.com/pybind/pybind11/pull/2741>`_
|
||||||
|
|
||||||
Warning fixes:
|
Warning fixes:
|
||||||
|
@ -315,7 +315,7 @@ function(pybind11_enable_warnings target_name)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Needs to be readded since the ordering requires these to be after the ones above
|
# Needs to be re-added since the ordering requires these to be after the ones above
|
||||||
if(CMAKE_CXX_STANDARD
|
if(CMAKE_CXX_STANDARD
|
||||||
AND CMAKE_CXX_COMPILER_ID MATCHES "Clang"
|
AND CMAKE_CXX_COMPILER_ID MATCHES "Clang"
|
||||||
AND PYTHON_VERSION VERSION_LESS 3.0)
|
AND PYTHON_VERSION VERSION_LESS 3.0)
|
||||||
|
Loading…
Reference in New Issue
Block a user