Skip to content

Commit 45979e3

Browse files
committed
automation
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent c62e377 commit 45979e3

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ env:
2727

2828
jobs:
2929
pyupgrade:
30-
name: test upgradable
30+
name: Find Upgradable CodingStandards
3131
runs-on: ubuntu-latest
3232
timeout-minutes: 10
3333
steps:

CONTRIBUTING.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ poetry install --all-extras
2121

2222
## Code style
2323

24+
THis project loves latest python features.
2425
This project uses [PEP8] Style Guide for Python Code.
25-
This project loves sorted imports.
26+
This project loves sorted imports.
27+
2628
Get 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

3336
This project prefers `f'strings'` over `'string'.format()`.

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ commands =
4848
allowlist_externals = poetry, sh
4949
commands = 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]
5454
commands = 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

0 commit comments

Comments
 (0)