Henry Schreiner
55b1357d8e
chore: update nox and test deps ( #5594 )
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2025-04-02 08:24:15 -04:00
pre-commit-ci[bot]
b17555f340
chore(deps): update pre-commit hooks ( #5459 )
...
* chore(deps): update pre-commit hooks
updates:
- [github.com/pre-commit/mirrors-clang-format: v19.1.3 → v19.1.4](https://github.com/pre-commit/mirrors-clang-format/compare/v19.1.3...v19.1.4 )
- [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.8.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.2...v0.8.1 )
- [github.com/sirosen/texthooks: 0.6.7 → 0.6.8](https://github.com/sirosen/texthooks/compare/0.6.7...0.6.8 )
- [github.com/PyCQA/pylint: v3.3.1 → v3.3.2](https://github.com/PyCQA/pylint/compare/v3.3.1...v3.3.2 )
- [github.com/python-jsonschema/check-jsonschema: 0.29.4 → 0.30.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.29.4...0.30.0 )
* Resolve ruff pre-commit errors:
```
ruff.....................................................................Failed
- hook id: ruff
- exit code: 1
warning: The following rules have been removed and ignoring them has no effect:
- PT004
docs/benchmark.py:51:17: UP031 Use format specifiers instead of percent format
|
50 | for cl in range(nclasses):
51 | decl += "class cl%03i {\n" % cl
| ^^^^^^^^^^^^^^^^^^ UP031
52 | decl += "public:\n"
53 | bindings += f' py::class_<cl{cl:03}>("cl{cl:03}")\n'
|
= help: Replace with format specifiers
docs/benchmark.py:88:15: UP031 Use format specifiers instead of percent format
|
86 | elapsed = (n2 - n1).total_seconds()
87 | size = os.stat("test.so").st_size
88 | print(" {%i, %f, %i}," % (nclasses * nfns, elapsed, size))
| ^^^^^^^^^^^^^^^^^^ UP031
89 | print("}")
|
= help: Replace with format specifiers
tools/make_changelog.py:62:9: PLC0206 Extracting value from dictionary without calling `.items()`
|
61 | msg += f"\n `#{issue.number} <{issue.html_url}>`_"
62 | for cat in cats:
| _________^
63 | | if issue.title.lower().startswith(f"{cat}:"):
64 | | cats[cat].append(msg)
65 | | break
66 | | else:
67 | | cats["unknown"].append(msg)
| |_______________________________________^ PLC0206
68 |
69 | for cat, msgs in cats.items():
|
Found 3 errors.
```
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com >
2024-12-08 15:21:49 -08:00
Henry Schreiner
9ec64e37c3
docs: prepare for 2.13.0 ( #5187 )
...
* docs: prepare for 2.13.0
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* docs: reword cross-compiling entry
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* Update changelog.rst
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2024-06-25 16:24:54 -04:00
Henry Schreiner
6b5674f36d
chore: prepare 2.12.0 ( #5070 )
...
* chore: prepare 2.12.0
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* docs: more info on numpy 2
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* docs: mention NumPy 2 in README
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* docs: add release date
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* docs: add 4955
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* Update changelog.rst
* docs: address review comments
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2024-03-27 18:09:06 -04:00
Henry Schreiner
b389ae77cb
chore: update changelog script for categories ( #4942 )
2023-11-15 18:59:07 -05:00
Henry Schreiner
b2d7ad72c2
chore: prepare for 2.10.3 ( #4437 )
...
* docs: update changelog for v2.10.3
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* chore: bump versions for 2.10.3
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* chore: fix make changelog script with entry is empty
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2023-01-03 11:34:22 -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
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
Henry Schreiner
7a64b8adcc
docs: fix script issues for changelog compilation ( #3100 )
...
[skip ci]
2021-07-12 14:10:46 -04:00
Henry Schreiner
08bca374fd
docs: update changelog, nicer output for script ( #2811 )
2021-01-21 11:34:39 -05:00
Henry Schreiner
5bd766bf6c
docs: update changelog and add script to help generate it ( #2733 )
2020-12-21 21:04:33 -05:00