Ralf W. Grosse-Kunstleve
d5e302ce46
Removing uses of env.PY2 and env.PY (no longer available).
...
smart_holder_type_casters.h tweaks:
* Removing MSVC 2015 workaround.
* Manually adding braces to pre-empt clang-tidy issue (involving `#ifdef`).
* Removing `// clang-format off` & `on`.
* One manual line break (moving comment above line).
Adding mypy type information for ubench/*.py
2022-02-14 18:51:58 -08:00
Ralf W. Grosse-Kunstleve
e1751c04f0
Merge branch 'master' into sh_merge_master_after_clang-format_etc
...
First pass manually resolving the many merge conflicts.
2022-02-14 14:36:08 -08:00
Henry Schreiner
522c59ceb2
chore: drop Python 3.5 ( #3719 )
...
* chore: drop Python 3.5 support
* chore: more fstrings with flynt's help
* ci: drop Python 3.5
* chore: bump dependency versions
* docs: touch up py::args
* tests: remove deprecation warning
* Ban smartquotes
* Very minor tweaks (by-product of reviewing PR #3719 ).
Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
Co-authored-by: Ralf W. Grosse-Kunstleve <rwgk@google.com>
2022-02-11 19:06:16 -05:00
Ralf W. Grosse-Kunstleve
6493f496e3
Python 2 removal part 1: tests (C++ code is intentionally ~untouched) ( #3688 )
...
* `#error BYE_BYE_GOLDEN_SNAKE`
* Removing everything related to 2.7 from ci.yml
* Commenting-out Centos7
* Removing `PYTHON: 27` from .appveyor.yml
* "PY2" removal, mainly from tests. C++ code is not touched.
* Systematic removal of `u` prefix from `u"..."` and `u'...'` literals. Collateral cleanup of a couple minor other things.
* Cleaning up around case-insensitive hits for `[^a-z]py.*2` in tests/.
* Removing obsolete Python 2 mention in compiling.rst
* Proper `#error` for Python 2.
* Using PY_VERSION_HEX to guard `#error "PYTHON 2 IS NO LONGER SUPPORTED.`
* chore: bump pre-commit
* style: run pre-commit for pyupgrade 3+
* tests: use sys.version_info, not PY
* chore: more Python 2 removal
* Uncommenting Centos7 block (PR #3691 showed that it is working again).
* Update pre-commit hooks
* Fix pre-commit hook
* refactor: remove Python 2 from CMake
* refactor: remove Python 2 from setup code
* refactor: simplify, better static typing
* feat: fail with nice messages
* refactor: drop Python 2 C++ code
* docs: cleanup for Python 3
* revert: intree
revert: intree
* docs: minor touchup to py2 statement
Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
2022-02-10 18:28:08 -08:00
Ralf W. Grosse-Kunstleve
ec24786eab
Fully-automatic clang-format with include reordering ( #3713 )
...
* chore: add clang-format
* Removing check-style (Classic check-style)
Ported from @henryiii's 53056b1b0e
* Automatic clang-format changes (NO manual changes).
Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
2022-02-10 12:17:07 -08:00
Ralf W. Grosse-Kunstleve
ea0c1e77c8
Merge branch 'master' into sh_merge_master
2022-01-11 17:48:37 -08:00
pre-commit-ci[bot]
b66328b043
[pre-commit.ci] pre-commit autoupdate ( #3609 )
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.930 → v0.931](https://github.com/pre-commit/mirrors-mypy/compare/v0.930...v0.931 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-10 21:13:24 -05:00
Ralf W. Grosse-Kunstleve
73197b392a
Merge branch 'master' into smart_holder
2022-01-03 15:56:25 -08:00
pre-commit-ci[bot]
2cd32e5d54
[pre-commit.ci] pre-commit autoupdate ( #3589 )
...
updates:
- [github.com/asottile/pyupgrade: v2.29.1 → v2.31.0](https://github.com/asottile/pyupgrade/compare/v2.29.1...v2.31.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-03 15:55:21 -08:00
Ralf W. Grosse-Kunstleve
388c03b18c
Merge branch 'master' into sh_merge_master_clean
2021-12-29 13:24:20 -08:00
pre-commit-ci[bot]
89769e6e6d
[pre-commit.ci] pre-commit autoupdate ( #3574 )
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0 )
- [github.com/pre-commit/mirrors-mypy: v0.920 → v0.930](https://github.com/pre-commit/mirrors-mypy/compare/v0.920...v0.930 )
- [github.com/shellcheck-py/shellcheck-py: v0.8.0.2 → v0.8.0.3](https://github.com/shellcheck-py/shellcheck-py/compare/v0.8.0.2...v0.8.0.3 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-27 18:28:30 -05:00
pre-commit-ci[bot]
d0406c747e
[pre-commit.ci] pre-commit autoupdate ( #3563 )
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.910-1 → v0.920](https://github.com/pre-commit/mirrors-mypy/compare/v0.910-1...v0.920 )
- [github.com/shellcheck-py/shellcheck-py: v0.8.0.1 → v0.8.0.2](https://github.com/shellcheck-py/shellcheck-py/compare/v0.8.0.1...v0.8.0.2 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-20 23:11:48 -05:00
pre-commit-ci[bot]
59aa99860c
[pre-commit.ci] pre-commit autoupdate ( #3533 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 21.11b1 → 21.12b0](https://github.com/psf/black/compare/21.11b1...21.12b0 )
* Keep blacken-docs in sync
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
2021-12-06 17:12:03 -05:00
Ralf W. Grosse-Kunstleve
e94b98fd76
Merge branch 'master' into smart_holder
2021-11-22 17:03:58 -08:00
pre-commit-ci[bot]
fe65693c72
[pre-commit.ci] pre-commit autoupdate ( #3500 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.29.0 → v2.29.1](https://github.com/asottile/pyupgrade/compare/v2.29.0...v2.29.1 )
- [github.com/psf/black: 21.10b0 → 21.11b1](https://github.com/psf/black/compare/21.10b0...21.11b1 )
- [github.com/asottile/blacken-docs: v1.11.0 → v1.12.0](https://github.com/asottile/blacken-docs/compare/v1.11.0...v1.12.0 )
* Keep blacken-docs and black in sync.
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Aaron Gokaslan <aaronGokaslan@gmail.com>
2021-11-22 16:25:35 -05:00
Ralf W. Grosse-Kunstleve
e57afe23f7
Merge branch 'master' into smart_holder
2021-11-20 09:35:40 -08:00
pre-commit-ci[bot]
9422d98fcc
[pre-commit.ci] pre-commit autoupdate ( #3473 )
...
updates:
- [github.com/PyCQA/isort: 5.10.0 → 5.10.1](https://github.com/PyCQA/isort/compare/5.10.0...5.10.1 )
- [github.com/shellcheck-py/shellcheck-py: v0.7.2.1 → v0.8.0.1](https://github.com/shellcheck-py/shellcheck-py/compare/v0.7.2.1...v0.8.0.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-15 22:48:39 -05:00
Ralf W. Grosse-Kunstleve
f4fab85d87
Merge branch 'master' into sh_merge_master
2021-11-15 14:43:08 -08:00
Henry Schreiner
270b11d502
Revert "style: drop pycln" ( #3466 )
...
* Revert "style: drop pycln (#3397 )"
This reverts commit 606f81a966
.
* Update .pre-commit-config.yaml
2021-11-13 21:32:58 -05:00
pre-commit-ci[bot]
b322018e15
[pre-commit.ci] pre-commit autoupdate ( #3449 )
...
updates:
- [github.com/PyCQA/isort: 5.9.3 → 5.10.0](https://github.com/PyCQA/isort/compare/5.9.3...5.10.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-08 15:56:20 -05:00
Ralf W. Grosse-Kunstleve
58c7f076bc
Merge branch 'master' into sh_merge_master
2021-11-07 16:26:55 -08:00
pre-commit-ci[bot]
6de30d3172
[pre-commit.ci] pre-commit autoupdate ( #3432 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 21.9b0 → 21.10b0](https://github.com/psf/black/compare/21.9b0...21.10b0 )
* Update blacken-docs too
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
2021-11-01 17:22:12 -04:00
Ralf W. Grosse-Kunstleve
4958fd9aa1
Merge branch 'master' into sh_merge_master
2021-10-26 12:10:34 -07:00
pre-commit-ci[bot]
d45a88105c
[pre-commit.ci] pre-commit autoupdate ( #3409 )
...
updates:
- [github.com/asottile/yesqa: v1.2.3 → v1.3.0](https://github.com/asottile/yesqa/compare/v1.2.3...v1.3.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-10-25 16:06:13 -04:00
Henry Schreiner
606f81a966
style: drop pycln ( #3397 )
2021-10-22 16:38:40 -04:00
Ralf W. Grosse-Kunstleve
fd68dede10
Merge branch 'master' into sh_merge_master
2021-10-11 13:18:33 -07:00
pre-commit-ci[bot]
02c05573d9
[pre-commit.ci] pre-commit autoupdate ( #3353 )
...
updates:
- [github.com/PyCQA/flake8: 3.9.2 → 4.0.1](https://github.com/PyCQA/flake8/compare/3.9.2...4.0.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-10-11 16:03:19 -04:00
Aaron Gokaslan
f4c81e0877
maint: Add additional linter-related pre-commit hooks ( #3337 )
...
* Add additional pygrep pre-commit hooks
* Remove useless noqas with hook
* Fix all single rst backticks
* Simplify mypy pre-commit hook with upstream fixes
* Add back missing comment
* Add one last pygrep hook
2021-10-08 08:38:04 -04:00
Ralf W. Grosse-Kunstleve
5a90dae7fe
Merge branch 'master' into smart_holder
2021-10-06 00:47:43 -07:00
pre-commit-ci[bot]
97976c16fb
[pre-commit.ci] pre-commit autoupdate ( #3325 )
...
updates:
- [github.com/asottile/pyupgrade: v2.28.0 → v2.29.0](https://github.com/asottile/pyupgrade/compare/v2.28.0...v2.29.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-10-04 16:38:31 -04:00
Ralf W. Grosse-Kunstleve
a011e1257e
Merge branch 'master' into smart_holder
2021-09-30 11:56:53 -07:00
pre-commit-ci[bot]
6be64304b7
[pre-commit.ci] pre-commit autoupdate ( #3312 )
...
updates:
- [github.com/asottile/pyupgrade: v2.26.0 → v2.28.0](https://github.com/asottile/pyupgrade/compare/v2.26.0...v2.28.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-09-28 10:09:08 -04:00
Ralf W. Grosse-Kunstleve
c13817d775
Merge branch 'master' into sh_merge_master
2021-09-23 08:56:16 -07:00
Aaron Gokaslan
0fb981b219
Add blacken-docs and pycln pre-commit hooks ( #3292 )
...
* Apply blacken-docs and fix language-hints
* Add blacken-docs pre-commit hook
* Add pycln pre-commit hook
* Enable a few builtin hooks
* Black no longer ignores pyi files
2021-09-22 15:38:50 -04:00
Ralf W. Grosse-Kunstleve
a5ec28ffe8
Merge branch 'master' into smart_holder
2021-09-20 19:05:52 -07:00
pre-commit-ci[bot]
077a16e9d1
[pre-commit.ci] pre-commit autoupdate ( #3286 )
...
updates:
- [github.com/psf/black: 21.8b0 → 21.9b0](https://github.com/psf/black/compare/21.8b0...21.9b0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-09-20 16:18:09 -04:00
Ralf W. Grosse-Kunstleve
03d409b4a0
Merge branch 'master' into sh_merge_master
2021-09-20 05:57:17 -07:00
pre-commit-ci[bot]
3ed31e9289
[pre-commit.ci] pre-commit autoupdate ( #3266 )
...
updates:
- [github.com/asottile/pyupgrade: v2.25.0 → v2.26.0](https://github.com/asottile/pyupgrade/compare/v2.25.0...v2.26.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-09-13 15:58:30 -04:00
Ralf W. Grosse-Kunstleve
94a5c673bc
Merge branch 'master' into sh_merge_master
2021-09-08 18:56:35 -07:00
pre-commit-ci[bot]
76d939de53
[pre-commit.ci] pre-commit autoupdate ( #3231 )
...
updates:
- [github.com/asottile/pyupgrade: v2.24.0 → v2.25.0](https://github.com/asottile/pyupgrade/compare/v2.24.0...v2.25.0 )
- [github.com/psf/black: 21.7b0 → 21.8b0](https://github.com/psf/black/compare/21.7b0...21.8b0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-30 16:00:33 -04:00
Ralf W. Grosse-Kunstleve
a655f95a83
Merge branch 'master' into sh_merge_master
2021-08-26 14:46:44 -07:00
pre-commit-ci[bot]
b3d18f382f
[pre-commit.ci] pre-commit autoupdate ( #3213 )
...
updates:
- [github.com/asottile/pyupgrade: v2.23.3 → v2.24.0](https://github.com/asottile/pyupgrade/compare/v2.23.3...v2.24.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-23 15:22:12 -04:00
Ralf W. Grosse-Kunstleve
8865d28317
Automatic part of merging branch 'master' into sh_merge_master.
...
The only manual intervention was to remove the merge conflict markers in pybind11.h.
TODO in separate commit: complete removal of the obsolete detail/pragma_warning_block.h.
2021-08-14 07:54:40 -07:00
Aaron Gokaslan
9df2f1ff13
maint(precommit): Apply isort ( #3195 )
...
* Apply isort
* Tweak isort config
* Add env.py as a known_first_party
* Add one missing known first party
* Make config compat with older isort versions
* Add another comment
* Revert pyproject setting
2021-08-13 12:37:05 -04:00
pre-commit-ci[bot]
0be2ea065e
[pre-commit.ci] pre-commit autoupdate ( #3185 )
...
updates:
- [github.com/asottile/pyupgrade: v2.23.1 → v2.23.3](https://github.com/asottile/pyupgrade/compare/v2.23.1...v2.23.3 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-09 15:08:19 -04:00
pre-commit-ci[bot]
f4f4632e28
[pre-commit.ci] pre-commit autoupdate ( #3167 )
...
updates:
- [github.com/asottile/pyupgrade: v2.23.0 → v2.23.1](https://github.com/asottile/pyupgrade/compare/v2.23.0...v2.23.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-03 10:56:57 -04:00
Ralf W. Grosse-Kunstleve
8ed9e93d57
Merge branch 'master' into smart_holder
2021-07-26 13:43:29 -07:00
pre-commit-ci[bot]
7f76d79508
[pre-commit.ci] pre-commit autoupdate ( #3143 )
...
updates:
- [github.com/asottile/pyupgrade: v2.21.2 → v2.23.0](https://github.com/asottile/pyupgrade/compare/v2.21.2...v2.23.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-07-26 15:05:58 -04:00
Ralf W. Grosse-Kunstleve
7cc433ca7f
Merge branch 'master' into smart_holder
2021-07-21 06:56:03 -07:00
pre-commit-ci[bot]
9626483cdf
[pre-commit.ci] pre-commit autoupdate ( #3134 )
...
updates:
- [github.com/asottile/pyupgrade: v2.21.0 → v2.21.2](https://github.com/asottile/pyupgrade/compare/v2.21.0...v2.21.2 )
- [github.com/psf/black: 21.6b0 → 21.7b0](https://github.com/psf/black/compare/21.6b0...21.7b0 )
- https://gitlab.com/pycqa/flake8 → https://github.com/PyCQA/flake8
2021-07-20 11:29:42 -04:00
Ralf W. Grosse-Kunstleve
88546fff7d
Fixing merge conflict.
2021-07-15 06:23:06 -07:00
Aaron Gokaslan
c4b0dc7cdd
Add shellcheck style checking ( #3114 )
2021-07-14 16:52:13 -04:00
Henry Schreiner
cd061aeef1
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
2021-07-14 16:49:13 -04:00
Ralf W. Grosse-Kunstleve
88cc350075
Merge branch 'master' into smart_holder
2021-07-13 05:57:50 -07:00
Henry Schreiner
0e2e003508
style: add pyupgrade check, 2.7+
2021-07-12 21:46:24 -04:00
Henry Schreiner
84fdadfbcc
chore: update pre-commit hooks
2021-07-12 21:46:24 -04:00
Ralf W. Grosse-Kunstleve
e423df92dd
Merge branch 'master' into smart_holder
2021-07-12 14:53:39 -07:00
Henry Schreiner
ddf0efb990
chore: add nox support ( #3101 )
...
* chore: add nox support
* chore: add more lines to CODEOWNERS
2021-07-12 17:45:40 -04:00
Ralf W. Grosse-Kunstleve
00b0365ca3
codespell fixes and adding .codespell-ignorelines
2021-07-06 14:31:18 -07:00
Ralf W. Grosse-Kunstleve
704daac879
Merge branch 'master' into smart_holder
2021-07-06 14:12:08 -07:00
Ralf W. Grosse-Kunstleve
0ad116d371
Adding codespell to .pre-commit-config.yaml (follow-on to PR #3075 ). ( #3076 )
2021-07-06 14:10:35 -07:00
Ralf W. Grosse-Kunstleve
d7f98ac9a1
Adding CI-SH-DEF GitHub Actions workflow, based on PR #2930 . ( #2963 )
...
* Adding ci_sh_def.yml, based on PR #2930 .
* Adding exludes for .patch files.
2021-04-20 14:34:31 -07:00
Henry Schreiner
8e5d3d234e
docs: prepare for 2.6.2 ( #2820 )
...
* docs: prepare for 2.6.2
* chore: pre-commit autoupdate
2021-01-25 16:09:36 -05:00
Henry Schreiner
ebd5c5b48c
feat: way to only recompile changed files ( #2643 )
...
* feat: lazy compile
* refactor: lazy -> only_changed
* refactor: leave the changed function up to the user
* refactor: pass a function, based on @YannickJadoul and @HDembinski's suggestions
* refactor: old -> _old, as it's not intended for users
* docs: slight improvmenent from @rwgk
* docs: Ccache spelling, extra warning about pip caching
Ccache spelling noted by @YannickJadoul
2020-11-11 11:45:28 -05:00
Henry Schreiner
c50f90eca6
style: use Black everywhere ( #2594 )
...
* style: use Black everywhere
* style: minor touchup from review
2020-10-16 16:38:13 -04:00
Henry Schreiner
645d83813b
feat: typing support for helpers ( #2588 )
...
* feat: basic typing support
* docs: mention syncing as suggested by @rwgk
* docs: update changelog
* docs: copy of warning in limitations
2020-10-14 14:08:41 -04:00
Henry Schreiner
82dbc5b78f
ci: releases ( #2530 )
...
* ci: releases
* docs: minor update form @wjakob
* fix: enforce reasonable version of setuptools
2020-09-30 15:48:08 -04:00
Henry Schreiner
fd61f5038e
feat: setup.py redesign and helpers ( #2433 )
...
* feat: setup.py redesign and helpers
* refactor: simpler design with two outputs
* refactor: helper file update and Windows support
* fix: review points from @YannickJadoul
* refactor: fixes to naming and more docs
* feat: more customization points
* feat: add entry point pybind11-config
* refactor: Try Extension-focused method
* refactor: rename alt/inplace to global
* fix: allow usage with git modules, better docs
* feat: global as an extra (@YannickJadoul's suggestion)
* feat: single version location
* fix: remove the requirement that setuptools must be imported first
* fix: some review points from @wjacob
* fix: use .in, add procedure to docs
* refactor: avoid monkeypatch copy
* docs: minor typos corrected
* fix: minor points from @YannickJadoul
* fix: typo on Windows C++ mode
* fix: MSVC 15 update 3+ have c++14 flag
See <https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=vs-2019 >
* docs: discuss making SDists by hand
* ci: use pep517.build instead of manual setup.py
* refactor: more comments from @YannickJadoul
* docs: updates from @ktbarrett
* fix: change to newly recommended tool instead of pep517.build
This was intended as a proof of concept; build seems to be the correct replacement.
See https://github.com/pypa/pep517/pull/83
* docs: updates from @wjakob
* refactor: dual version locations
* docs: typo spotted by @wjakob
2020-09-16 17:13:41 -04:00
Henry Schreiner
37f845a1dc
ci: disallow some common capitalization mistakes ( #2472 )
...
* ci: only annotate linux for now
* style: block some common mistakes
2020-09-08 15:26:50 +02:00
Henry Schreiner
ed6de125c9
format: include .in files
2020-08-06 11:54:41 -04:00
Henry Schreiner
e2a96890e1
format: add cmake-format to pre-commit
2020-07-30 20:27:55 -04:00
Henry Schreiner
5c936d4b22
refactor: issue fixed upstream
2020-07-23 19:47:53 -04:00
Henry Schreiner
8b0ccf7657
style: adding pre-commit check-style.sh
2020-07-23 19:47:53 -04:00
Henry Schreiner
d8c7ee00a6
ci: GHA basic format & pre-commit ( #2309 )
2020-07-20 13:35:21 -04:00