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