diff options
| -rw-r--r-- | .pre-commit-config.yaml | 6 | ||||
| -rw-r--r-- | .travis.yml | 2 | ||||
| -rw-r--r-- | pyproject.toml | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..3cb791c --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: + - repo: https://github.com/psf/black + rev: 20.8b1 + hooks: + - id: black + language_version: python3 diff --git a/.travis.yml b/.travis.yml index 6a57cd3..32a2a1e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,9 @@ before_install: - nvm use v12.18.1 install: + - pip install pre-commit - pip install -e .[test] script: + - pre-commit run --all-files --show-diff-on-failure - green -vv -a ./tests diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a8f43fe --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[tool.black] +line-length = 79 |
