diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-10-23 12:38:36 +0200 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-10-23 12:38:36 +0200 |
| commit | 015f229b7706390fd5dadb8701e382d19fae4f68 (patch) | |
| tree | 40f512e4c4539c3d8b497b0d1b0c19f24fe49313 | |
| parent | Code formatting (diff) | |
| download | paper2remarkable-015f229b7706390fd5dadb8701e382d19fae4f68.tar.gz paper2remarkable-015f229b7706390fd5dadb8701e382d19fae4f68.zip | |
Add pre-commit config for code formatting
This is mainly to try out pre-commit
| -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 |
