2021-02-25 01:03:37 +03:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-03-14 16:25:30 +03:00
|
|
|
rev: v4.5.0
|
2021-02-25 01:03:37 +03:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: no-commit-to-branch
|
|
|
|
args: [--branch, main, --branch, master]
|
|
|
|
- repo: https://github.com/psf/black
|
2024-03-14 16:25:30 +03:00
|
|
|
rev: 24.2.0
|
2021-02-25 01:03:37 +03:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2024-03-14 16:25:30 +03:00
|
|
|
rev: 7.0.0
|
2021-02-25 01:03:37 +03:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2021-04-22 23:48:59 +03:00
|
|
|
exclude: dags/
|
2021-02-25 01:03:37 +03:00
|
|
|
- repo: https://github.com/adrienverge/yamllint
|
2024-03-14 16:25:30 +03:00
|
|
|
rev: v1.35.1
|
2021-02-25 01:03:37 +03:00
|
|
|
hooks:
|
|
|
|
- id: yamllint
|
|
|
|
args: [-c, .yamllint.yaml, .]
|
2021-02-25 01:11:52 +03:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
2024-03-14 16:25:30 +03:00
|
|
|
rev: 5.13.2
|
2021-02-25 01:11:52 +03:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
2024-03-14 16:25:30 +03:00
|
|
|
# This pre-commit hook has been archived on Nov 2023
|
2021-03-10 22:01:08 +03:00
|
|
|
- repo: https://github.com/PyCQA/pydocstyle
|
2023-04-26 18:31:48 +03:00
|
|
|
rev: 6.3.0
|
2021-03-10 22:01:08 +03:00
|
|
|
hooks:
|
|
|
|
- id: pydocstyle
|
2021-05-04 19:12:13 +03:00
|
|
|
exclude: dags/|(.*/)?test_.*\.py|setup.py
|
2021-05-04 19:32:25 +03:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2024-03-14 16:25:30 +03:00
|
|
|
# Using commit hash corresponding to tag v1.9.0, using the tag directly was resulting in cannot resolve error.
|
|
|
|
rev: '9db9854'
|
2021-05-04 19:32:25 +03:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2024-05-08 15:09:19 +03:00
|
|
|
exclude: sql/.+/.+/.+/query\.py$
|
2024-03-14 16:25:30 +03:00
|
|
|
additional_dependencies: [types-pytz==2024.1.0.20240203,
|
|
|
|
types-ujson==5.9.0.0,
|
|
|
|
types-python-dateutil==2.8.19.20240106,
|
|
|
|
types-requests==2.31.0.20240311,
|
2022-10-11 19:06:32 +03:00
|
|
|
types-attrs==19.1.0,
|
2024-03-14 16:25:30 +03:00
|
|
|
types-PyYAML==6.0.12.12]
|