File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 2727
2828jobs :
2929 pyupgrade :
30- name : test upgradable
30+ name : Find Upgradable CodingStandards
3131 runs-on : ubuntu-latest
3232 timeout-minutes : 10
3333 steps :
Original file line number Diff line number Diff line change @@ -21,13 +21,16 @@ poetry install --all-extras
2121
2222## Code style
2323
24+ THis project loves latest python features.
2425This project uses [ PEP8] Style Guide for Python Code.
25- This project loves sorted imports.
26+ This project loves sorted imports.
27+
2628Get it all applied via:
2729
2830``` shell
29- poetry run isort .
30- poetry run autopep8 -ir cyclonedx/ tests/ typings/ examples/
31+ poetry run -- tox r -e pyupgrade -- --exit-zero-even-if-changed
32+ poetry run -- tox r -e isort
33+ poetry run -- tox r -e autopep8
3134```
3235
3336This project prefers ` f'strings' ` over ` 'string'.format() ` .
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ commands =
4848allowlist_externals = poetry, sh
4949commands = sh -c " \
5050 find cyclonedx typings tests tools examples -type f \( -name '*.py' -or -name '*.pyi' \) -print0 \
51- | xargs -0 poetry run pyupgrade --py39-plus "
51+ | xargs -0 poetry run pyupgrade --py39-plus {posargs} "
5252
5353[testenv:isort]
5454commands = poetry run isort .
5555
5656[testenv:autopep8]
57- commands = poetry run autopep8 --in-place -r .
57+ commands = poetry run autopep8 --in-place -r cyclonedx typings tests tools examples
You can’t perform that action at this time.
0 commit comments