- 14 Jul, 2021 4 commits
-
-
Aaron Gokaslan committed
-
* style: disallow PyTest (should be pytest) * style: cleanup spell checking a bit * style: add a few items to the .gitignore
Henry Schreiner committed -
* Raise codec errors when casting to std::string Allow the codec's exception to be raised instead of RuntimeError when casting from py::str to std::string. PY2 allows ucs surrogates in UTF-8 conversion Signed-off-by: Shane Loretz <sloretz@openrobotics.org> Signed-off-by: Shane Loretz <sloretz@osrfoundation.org> * Attempt to fix py2 error * Revert all unicode literals * Fixed Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
Shane Loretz committed -
* Removing stray semicolons (discovered by running clang-format v12 followed by tools/check-style.sh). (#3087) * Manually moving `// NOLINT` comments so that clang-format does not move them to the wrong places. * Manually reformatting comments related to `static_assert`s so that clang-format does not need two passes. * Empty lines between #includes, to prevent clang-format from shuffling the order and thereby confusing MSVC 2015. * git diff -U0 --no-color HEAD^ | python3 $HOME/clone/llvm-project/clang/tools/clang-format/clang-format-diff.py -p1 -style=file -i
Ralf W. Grosse-Kunstleve committed
-
- 13 Jul, 2021 7 commits
-
-
For single-file extensions, a convenient pattern offered by cython is to place the source files directly in the python source tree (`foo/__init__.py`, `foo/ext.pyx`), deriving the package names from their filesystem location. Adapt this pattern for pybind11, using an `intree_extensions` helper, which should be thought of as the moral equivalent to `cythonize`. Differences with cythonize: I chose not to include globbing support (`intree_extensions(glob.glob("**/*.cpp"))` seems sufficient), nor to provide extension-customization kwargs (directly setting the attributes on the resulting Pybind11Extension objects seems sufficient). We could choose to have `intree_extension` (singular instead) and make users write `[*map(intree_extension, glob.glob("**/*.cpp"))]`; no strong opinion here. Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>Antony Lee committed -
* Improve documentation of discard_as_unraisable() API * Update pytypes.h Remove "the above" * Update pytypes.h Fix precommit error Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
jbarlow83 committed -
fix(clang-tidy): Add cppcoreguidelines-init-vars,slicing, and throw-by-value-catch-by-reference checks (#3094) * clang-tidy: guard against more UB behavior * Remove slicing check for now
Aaron Gokaslan committed -
* docs: update changelog * docs: add one more and merge tidy
Henry Schreiner committed -
Henry Schreiner committed
-
Henry Schreiner committed
-
Henry Schreiner committed
-
- 12 Jul, 2021 7 commits
-
-
* Adding test_return_vector_bool_raw_ptr to test_stl.py. * First attempt to make the documentation more accurate, but not trying to be comprehensive, to not bloat the reference table with too many details. * Fixing minor oversights. * Applying reviewer suggestion.
Ralf W. Grosse-Kunstleve committed -
* chore: add nox support * chore: add more lines to CODEOWNERS
Henry Schreiner committed -
Fixing spelling errors that went undetected because the pre-commit spell check was added after the CI for PR #2995 last ran. (#3103)
Ralf W. Grosse-Kunstleve committed -
Henry Schreiner committed
-
* Adding iostream.h thread-safety documentation. * Restoring `TestThread` code with added `std::lock_guard<std::mutex>`. * Updating new comments to reflect new information. * Fixing up `git rebase -X theirs` accidents.
Ralf W. Grosse-Kunstleve committed -
* Copying from prework_no_rst branch (PR #3087): test_numpy_array.cpp, test_stl.cpp * Manual changes reducing NOLINTs. * clang-format-diff.py * Minor adjustment to avoid MSVC warning C4702: unreachable code
Ralf W. Grosse-Kunstleve committed -
[skip ci]
Henry Schreiner committed
-
- 11 Jul, 2021 1 commit
-
-
Ralf W. Grosse-Kunstleve committed
-
- 10 Jul, 2021 1 commit
-
-
* py::pickle typo * correct dots and parentheses
Jan Iwaszkiewicz committed
-
- 09 Jul, 2021 2 commits
-
-
Go all the way fixing clang-tidy issues to avoid the NOLINTNEXTLINE clutter and clang-format issues. This was really meant to be part of PR #3051 but was held back either out of an abundance of caution, or because of confusion caused by stray semicolons. (#3086)
Ralf W. Grosse-Kunstleve committed -
* Enable clang-tidy else-after-return and redundant void checks * Fix remaining else-after * Address reviewer comments * Fix indentation * Rerun clang-tidy post merge
Aaron Gokaslan committed
-
- 08 Jul, 2021 1 commit
-
-
* Splitting out pybind11/stl/filesystem.h. To solve breakages like: https://github.com/deepmind/open_spiel/runs/2999582108 Mostly following the suggestion here: https://github.com/pybind/pybind11/pull/2730#issuecomment-750507575 Except using pybind11/stl/filesystem.h instead of pybind11/stlfs.h, as decided via chat. stl.h restored to the exact state before merging PR #2730 via: ``` git checkout 733f8de2 stl.h ``` * Properly including new stl subdirectory in pip wheel config. This now passes interactively: ``` pytest tests/extra_python_package/ ``` * iwyu cleanup. iwyuh.py -c -std=c++17 -DPYBIND11_TEST_BOOST -Ipybind11/include -I/usr/include/python3.9 -I/usr/include/eigen3 include/pybind11/stl/filesystem.h * Adding PYBIND11_HAS_FILESYSTEM_IS_OPTIONAL. * Eliminating else after return.
Ralf W. Grosse-Kunstleve committed
-
- 06 Jul, 2021 2 commits
-
-
* Unify cast_error message thrown by [simple|unpacking]_collector simple_collector and unpacking_collector throw different error messages when the casting of an argument failed: While the former mentions make_tuple(), the latter emphasises the call argument (and its name/position). * Consolidating "Unable to convert call argument" error reporting code to guarantee uniformity. Co-authored-by: Ralf W. Grosse-Kunstleve <rwgk@google.com>
Robert Haschke committed -
Ralf W. Grosse-Kunstleve committed
-
- 04 Jul, 2021 1 commit
-
-
Found via `codespell -q 3 -L nd,ot,thist`
luzpaz committed
-
- 02 Jul, 2021 3 commits
-
-
Also removing a commented-out line.
Ralf W. Grosse-Kunstleve committed -
* Convert PyDict_GetXXX to internal error checking variant * Check unlikely error return from PyDict_DelItemString
Dustin Spicuzza committed -
Antony Lee committed
-
- 01 Jul, 2021 2 commits
-
-
cyy committed
-
jonathan-conder-sm committed
-
- 30 Jun, 2021 2 commits
-
-
Ralf W. Grosse-Kunstleve committed
-
* pickle setstate: setattr __dict__ only if not empty, to not force use of py::dynamic_attr() unnecessarily. * Adding unit test. * Clang 3.6 & 3.7 compatibility. * PyPy compatibility. * Minor iwyu fix, additional comment. * Addressing reviewer requests. * Applying clang-tidy suggested fixes. * Adding check_dynamic_cast_SimpleCppDerived, related to issue #3062.
Ralf W. Grosse-Kunstleve committed
-
- 26 Jun, 2021 1 commit
-
-
* Allow casting from None to a custom object, closes #2778 * ci.yml patch from the smart_holder branch for full CI coverage.
Cris Luengo committed
-
- 22 Jun, 2021 2 commits
-
-
* Updating and slightly enhancing instructions for running clang-tidy. * Making documented commands identical to workflow commands. Adding comment in workflow file pointing to documentation.
Ralf W. Grosse-Kunstleve committed -
* Initial fixes * Whoops * Finish clang-tidy manual fixes * Add two missing fixes * Revert * Update clang-tidy * Try to fix unreachable code error * Move nolint comment * Apply missing fix * Don't override clang-tidy config * Does this fix clang-tidy? * Make all clang-tidy errors visible * Add comments about NOLINTs and remove a few * Fix typo
Aaron Gokaslan committed
-
- 21 Jun, 2021 1 commit
-
-
* Enable and apply clang-tidy readability and misc fixes. * Revert deprecated tester * add space to tests/test_constants_and_functions.cpp
Aaron Gokaslan committed
-
- 19 Jun, 2021 3 commits
-
-
Robert Schütz committed
-
dependabot[bot] committed
-
* Add more modernize clang-tidy checks * Enable a few more
Aaron Gokaslan committed
-