Henry Schreiner
6c08562aa1
fix: faster CLI on Python 3.15 ( #2797 )
...
* chore: lazy imports
Signed-off-by: Henry Schreiner <henryfs@princeton.edu >
* chore: bump flake8-lazy, rerun
Signed-off-by: Henry Schreiner <henryfs@princeton.edu >
* chore: include android
Signed-off-by: Henry Schreiner <henryfs@princeton.edu >
* fix: after rebase
Assisted-by: ClaudeCode:claude-sonnet-4.6
Signed-off-by: Henry Schreiner <henryfs@princeton.edu >
* chore: autofix __lazy_modules__
Signed-off-by: Henry Schreiner <henryfs@princeton.edu >
* chore: avoid touching resources
Signed-off-by: Henry Schreiner <henryfs@princeton.edu >
* chore: bump flake8-lazy to v0.8.2, rerun
Assisted-by: ClaudeCode:claude-sonnet-4-6
---------
Signed-off-by: Henry Schreiner <henryfs@princeton.edu >
2026-06-12 14:01:49 +01:00
Matthieu Darbois
e3e7cc9e07
chore: use if TYPE_CHECKING: blocks ( #2866 )
2026-05-27 18:20:08 -04:00
Henry Schreiner and pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
097806b6b1
tests: fully type the test suite ( #2794 )
...
* tests: fully type the test suite
* chore: require more typing
Signed-off-by: Henry Schreiner <henryfs@princeton.edu >
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Signed-off-by: Henry Schreiner <henryfs@princeton.edu >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-04-01 15:23:02 +01:00
Henry Schreiner
cb1fdd0316
chore: use absolute imports ( #2796 )
...
chore: use abosolute imports
Signed-off-by: Henry Schreiner <henryfs@princeton.edu >
2026-03-24 09:20:41 -04:00
34b4f1e86e
[pre-commit.ci] pre-commit autoupdate ( #2474 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.13 → v0.12.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.13...v0.12.0 )
- [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.16.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.16.0...v1.16.1 )
- [github.com/python-jsonschema/check-jsonschema: 0.33.0 → 0.33.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.33.0...0.33.1 )
* chore: address new lints
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com >
2025-06-24 09:48:01 -04:00
Henry Schreiner
db2d59be22
chore: use kw_only (Python 3.10+) on most dataclasses ( #2422 )
...
* chore: use kw_only (Python 3.10+) on many dataclasses
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* fix: expose windows file to type checker
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2025-05-28 10:41:26 +01:00
Henry Schreiner
708cf1d32b
style: remove from future import annotations
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2025-02-28 16:38:15 -05:00
Joe Rickerby
62a06d28b5
Change order of environment-pass, so environment can reference it
2023-09-18 17:08:30 +01:00
mayeut
4b19db8454
chore: drop python 3.7 for cibuildwheel driver
...
This drops python 3.7 for cibuildwheel.
Building python 3.6 / 3.7 packages is still supported.
2023-07-01 14:33:24 +02:00
Henry Schreiner
d996af554a
fix: restore Python 3.7 support
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2023-04-18 22:02:47 -04:00
Henry Schreiner
8c5f89c035
chore: update typing to be generic on function args
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2023-04-18 13:06:17 -04:00
Henry Schreiner
6d038dfbdf
chore: update typing to collections.abc
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2023-04-18 12:38:21 -04:00
c72e27e65a
[pre-commit.ci] pre-commit autoupdate ( #1423 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.249 → v0.0.253](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.249...v0.0.253 )
* fix ruff warnings
* chore: fix pylint warnings
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Grzegorz Bokota <bokota+github@gmail.com >
Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com >
2023-02-28 08:43:58 -05:00
Joe Rickerby
8d05681491
Improve the formatting of the preamble
2022-11-26 17:16:54 +00:00
Joe Rickerby
13fc768552
Revert to the previous quoting behaviour for environment option
2022-09-17 11:15:00 +01:00
mayeut
6d27f05c7c
chore: use from __future__ import annotations
2022-07-19 07:47:45 +02:00
9ae6ae2756
[pre-commit.ci] pre-commit autoupdate ( #1084 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.1.0 → v4.2.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.1.0...v4.2.0 )
- [github.com/asottile/pyupgrade: v2.31.1 → v2.32.0](https://github.com/asottile/pyupgrade/compare/v2.31.1...v2.32.0 )
* chore: fix minor style msg
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* chore: use extend on flake8
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com >
2022-04-13 15:33:49 -04:00
Henry Schreiner and Joe Rickerby
d6dc3b7cd9
chore: add PyLint and fix most issues ( #999 )
...
* chore: add PyLint and fix most issues
* fix: minor fixes after first push
* chore: remove reference to old toml lib
* chore: minor options cleanup
* ci: only fail with many pylint issues, annotate in GHA
* refactor: address review
* ci: force nox to report in CI
* refactor: use map instead of if chain
* refactor: simpler shell_with_arch
* refactor: even simpler shell_with_arch
* Restore if...elif...else blocks where guard-style is not intended
Co-authored-by: Joe Rickerby <joerick@mac.com >
2022-02-27 14:16:37 -05:00
Henry Schreiner and Joe Rickerby
f45de3f24e
feat: support passenv ( #914 )
...
* feat: support passenv
* refactor: environment-pass and spaces
* docs: document environment pass
* Add unit test for passing through awkward env variable values
* Remove unused as_shell_commands method from environment
* Fix passthrough edge case by avoiding bash for passthrough assignments
* Fix mypy error in test
* Fix unit test
* Apply suggestions from code review
Co-authored-by: Joe Rickerby <joerick@mac.com >
2021-11-21 15:19:45 -05:00
Henry Schreiner
cd07697fe5
feat: adding overrides
2021-10-16 21:34:02 -04:00
Henry Schreiner
bda76b21cb
style: activate string normalization
2021-05-03 13:12:36 -04:00
Henry Schreiner
178aaea6c7
style: apply black via pre-commit run -a
2021-05-03 13:12:36 -04:00
Henry Fredrick Schreiner
635b226a6c
style: pre-commit run -a
2021-01-06 18:10:32 -05:00
Henry Schreiner
2a73fee411
fix: enable and fix full type checking ( #509 )
...
* fix: enable and fix fully type checking
* chore: pre-commit autoupdate
* refactor: pull types out to file
2021-01-02 14:32:55 -05:00
Joe Rickerby
e417791ae4
Remove the linux bash script, replaced with a docker exec approach
2020-06-23 19:46:23 +01:00
Grzegorz Bokota
36b8f7fff2
changes in code from code review
2020-06-22 13:55:04 +02:00
Grzegorz Bokota
4d5cf4629e
fix mypy type warning
2020-06-22 13:55:04 +02:00
mayeut
5e767fcc9a
Use f-strings
...
Now that minimum python supported is 3.6, we can use f-strings !
2020-05-09 11:53:20 +02:00
Yannick Jadoul
618f1cefae
Added majority of type annotations (to a by now outdated version)
2020-05-06 23:55:54 +02:00
Nicola Soranzo
cab6ecef24
Fix all PEP-008 issues
2020-02-14 15:50:06 +00:00
Grzegorz Bokota
48055273f1
Remove inheritance from object base
2020-02-04 11:58:52 +01:00
Joe Rickerby
34e8ee0f25
Fix empty env string case
2017-09-06 18:35:42 +01:00
Joe Rickerby
be474fd7f7
Fix string splitting for the env string
2017-09-06 18:27:06 +01:00
Joe Rickerby
f56ddda157
Make shell evals work and add tests for that
2017-09-02 22:09:32 +01:00
Joe Rickerby
fcb681d283
Use parse_environment in the main code
2017-09-01 13:33:29 +01:00
Joe Rickerby
5ae4da631f
Add environment code satisfying unit test
2017-09-01 13:24:12 +01:00