diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-10-23 17:35:06 +0200 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-10-23 17:35:06 +0200 |
| commit | b3685d0aaae6a660f7ff590badd3c06750c5ea72 (patch) | |
| tree | 178b544c08f50ce4114e942990d778b8b0d645e7 | |
| parent | Code formatting (diff) | |
| parent | Merge branch 'master' into feature/pre-commit (diff) | |
| download | paper2remarkable-b3685d0aaae6a660f7ff590badd3c06750c5ea72.tar.gz paper2remarkable-b3685d0aaae6a660f7ff590badd3c06750c5ea72.zip | |
Merge branch 'feature/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 |
