Skip to content

Commit 5dafb1c

Browse files
committed
chore: added autopep8 to pre-commit and clarified command in CONTRIBUTING for performance
Signed-off-by: Paul Horton <[email protected]>
1 parent fd6ab7a commit 5dafb1c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ repos:
1414
entry: poetry run isort .
1515
pass_filenames: false
1616
language: system
17+
- repo: local
18+
hooks:
19+
- id: system
20+
name: autopep8
21+
entry: poetry run autopep8 --in-place -r cyclonedx tests
22+
pass_filenames: false
23+
language: system

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Get it all applied via:
2323

2424
```shell
2525
poetry run isort .
26-
poetry run autopep8 --in-place -r .
26+
poetry run autopep8 --in-place -r cyclonedx tests
2727
```
2828

2929
## Documentation

0 commit comments

Comments
 (0)