Skip to content
Myr

Set up pre-commit to run black

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Call it automatically via tox

authored by David Baumgold · committed by David Baumgold · parent 819368a · Browse files · 2 files+10 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+10 added−0 removed

  • other:+10 added−0 removed

2 files+10 added−0 removed

added:.pre-commit-config.yaml+5 added
modified:tox.ini+5 added
35 unmodified lines
3637 # pytest-cov doesn't seem to play nice with -p38 coverage run -p -m pytest tests examples3940[testenv:stylecheck]41deps = pre-commit42skip_install = true43commands = pre-commit run --all-files --show-diff-on-failure4445[testenv:docs-html]46deps =47 -r docs/requirements.txt48commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
17 unmodified lines