2022-06-06 13:18:45 -07:00
|
|
|
exclude: ^scripts
|
2022-06-02 18:32:16 -07:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-11-24 01:25:24 -08:00
|
|
|
rev: v4.4.0
|
2022-06-02 18:32:16 -07:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-yaml
|
|
|
|
- id: debug-statements
|
|
|
|
- id: name-tests-test
|
|
|
|
- id: requirements-txt-fixer
|
|
|
|
- repo: https://github.com/asottile/setup-cfg-fmt
|
2022-10-25 21:49:47 -07:00
|
|
|
rev: v2.2.0
|
2022-06-02 18:32:16 -07:00
|
|
|
hooks:
|
|
|
|
- id: setup-cfg-fmt
|
2023-04-22 17:54:58 -07:00
|
|
|
- repo: https://github.com/PyCQA/autoflake
|
2023-04-25 16:11:19 -07:00
|
|
|
rev: v2.1.1
|
2022-06-02 18:32:16 -07:00
|
|
|
hooks:
|
2023-04-22 17:54:58 -07:00
|
|
|
- id: autoflake
|
|
|
|
args: [-i, --remove-all-unused-imports, --ignore-init-module-imports]
|
2022-06-02 18:32:16 -07:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2023-04-25 16:11:19 -07:00
|
|
|
rev: v3.3.2
|
2022-06-02 18:32:16 -07:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args: [--py39-plus]
|
2023-04-22 17:54:58 -07:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
|
|
rev: 5.12.0
|
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
args: [--af,--add-import, 'from __future__ import annotations']
|
2022-06-02 18:32:16 -07:00
|
|
|
- repo: https://github.com/psf/black
|
2023-04-25 16:11:19 -07:00
|
|
|
rev: 23.3.0
|
2022-06-02 18:32:16 -07:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2022-11-24 01:25:24 -08:00
|
|
|
rev: 6.0.0
|
2022-06-02 18:32:16 -07:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2022-08-10 16:46:00 -07:00
|
|
|
additional_dependencies: [flake8-encodings, flake8-warnings, flake8-builtins, flake8-length, flake8-print]
|
2022-06-02 18:32:16 -07:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2023-04-25 16:11:19 -07:00
|
|
|
rev: v1.2.0
|
2022-06-02 18:32:16 -07:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2023-06-09 16:20:00 -07:00
|
|
|
additional_dependencies: [types-setuptools, types-requests, settngs>=0.7.1]
|
2022-06-06 13:18:45 -07:00
|
|
|
ci:
|
|
|
|
skip: [mypy]
|