aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShyam Sunder2020-06-05 11:07:30 -0400
committerShyam Sunder2020-06-05 11:10:05 -0400
commit454685755bc3be4b651d44509e135990c72923f5 (patch)
tree9ecb7a234d61aefe94d5670fdff750ca2e849a4d
parentc0d0c4c894093b114d4276f61bb7858b66eeaf65 (diff)
dev: added pre-commit hooks for code style consistency
See #325
-rw-r--r--.pre-commit-config.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..0377e9a
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,23 @@
+repos:
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v2.4.0
+ hooks:
+ - id: trailing-whitespace
+ - id: end-of-file-fixer
+ - id: check-yaml
+ - id: check-added-large-files
+- repo: https://github.com/pre-commit/mirrors-eslint
+ rev: v7.1.0
+ hooks:
+ - id: eslint
+ files: client/js/
+ args: ['--fix']
+- repo: https://gitlab.com/pycqa/flake8
+ rev: '3.8.2'
+ hooks:
+ - id: flake8
+ files: server/szurubooru/
+ additional_dependencies:
+ - flake8-print
+ args: ['--config=server/setup.cfg']
+exclude: LICENSE.md

© 2015 - 2026 Jakob L. Kreuze