forked from wpilibsuite/sphinxext-rediraffe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support rebuilds, add pre-commit (wpilibsuite#19)
* Support rebuilds * Add pre-commit and CI * Add dirhtml test * Apply suggestions from code review Co-authored-by: Vasista Vovveti <vasistavovveti@gmail.com> Co-authored-by: Vasista Vovveti <vasistavovveti@gmail.com>
- Loading branch information
1 parent
2822445
commit 8a09178
Showing
6 changed files
with
91 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Install pre-commit hooks via | ||
# pre-commit install | ||
|
||
repos: | ||
|
||
# - repo: git://github.com/pre-commit/pre-commit-hooks | ||
# rev: v2.2.3 | ||
# hooks: | ||
# - id: check-json | ||
# - id: check-yaml | ||
# - id: end-of-file-fixer | ||
# - id: trailing-whitespace | ||
|
||
# - repo: https://gitlab.com/pycqa/flake8 | ||
# rev: 3.7.9 | ||
# hooks: | ||
# - id: flake8 | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# To use tox, see https://tox.readthedocs.io | ||
# Simply pip or conda install tox | ||
# If you use conda, you may also want to install tox-conda | ||
# then run `tox` or `tox -- {pytest args}` | ||
# To run in parallel using `tox -p` (this does not appear to work for this repo) | ||
|
||
# To rebuild the tox environment, for example when dependencies change, use | ||
# `tox -r` | ||
|
||
# Note: if the following error is encountered: `ImportError while loading conftest` | ||
# then then deleting compiled files has been found to fix it: `find . -name \*.pyc -delete` | ||
|
||
[tox] | ||
envlist = py{36,37,38} | ||
|
||
[testenv:py{36,37,38}] | ||
; recreate = false | ||
deps = -rtest-requirements.txt | ||
commands = pytest {posargs} |