2020-06-05 17:07:30 +02:00
|
|
|
repos:
|
2020-06-06 00:03:37 +02:00
|
|
|
|
2020-06-05 17:07:30 +02:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-02-05 01:08:31 +01:00
|
|
|
rev: v4.4.0
|
2020-06-05 17:07:30 +02:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-yaml
|
2020-09-01 17:42:54 +02:00
|
|
|
- id: mixed-line-ending
|
|
|
|
|
2021-11-28 16:07:04 +01:00
|
|
|
|
2020-09-01 17:42:54 +02:00
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
2023-02-05 01:08:31 +01:00
|
|
|
rev: v1.4.2
|
2020-09-01 17:42:54 +02:00
|
|
|
hooks:
|
|
|
|
- id: remove-tabs
|
2020-06-06 00:03:37 +02:00
|
|
|
|
|
|
|
- repo: https://github.com/psf/black
|
2023-02-05 01:08:31 +01:00
|
|
|
rev: '23.1.0'
|
2020-06-06 00:03:37 +02:00
|
|
|
hooks:
|
|
|
|
- id: black
|
2020-09-01 17:42:54 +02:00
|
|
|
files: 'server/'
|
|
|
|
types: [python]
|
2021-11-28 16:07:04 +01:00
|
|
|
language_version: python3.9
|
2020-06-06 00:03:37 +02:00
|
|
|
|
2021-11-28 16:07:04 +01:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
2023-02-05 01:08:31 +01:00
|
|
|
rev: '5.12.0'
|
2020-06-06 00:03:37 +02:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
2020-09-01 17:42:54 +02:00
|
|
|
files: 'server/'
|
|
|
|
types: [python]
|
2020-06-06 00:03:37 +02:00
|
|
|
exclude: server/szurubooru/migrations/env.py
|
|
|
|
additional_dependencies:
|
|
|
|
- toml
|
|
|
|
|
2021-11-28 16:07:04 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2023-02-05 01:08:31 +01:00
|
|
|
rev: v2.7.1
|
2020-06-06 00:03:37 +02:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
files: client/js/
|
|
|
|
exclude: client/js/.gitignore
|
|
|
|
args: ['--config', 'client/.prettierrc.yml']
|
|
|
|
|
2020-06-05 17:07:30 +02:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
2023-02-05 01:08:31 +01:00
|
|
|
rev: v8.33.0
|
2020-06-05 17:07:30 +02:00
|
|
|
hooks:
|
|
|
|
- id: eslint
|
|
|
|
files: client/js/
|
|
|
|
args: ['--fix']
|
2020-06-06 00:03:37 +02:00
|
|
|
additional_dependencies:
|
|
|
|
- eslint-config-prettier
|
|
|
|
|
2023-02-05 01:08:31 +01:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
|
|
|
rev: '6.0.0'
|
2020-06-05 17:07:30 +02:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
files: server/szurubooru/
|
|
|
|
additional_dependencies:
|
2020-06-06 00:03:37 +02:00
|
|
|
- flake8-print
|
|
|
|
args: ['--config=server/.flake8']
|
|
|
|
|
|
|
|
fail_fast: true
|
2020-06-05 17:07:30 +02:00
|
|
|
exclude: LICENSE.md
|