Skip to content

Merge 'upstream/master' (70a58c5) #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
44678e5
Shuffling code in test_multiple_inheritance.cpp to separate struct/cl…
rwgk Mar 5, 2021
f110889
Use correct duration representation when casting from datetime.timdel…
bstaletic Mar 8, 2021
0e01c24
Generalizing suppression for pypocketfft. (#2896)
rwgk Mar 9, 2021
3df0ee6
docs: typo in classes.rst (#2926)
jjyyxx Apr 2, 2021
c2db53d
fix: catch missing self argument in overloads constructor (#2914)
rhaschke Apr 2, 2021
1259db6
Fix Pybind11Extension on mingw64 (#2921)
jeromerobert Apr 2, 2021
f676782
env: Add surrogate for pytest.deprecated_call for ptyest<3.9 (#2923)
EricCousineau-TRI Apr 2, 2021
ad6bf5c
Adding PyGILState_Check() in object_api<>::operator(). (#2919)
rwgk Apr 3, 2021
16c23fe
chore(deps): bump pre-commit/action from v2.0.0 to v2.0.2 (#2935)
dependabot[bot] Apr 6, 2021
4f0727f
Fix the enabling of default extension handling (#2938)
weimingzha0 Apr 6, 2021
e0c1dad
chore: add myself to CODEOWNERS (#2940)
henryiii Apr 10, 2021
6709abb
Allow function pointer extraction from overloaded functions (#2944)
otamachan Apr 13, 2021
62976cf
fix: using -Werror-all for Intel (#2948)
philbucher Apr 14, 2021
114be7f
docs: remove recommonmark (#2955)
henryiii Apr 15, 2021
e08a581
Fix compilation with gcc < 5 (#2956)
mvoelkle-cern Apr 19, 2021
5e4804b
tests: use master commit for pytest on 3.10 (#2967)
henryiii Apr 21, 2021
bca4b36
chore(deps): bump pre-commit/action from v2.0.2 to v2.0.3 (#2964)
dependabot[bot] Apr 21, 2021
5443043
ci: install Boost for boost checks (#2968)
henryiii Apr 22, 2021
0c93a0f
Fix Unicode support for ostream redirects (#2982)
tttapa May 4, 2021
417fd12
Fix: fix typo of WITHOUT_SOABI (#2992)
akawashiro May 6, 2021
b6ec0e9
functions: Add doc on incorrect argument index (#2979)
EricCousineau-TRI May 6, 2021
bc7cf6e
chore(deps): bump jwlawson/actions-setup-cmake from 1.8 to 1.9 (#3000)
dependabot[bot] May 14, 2021
f61855b
chore(deps): bump ilammy/msvc-dev-cmd from 1 to 1.8.0 (#3001)
dependabot[bot] May 14, 2021
14023c9
chore(deps): bump ilammy/msvc-dev-cmd from 1.8.0 to 1.8.1 (#3021)
dependabot[bot] May 27, 2021
3ac690b
Explicitly export exception types. (#2999)
oraluben May 27, 2021
e25b150
Adjusting valgrind suppression for pypocketfft to resolve systematic …
rwgk May 27, 2021
4c7697d
Add const T to docstring generation. (#3020)
jhale Jun 8, 2021
cd4b49a
Update py::kwargs examples to pass by reference (#3038)
Skylion007 Jun 17, 2021
b4b67f0
Fix typos (#3044)
Skylion007 Jun 17, 2021
19d99a8
Working around Centos 8 failure. (#3030)
rwgk Jun 18, 2021
79178e7
fix(setup_helpers): try import multiprocessing.synchronize too (#3043)
jbarlow83 Jun 18, 2021
af6218f
fix(clang-tidy): Apply performance fixes from clang-tidy (#3046)
Skylion007 Jun 19, 2021
e0b5cbd
chore(clang-tidy): add more modernize clang-tidy checks (#3049)
Skylion007 Jun 19, 2021
9b3b357
chore(deps): bump ilammy/msvc-dev-cmd from 1.8.1 to 1.9.0 (#3027)
dependabot[bot] Jun 19, 2021
d00fc62
use CMAKE_INSTALL_FULL_INCLUDEDIR (#3005)
dotlambda Jun 19, 2021
3b30b0a
fix(clang-tidy): clang-tidy readability and misc fixes, like adding c…
Skylion007 Jun 21, 2021
dac74eb
fix(clang-tidy): performance fixes applied in tests and CI (#3051)
Skylion007 Jun 22, 2021
484b0f0
Updating and slightly enhancing instructions for running clang-tidy. …
rwgk Jun 22, 2021
93e6919
fix: enable py::implicitly_convertible<py::none, ...> for py::class_-…
crisluengo Jun 26, 2021
fbae8f3
pickle setstate: setattr __dict__ only if not empty (#2972)
rwgk Jun 30, 2021
cad79c1
tests: remove very minor oversight in PR #3059. (#3066)
rwgk Jun 30, 2021
733f8de
Avoid string copy if possible when passing a Python object to std::os…
jonathan-conder-sm Jul 1, 2021
f067deb
avoid unnecessary strlen (#3058)
cyyever Jul 1, 2021
5bcaaa0
Add a std::filesystem::path <-> os.PathLike caster. (#2730)
anntzer Jul 2, 2021
6d44094
Check dict item accesses where it isn't already checked (#2863)
virtuald Jul 2, 2021
795e3c4
Removing `AlignConsecutiveAssignments: true`. (#3067)
rwgk Jul 2, 2021
8bee61b
docs: fix various typos (#3075)
luzpaz Jul 4, 2021
0ad116d
Adding codespell to .pre-commit-config.yaml (follow-on to PR #3075). …
rwgk Jul 6, 2021
c090c8c
Unify cast_error message thrown by [simple|unpacking]_collector (#3013)
rhaschke Jul 6, 2021
6d1b197
Splitting out pybind11/stl/filesystem.h. (#3077)
rwgk Jul 8, 2021
b5357d1
fix(clang-tidy): Enable clang-tidy else-after-return and redundant vo…
Skylion007 Jul 9, 2021
bac5a0c
Go all the way fixing clang-tidy issues to avoid the NOLINTNEXTLINE c…
rwgk Jul 9, 2021
cf006af
Fix typos and docs style (#3088)
Jul 10, 2021
0f4761b
Rollback of DOWNLOAD_CATCH=OFF change merged via PR #3059. (#3092)
rwgk Jul 11, 2021
7a64b8a
docs: fix script issues for changelog compilation (#3100)
henryiii Jul 12, 2021
2d46869
NOLINT reduction (#3096)
rwgk Jul 12, 2021
7472d37
Adding iostream.h thread-safety documentation. (#2995)
rwgk Jul 12, 2021
f0a65c8
docs(fix): spelling mistake in recent commit
henryiii Jul 12, 2021
9f11951
Fixing spelling errors that went undetected because the pre-commit sp…
rwgk Jul 12, 2021
ddf0efb
chore: add nox support (#3101)
henryiii Jul 12, 2021
7509064
More precise return_value_policy::automatic documentation. (#2920)
rwgk Jul 12, 2021
84fdadf
chore: update pre-commit hooks
henryiii Jul 12, 2021
11e12fe
chore: move some config to pyproject.toml
henryiii Jul 12, 2021
0e2e003
style: add pyupgrade check, 2.7+
henryiii Jul 12, 2021
6a644c8
docs: update changelog (#3099)
henryiii Jul 13, 2021
25e470c
fix(clang-tidy): Add cppcoreguidelines-init-vars,slicing, and throw-b…
Skylion007 Jul 13, 2021
2b7985e
Improve documentation of discard_as_unraisable() API (#2697)
jbarlow83 Jul 13, 2021
1be0a0a
Add helper to build in-tree extensions. (#2831)
anntzer Jul 13, 2021
aca6c3b
* Removing stray semicolons (discovered by running clang-format v12 f…
rwgk Jul 14, 2021
7331d38
Raise codec errors when casting to std::string (#2903)
sloretz Jul 14, 2021
cd061ae
style: pre-commit cleanup (#3111)
henryiii Jul 14, 2021
c4b0dc7
Add shellcheck style checking (#3114)
Skylion007 Jul 14, 2021
5cd3750
Enable -Wstrict-aliasing warning (#2816)
bstaletic Jul 15, 2021
31843d4
docs: reduce visibility of 3.9.0 warning (#3105)
henryiii Jul 15, 2021
2415c09
feat(package): support pipx run (#3117)
henryiii Jul 15, 2021
55f6f6e
Fix: RTD Docutils Build (#3119)
ax3l Jul 15, 2021
1b10292
chore: support PDF from nox (#3121)
henryiii Jul 15, 2021
4359e00
Introducing PYBIND11_VERSION_HEX (#3120)
rwgk Jul 15, 2021
6642f38
docs: update changelog (#3122)
henryiii Jul 16, 2021
65e95ea
chore: bump to 2.7.0 (#3123)
henryiii Jul 16, 2021
74935f8
chore: post-release (#3128)
henryiii Jul 17, 2021
34f587d
Removing all warning pragmas that have not effect. (#3127)
rwgk Jul 17, 2021
9626483
[pre-commit.ci] pre-commit autoupdate (#3134)
pre-commit-ci[bot] Jul 20, 2021
6d5d4e7
Move object in pop method of List. (#3116)
blacktea Jul 20, 2021
d65edfb
Feature/local exception translator (#2650)
jesse-sony Jul 21, 2021
e58c689
Specified encoding in setup.py calls of open() (#3137)
ka-bo Jul 21, 2021
ff97f10
Removing MSVC C4996 from pragma block at the top of pybind11.h (#3129)
rwgk Jul 26, 2021
7904ba1
Adding pragma warning(disable: 4522) for MSVC <= 2017. (#3142)
rwgk Jul 26, 2021
7f76d79
[pre-commit.ci] pre-commit autoupdate (#3143)
pre-commit-ci[bot] Jul 26, 2021
a0f862d
Removing MSVC C4800 from pragma block at the top of pybind11.h (#3141)
rwgk Jul 26, 2021
a0b9759
Allow python builtins to be used as callbacks (#1413)
davidhewitt Jul 27, 2021
7cc0ebb
fix: the CMake config in Python package had a hard coded path (#3144)
henryiii Jul 27, 2021
9beaa92
maint(clang-tidy): Improve code readability with explicit boolean cas…
Skylion007 Jul 27, 2021
2164c2e
Removing __INTEL_COMPILER section from pragma block at the top of pyb…
rwgk Jul 27, 2021
f4721a7
Accommodating environments that define __STDC_WANT_LIB_EXT1__ even if…
rwgk Jul 28, 2021
b72ca7d
Removing MSVC C4100 from pragma block at the top of pybind11.h (#3150)
rwgk Jul 29, 2021
c14b193
chore: increase CMake upper limit (#3124)
henryiii Jul 29, 2021
b1fdbe6
chore: add discussions link (#3159)
henryiii Jul 29, 2021
b425972
Limiting pragma for ignoring GCC 7 -Wnoexcept-type to the scope of py…
rwgk Jul 30, 2021
9e8a741
fix: Mingw64 corrected and add a CI job to test it (#3132)
jeromerobert Jul 30, 2021
e2573dc
Moving pragma for MSVC warning C4505 from pybind11.h to existing list…
rwgk Jul 30, 2021
dcbda8d
Removing MSVC C4127 from pragma block at the top of pybind11.h (#3152)
rwgk Jul 30, 2021
f4f4632
[pre-commit.ci] pre-commit autoupdate (#3167)
pre-commit-ci[bot] Aug 3, 2021
c0756cc
fix: func_handle for rule of two (#3169)
Skylion007 Aug 3, 2021
a2b78a8
chore: changelog update (#3163)
henryiii Aug 3, 2021
5f34c42
chore: bump to version 2.7.1
henryiii Aug 3, 2021
82adacb
fix: include hex version in bump
henryiii Aug 3, 2021
c30f57d
chore: start development for 2.8.0
henryiii Aug 3, 2021
5f4d725
fix: version number hex
henryiii Aug 3, 2021
1fafd1b
fix: apply simpler expression with fewer workarounds
henryiii Aug 6, 2021
089328f
Revert "fix: apply simpler expression with fewer workarounds"
henryiii Aug 6, 2021
3893f37
maint(clang-tidy): Bugprone enable checks (#3166)
Skylion007 Aug 6, 2021
af70073
Removing GCC -Wunused-but-set-parameter from pragma block at the top …
rwgk Aug 6, 2021
6ac8efe
test_eval: Show example of working closure (#2743)
EricCousineau-TRI Aug 6, 2021
61ee923
Consistent step name "Python tests". (#3180)
rwgk Aug 7, 2021
ff590c1
maint(perf): Optimize Numpy constructor to remove copies by value. (#…
Skylion007 Aug 9, 2021
4c7e509
PYBIND11_NOINLINE-related cleanup. (#3179)
rwgk Aug 9, 2021
0be2ea0
[pre-commit.ci] pre-commit autoupdate (#3185)
pre-commit-ci[bot] Aug 9, 2021
7d3b057
Improved workaround for Centos 8 failure (follow-on to PR #3030). (#3…
rwgk Aug 12, 2021
d6841f6
chore(deps): bump jwlawson/actions-setup-cmake from 1.9 to 1.10 (#3196)
dependabot[bot] Aug 13, 2021
9df2f1f
maint(precommit): Apply isort (#3195)
Skylion007 Aug 13, 2021
1bcd94c
Removing last remnants of pragma block at the top of pybind11.h (#3186)
rwgk Aug 14, 2021
617cb65
[Bugfix] Fix errant const methods (#3194)
Skylion007 Aug 14, 2021
774b5ff
Removing obsolete eigen.h warning suppression pragmas. (#3198)
rwgk Aug 17, 2021
998d45e
Cleanup of file-scoped and globally-scoped warning suppression pragma…
rwgk Aug 19, 2021
4f29b8a
ci: extend msys2 mingw CI (#3207)
lkeegan Aug 19, 2021
b3d18f3
[pre-commit.ci] pre-commit autoupdate (#3213)
pre-commit-ci[bot] Aug 23, 2021
fdac5fb
chore: support targeting different Python versions with nox (#3214)
henryiii Aug 23, 2021
6cbabc4
maint(clang-tidy): Enable cpp-coreguideline slicing checks (#3210)
Skylion007 Aug 23, 2021
c8ce4b8
Clone of @virtuald's PR #2112 with minor enhancements. (#3215)
rwgk Aug 24, 2021
031a700
Add make_simple_namespace function and tests (#2840)
joukewitteveen Aug 26, 2021
59ad1e7
reshape for numpy arrays (#984)
ncullen93 Aug 26, 2021
db44afa
tests: fix pytest usage on Python 3.10 (#3221)
henryiii Aug 26, 2021
503ff2a
view for numpy arrays (#987)
ncullen93 Aug 26, 2021
930bb16
Call PySys_SetArgv when initializing interpreter. (#2341)
drmoose Aug 26, 2021
cb60ed4
Fix enum value's __int__ returning non-int when underlying type is bo…
Vigilans Aug 26, 2021
777352f
Adding `ssize_t_cast` to support passing `size_t` or `ssize_t` values…
rwgk Aug 28, 2021
76d939d
[pre-commit.ci] pre-commit autoupdate (#3231)
pre-commit-ci[bot] Aug 30, 2021
d6474ed
fix: memory leak in cpp_function (#3228) (#3229)
yuantailing Aug 31, 2021
a46f623
Minor tweaks. (#3230)
rwgk Aug 31, 2021
49173e4
Minor follow-on to PR #1334 (Fix enum value's __int__ returning non-i…
rwgk Aug 31, 2021
d71ba0c
(perf): Add a missing noexcept to a pytype constructor (#3236)
Skylion007 Sep 2, 2021
39a0aac
docs fix to avoid nonexistent SmartCompile (#3241)
thomasballinger Sep 8, 2021
6abf2ba
CodeHealth: Enabling clang-tidy google-explicit-constructor (#3250)
rwgk Sep 9, 2021
4c6bee3
fix: Set __file__ constant when using eval_file (#1300) (#3233)
Skylion007 Sep 9, 2021
4d5ad03
Avoid use of temporary `bytes` object in string_caster for UTF-8 (#3257)
jbms Sep 9, 2021
ae07d4c
maint(Clang-Tidy): readability-const-return (#3254)
Skylion007 Sep 10, 2021
121b91f
Fixing NOLINT mishap (#3260)
rwgk Sep 10, 2021
0e59958
Fix thread safety for pybind11 loader_life_support (#3237)
laramiel Sep 10, 2021
9978ed5
Fix capsule bug (#3261)
Skylion007 Sep 10, 2021
6c65ab5
Follow-on to PR #3254, to address user code breakages. (#3263)
rwgk Sep 13, 2021
3ed31e9
[pre-commit.ci] pre-commit autoupdate (#3266)
pre-commit-ci[bot] Sep 13, 2021
e0031bf
include/pybind11/numpy.h: gcc 4.8.4 does not have is_trivially_copyab…
mkoeppe Sep 15, 2021
04dd326
docs: update CHANGELOG (#3276)
henryiii Sep 17, 2021
14976c8
Eliminate duplicate TLS keys for loader_life_support stack (#3275)
jbms Sep 20, 2021
d0f3c51
Enable defining custom __new__ (#3265)
Skylion007 Sep 20, 2021
6e6975e
Fix test case with __new__ (#3285)
Skylion007 Sep 20, 2021
077a16e
[pre-commit.ci] pre-commit autoupdate (#3286)
pre-commit-ci[bot] Sep 20, 2021
ee0c5ee
Add make_value_iterator (#3271)
bmerry Sep 21, 2021
0fb981b
Add blacken-docs and pycln pre-commit hooks (#3292)
Skylion007 Sep 22, 2021
b06a6f4
feat: Slice allowing None with py::object or std::optional (#1101)
henryiii Sep 22, 2021
1dc9a23
chore(deps): bump jwlawson/actions-setup-cmake from 1.10 to 1.11 (#3294)
dependabot[bot] Sep 23, 2021
2fa3fcf
Revert "Add make_value_iterator (#3271)"
henryiii Sep 23, 2021
5f46e47
tests: check simple iteration of pairs (#3296)
henryiii Sep 23, 2021
2a78abf
Ensure PYBIND11_TLS_REPLACE_VALUE evaluates its arguments only once (…
jbms Sep 23, 2021
21282e6
feat: reapply fixed version of #3271 (#3293)
henryiii Sep 23, 2021
6ad3f87
fix(build): avoid a possible warning about shadowed variables and cha…
henryiii Sep 23, 2021
409be83
CMake: react to python version changes
wjakob Sep 24, 2021
62c4909
Add `custom_type_setup` attribute (#3287)
jbms Sep 24, 2021
d58699c
fix(cmake): reduce chance for variable collision (#3302)
henryiii Sep 24, 2021
6bce3bd
docs: update CHANGELOG (#3304)
henryiii Sep 25, 2021
6be6430
[pre-commit.ci] pre-commit autoupdate (#3312)
pre-commit-ci[bot] Sep 28, 2021
c9bbf8d
docs: fix minor typo (#3311)
philbucher Sep 28, 2021
a1830d5
docs: mention title conventions in PR template (#3313)
henryiii Sep 29, 2021
b4e1ab8
Docs: Demonstrate non-enum internal types in example (#3314)
xaedes Sep 30, 2021
b3573ac
feat: add `.keys` and `.values` to bind_map (#3310)
bmerry Oct 1, 2021
ad96655
fix: replace free() with std::free() (#3321)
Skylion007 Oct 4, 2021
d7a7edc
tests: support Eigen configuration
henryiii Oct 4, 2021
9f146a5
All `-DDOWNLOAD_EIGEN=OFF` (to work around gitlab eigen outage).
rwgk Oct 3, 2021
591db0b
docs: update CHANGELOG for 2.8
henryiii Oct 1, 2021
20aae3e
ci: disable Eigen due to Cert issue on CentOS
henryiii Oct 4, 2021
c9a319c
chore: version 2.8.0 final
henryiii Oct 4, 2021
3747dc2
Revert "All `-DDOWNLOAD_EIGEN=OFF` (to work around gitlab eigen outag…
henryiii Oct 4, 2021
97976c1
[pre-commit.ci] pre-commit autoupdate (#3325)
pre-commit-ci[bot] Oct 4, 2021
ba9f919
chore: get back to work after 2.8.0
henryiii Oct 4, 2021
47ed124
Fix some formatting in the v2.8.0 changelog (#3339)
bmerry Oct 8, 2021
ed09664
chore(deps): bump ilammy/msvc-dev-cmd from 1.9.0 to 1.10.0 (#3338)
dependabot[bot] Oct 8, 2021
f4c81e0
maint: Add additional linter-related pre-commit hooks (#3337)
Skylion007 Oct 8, 2021
750e38d
Update eval.h (#3344)
naddu77 Oct 9, 2021
8a7c266
Fix make_key_iterator/make_value_iterator for prvalue iterators (#3348)
bmerry Oct 11, 2021
02c0557
[pre-commit.ci] pre-commit autoupdate (#3353)
pre-commit-ci[bot] Oct 11, 2021
7c58058
Correct options on Eigen::MappedSparseMatrix & adding MSVC C4127 supp…
rwgk Oct 11, 2021
56b49c2
ci: fix mingw checks by pinning (#3375)
jeromerobert Oct 18, 2021
931f664
ci: cancel in-progress on repeated pushes (#3370)
henryiii Oct 18, 2021
f791dc8
fix: deprecate make_simple_namespace, fix Python 3.11 (#3374)
henryiii Oct 19, 2021
2d6014e
docs: fix minor typo (#3390)
gmgunter Oct 21, 2021
606f81a
style: drop pycln (#3397)
henryiii Oct 22, 2021
076c89f
tests: test recursive dispatch using visitor pattern (#3365)
dyershov Oct 22, 2021
78ee782
feat: Add C++ binding to throw AttributeError (#3387)
Skylion007 Oct 23, 2021
9379b39
fix: MSVC 2017 C++17 on Python 3 regression (#3407)
henryiii Oct 25, 2021
d45a881
[pre-commit.ci] pre-commit autoupdate (#3409)
pre-commit-ci[bot] Oct 25, 2021
c2d3e22
fix: the types for return_value_policy_override in optional_caster (#…
ryancahoon-zoox Oct 26, 2021
e7e2c79
fix: improve support for Python 3.11-dev (#3368)
henryiii Oct 26, 2021
90707b4
fix(build): support conan's multiple includes of all files (#3420)
henryiii Oct 27, 2021
f1594cb
docs: changelog update for 2.8.1 (#3416)
henryiii Oct 27, 2021
f7b4996
[skip ci] Tweaks in preparation for the 2.8.1 release. (#3421)
rwgk Oct 27, 2021
a80b223
chore: get back to work after 2.8.1
rwgk Oct 27, 2021
e7c9753
feat: allow kw-only args after a py::args (#3402)
jagerman Oct 29, 2021
dd2d127
Correct "which" versus "that" error. (#3430)
hovey Nov 1, 2021
6de30d3
[pre-commit.ci] pre-commit autoupdate (#3432)
pre-commit-ci[bot] Nov 1, 2021
a61e354
docs: touch up manual release suggestion (#3422)
henryiii Nov 6, 2021
01f938e
fix: add missing std::forward calls (#3443)
Boris-Rasin Nov 7, 2021
b322018
[pre-commit.ci] pre-commit autoupdate (#3449)
pre-commit-ci[bot] Nov 8, 2021
b11ff91
fix(setup =_helpers): don't add -g0 CFLAGS sets -g (#3436)
anntzer Nov 8, 2021
aebd21b
docs: rework CI a bit, more modern skipping (#3424)
henryiii Nov 10, 2021
e450eb6
Removed duplicated word in docs/advanced/cast/eigen.rst (#3458)
Gjacquenot Nov 12, 2021
270b11d
Revert "style: drop pycln" (#3466)
henryiii Nov 14, 2021
afdc09d
[master] Wrong caching of overrides (#3465)
Trigve Nov 15, 2021
9422d98
[pre-commit.ci] pre-commit autoupdate (#3473)
pre-commit-ci[bot] Nov 16, 2021
d2b2131
cmake: report version type in the version string (#3472)
sergiud Nov 16, 2021
1eb5996
Removed duplicated word in docs/advanced/exceptions.rst (#3476)
Gjacquenot Nov 16, 2021
72282f7
ci: support development releases of Python (#3419)
henryiii Nov 17, 2021
ff51fcb
docs: fix broken link (again)
henryiii Nov 18, 2021
15f8d7c
fix(build): cleaner CMake printouts & IDE folders (#3479)
henryiii Nov 18, 2021
56322da
fixed include for filesystem::path (#3482)
ngc92 Nov 18, 2021
673b4be
Fix py::kw_only when used before the first arg of a method (#3488)
jagerman Nov 21, 2021
9281faf
Fixing `stict` vs `strict` typo. (#3493)
rwgk Nov 22, 2021
5d067e8
fix: remove redundant copy operation to fix warning (#3486)
Lishen1 Nov 22, 2021
fe65693
[pre-commit.ci] pre-commit autoupdate (#3500)
pre-commit-ci[bot] Nov 22, 2021
70a58c5
Replace usage of deprecated Eigen class MappedSparseMatrix. (#3499)
rmlarsen Nov 23, 2021
eea11ec
Merge remote-tracking branch 'upstream/master' into feature-update
EricCousineau-TRI Nov 24, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# clang-format --style=llvm --dump-config
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignConsecutiveAssignments: true
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
Expand All @@ -15,7 +14,6 @@ IndentPPDirectives: AfterHash
IndentWidth: 4
Language: Cpp
SpaceAfterCStyleCast: true
# SpaceInEmptyBlock: true # too new
Standard: Cpp11
TabWidth: 4
...
60 changes: 56 additions & 4 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,13 +1,65 @@
FormatStyle: file

Checks: '
*bugprone*,
cppcoreguidelines-init-variables,
cppcoreguidelines-slicing,
clang-analyzer-optin.cplusplus.VirtualCall,
google-explicit-constructor,
llvm-namespace-comment,
modernize-use-override,
readability-container-size-empty,
modernize-use-using,
modernize-use-equals-default,
misc-misplaced-const,
misc-non-copyable-objects,
misc-static-assert,
misc-throw-by-value-catch-by-reference,
misc-uniqueptr-reset-release,
misc-unused-parameters,
modernize-avoid-bind,
modernize-make-shared,
modernize-redundant-void-arg,
modernize-replace-auto-ptr,
modernize-replace-disallow-copy-and-assign-macro,
modernize-replace-random-shuffle,
modernize-shrink-to-fit,
modernize-use-auto,
modernize-use-bool-literals,
modernize-use-equals-default,
modernize-use-equals-delete,
modernize-use-default-member-init,
modernize-use-noexcept,
modernize-use-emplace,
modernize-use-override,
modernize-use-using,
*performance*,
readability-avoid-const-params-in-decls,
readability-const-return-type,
readability-container-size-empty,
readability-delete-null-pointer,
readability-else-after-return,
readability-implicit-bool-conversion,
readability-make-member-function-const,
readability-misplaced-array-index,
readability-non-const-parameter,
readability-redundant-function-ptr-dereference,
readability-redundant-smartptr-get,
readability-redundant-string-cstr,
readability-simplify-subscript-expr,
readability-static-accessed-through-instance,
readability-static-definition-in-anonymous-namespace,
readability-string-compare,
readability-uniqueptr-delete-release,
-bugprone-exception-escape,
-bugprone-reserved-identifier,
-bugprone-unused-raii,
'

CheckOptions:
- key: performance-for-range-copy.WarnOnAllAutoCopies
value: true
- key: performance-unnecessary-value-param.AllowedTypes
value: 'exception_ptr$;'
- key: readability-implicit-bool-conversion.AllowPointerConditions
value: true

HeaderFilterRegex: 'pybind11/.*h'

WarningsAsErrors: '*'
9 changes: 9 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.cmake @henryiii
CMakeLists.txt @henryiii
*.yml @henryiii
*.yaml @henryiii
/tools/ @henryiii
/pybind11/ @henryiii
noxfile.py @henryiii
.clang-format @henryiii
.clang-tidy @henryiii
40 changes: 34 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,33 @@ derivative works thereof, in binary and source code form.

## Development of pybind11

### Quick setup

To setup a quick development environment, use [`nox`](https://nox.thea.codes).
This will allow you to do some common tasks with minimal setup effort, but will
take more time to run and be less flexible than a full development environment.
If you use [`pipx run nox`](https://pipx.pypa.io), you don't even need to
install `nox`. Examples:

```bash
# List all available sessions
nox -l

# Run linters
nox -s lint

# Run tests on Python 3.9
nox -s tests-3.9

# Build and preview docs
nox -s docs -- serve

# Build SDists and wheels
nox -s build
```

### Full setup

To setup an ideal development environment, run the following commands on a
system with CMake 3.14+:

Expand Down Expand Up @@ -203,14 +230,15 @@ of the pybind11 repo.
[`clang-tidy`][clang-tidy] performs deeper static code analyses and is
more complex to run, compared to `clang-format`, but support for `clang-tidy`
is built into the pybind11 CMake configuration. To run `clang-tidy`, the
following recipe should work. Files will be modified in place, so you can
use git to monitor the changes.
following recipe should work. Run the `docker` command from the top-level
directory inside your pybind11 git clone. Files will be modified in place,
so you can use git to monitor the changes.

```bash
docker run --rm -v $PWD:/pybind11 -it silkeh/clang:10
apt-get update && apt-get install python3-dev python3-pytest
cmake -S pybind11/ -B build -DCMAKE_CXX_CLANG_TIDY="$(which clang-tidy);-fix"
cmake --build build
docker run --rm -v $PWD:/mounted_pybind11 -it silkeh/clang:12
apt-get update && apt-get install -y python3-dev python3-pytest
cmake -S /mounted_pybind11/ -B build -DCMAKE_CXX_CLANG_TIDY="$(which clang-tidy);-fix" -DDOWNLOAD_EIGEN=ON -DDOWNLOAD_CATCH=ON -DCMAKE_CXX_STANDARD=17
cmake --build build -j 2 -- --keep-going
```

### Include what you use
Expand Down
28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Bug Report
description: File an issue about a bug
title: "[BUG]: "
labels: [triage]
body:
- type: markdown
attributes:
value: |
Maintainers will only make a best effort to triage PRs. Please do your best to make the issue as easy to act on as possible, and only open if clearly a problem with pybind11 (ask first if unsure).
- type: checkboxes
id: steps
attributes:
label: Required prerequisites
description: Make sure you've completed the following steps before submitting your issue -- thank you!
options:
- label: Make sure you've read the [documentation](https://pybind11.readthedocs.io). Your issue may be addressed there.
required: true
- label: Search the [issue tracker](https://github.com/pybind/pybind11/issues) and [Discussions](https:/pybind/pybind11/discussions) to verify that this hasn't already been reported. +1 or comment there if it has.
required: true
- label: Consider asking first in the [Gitter chat room](https://gitter.im/pybind/Lobby) or in a [Discussion](https:/pybind/pybind11/discussions/new).
required: false

- type: textarea
id: description
attributes:
label: Problem description
placeholder: >-
Provide a short description, state the expected behavior and what
actually happens. Include relevant information like what version of
pybind11 you are using, what system you are on, and any useful commands
/ output.
validations:
required: true

- type: textarea
id: code
attributes:
label: Reproducible example code
placeholder: >-
The code should be minimal, have no external dependencies, isolate the
function(s) that cause breakage. Submit matched and complete C++ and
Python snippets that can be easily compiled and run to diagnose the
issue. If possible, make a PR with a new, failing test to give us a
starting point to work on!
render: text
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://github.com/pybind/pybind11/discussions/new
about: Please ask and answer questions here, or propose new ideas.
- name: Gitter room
url: https://gitter.im/pybind/Lobby
about: A room for discussing pybind11 with an active community
16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/feature-request.md

This file was deleted.

21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

4 changes: 4 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
Title (above): please place [branch_name] at the beginning if you are targeting a branch other than master. *Do not target stable*.
It is recommended to use conventional commit format, see conventionalcommits.org, but not required.
-->
## Description

<!-- Include relevant issues or PRs here, describe what changed and why -->
Expand Down
Loading