diff options
author | Ben Brown <ben@demerara.io> | 2022-02-05 15:30:14 +0000 |
---|---|---|
committer | Ben Brown <ben@demerara.io> | 2022-02-05 16:04:55 +0000 |
commit | d67c456242e7c05eb77f0dc78856c1d704fba846 (patch) | |
tree | 3601b148e73ed8ce017a0f0d27fc6cd3b127371b | |
parent | 88d27d9997b2efb6082657cb33ba8b48751aae55 (diff) | |
download | lorry-d67c456242e7c05eb77f0dc78856c1d704fba846.tar.gz |
Add configs for linting and style checking via pre-commit
-rw-r--r-- | .isort.cfg | 4 | ||||
-rw-r--r-- | .pre-commit-config.yaml | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/.isort.cfg b/.isort.cfg new file mode 100644 index 0000000..cae34dd --- /dev/null +++ b/.isort.cfg @@ -0,0 +1,4 @@ +[settings] +include_trailing_comma = true +line_length = 88 +multi_line_output = 3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..11a48c0 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,13 @@ +repos: + - repo: https://github.com/psf/black + rev: 22.1.0 + hooks: + - id: black + - repo: https://gitlab.com/pycqa/flake8 + rev: 3.9.2 + hooks: + - id: flake8 + - repo: https://github.com/pycqa/isort + rev: 5.10.1 + hooks: + - id: isort |