diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..d6899361f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,20 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/PyCQA/pylint + rev: 'v3.0.3' + hooks: + - id: pylint +- repo: https://github.com/psf/black + rev: '24.2.0' + hooks: + - id: black +- repo: https://github.com/pre-commit/mirrors-eslint + rev: 'v9.0.0-beta.0' + hooks: + - id: eslint + files: \.(js|vue)$ + types: [file] + additional_dependencies: + - eslint + - eslint-plugin-vue diff --git a/dev-requirements.txt b/dev-requirements.txt index 06d73f33c..9555d810c 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,2 +1,4 @@ django-bower django-debug-toolbar +pre-commit +black