Skip to content

Commit 21ea7a9

Browse files
committed
Use alternate config file to avoid sed hack
1 parent 545843f commit 21ea7a9

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.pre-commit-config.yaml.pep257

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- repo: git://github.com/FalconSocial/pre-commit-mirrors-pep257
2+
sha: f464d46
3+
hooks:
4+
- id: pep257

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ commands = pre-commit run --all-files {posargs}
2929
[testenv:pre-commit-pep257]
3030
deps = pre-commit
3131
commands =
32-
sed -i.pep257bak 's/^\s\+exclude: tests\/dist.*$//g' .pre-commit-config.yaml
33-
pre-commit run --all-files pep257 {posargs}
32+
pre-commit run --config .pre-commit-config.yaml.pep257 --all-files {posargs}
3433

3534
[testenv:dist-check]
3635
# ensure that package artifacts are installed as expected

0 commit comments

Comments
 (0)