diff options
author | Filipe Laíns <lains@archlinux.org> | 2020-06-02 00:35:28 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2021-02-20 17:24:30 +0100 |
commit | 41a84934114f5d77f51d7064c4a64b2e279c1ca8 (patch) | |
tree | e9491684d54a29852668934c55ce6417a7f39690 | |
parent | 8f47b8d731e0d650ea671e169cddaafa64c44055 (diff) | |
download | aur-41a84934114f5d77f51d7064c4a64b2e279c1ca8.tar.gz aur-41a84934114f5d77f51d7064c4a64b2e279c1ca8.tar.xz |
pre-commit: add initial config
Signed-off-by: Filipe Laíns <lains@archlinux.org>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r-- | .pre-commit-config.yaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..525c7eb8 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,24 @@ +hooks: + - &base + language: python + types: [python] + require_serial: true + exclude: ^migrations/versions + - &flake8 + id: flake8 + name: flake8 + entry: flake8 + <<: *base + - &isort + id: isort + name: isort + entry: isort + <<: *base + +repos: + - repo: local + hooks: + - <<: *flake8 + - <<: *isort + args: ['--check-only', '--diff'] + |