2024-06-15 10:29:19 +02:00
|
|
|
# Make sure that the additional_dependencies here match pyproject.toml
|
2022-05-05 09:27:54 +02:00
|
|
|
|
|
|
|
ci:
|
|
|
|
autofix_prs: false
|
2024-05-22 17:43:45 +02:00
|
|
|
autoupdate_schedule: quarterly
|
|
|
|
autoupdate_commit_msg: 'Bump `pre-commit` Hooks to Latest Versions'
|
2022-05-05 09:27:54 +02:00
|
|
|
|
2019-02-28 22:02:08 +01:00
|
|
|
repos:
|
2024-02-05 19:24:00 +01:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2024-06-30 18:22:12 +02:00
|
|
|
rev: 'v0.5.0'
|
2024-02-05 19:24:00 +01:00
|
|
|
hooks:
|
|
|
|
- id: ruff
|
|
|
|
name: ruff
|
|
|
|
additional_dependencies:
|
2024-03-06 13:20:38 +01:00
|
|
|
- httpx~=0.27
|
2024-02-05 19:24:00 +01:00
|
|
|
- tornado~=6.4
|
|
|
|
- APScheduler~=3.10.4
|
2024-03-02 11:34:03 +01:00
|
|
|
- cachetools~=5.3.3
|
2024-02-05 19:24:00 +01:00
|
|
|
- aiolimiter~=1.1.0
|
2024-01-03 21:42:56 +01:00
|
|
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
2024-05-07 07:42:09 +02:00
|
|
|
rev: 24.4.2
|
2016-05-15 02:59:08 +02:00
|
|
|
hooks:
|
|
|
|
- id: black
|
2017-05-21 14:29:24 +02:00
|
|
|
args:
|
|
|
|
- --diff
|
2020-10-23 13:40:02 +02:00
|
|
|
- --check
|
2022-08-02 08:26:36 +02:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2024-07-03 18:29:09 +02:00
|
|
|
rev: 7.1.0
|
2016-05-15 03:24:35 +02:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2020-10-31 16:33:34 +01:00
|
|
|
- repo: https://github.com/PyCQA/pylint
|
2024-07-03 18:29:09 +02:00
|
|
|
rev: v3.2.4
|
2016-05-15 03:24:35 +02:00
|
|
|
hooks:
|
|
|
|
- id: pylint
|
2024-02-29 19:11:03 +01:00
|
|
|
files: ^(?!(tests|docs)).*\.py$
|
2021-03-13 16:21:03 +01:00
|
|
|
additional_dependencies:
|
2024-03-06 13:20:38 +01:00
|
|
|
- httpx~=0.27
|
2023-12-09 13:13:20 +01:00
|
|
|
- tornado~=6.4
|
2023-08-26 11:47:32 +02:00
|
|
|
- APScheduler~=3.10.4
|
2024-03-02 11:34:03 +01:00
|
|
|
- cachetools~=5.3.3
|
2023-05-18 07:59:44 +02:00
|
|
|
- aiolimiter~=1.1.0
|
2021-03-13 16:21:03 +01:00
|
|
|
- . # this basically does `pip install -e .`
|
2020-10-06 19:28:40 +02:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2024-07-03 18:29:09 +02:00
|
|
|
rev: v1.10.1
|
2020-10-06 19:28:40 +02:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2021-03-13 16:21:03 +01:00
|
|
|
name: mypy-ptb
|
2024-02-29 19:11:03 +01:00
|
|
|
files: ^(?!(tests|examples|docs)).*\.py$
|
2021-03-13 16:21:03 +01:00
|
|
|
additional_dependencies:
|
2021-10-09 13:56:50 +02:00
|
|
|
- types-pytz
|
|
|
|
- types-cryptography
|
|
|
|
- types-cachetools
|
2024-03-06 13:20:38 +01:00
|
|
|
- httpx~=0.27
|
2023-12-09 13:13:20 +01:00
|
|
|
- tornado~=6.4
|
2023-08-26 11:47:32 +02:00
|
|
|
- APScheduler~=3.10.4
|
2024-03-02 11:34:03 +01:00
|
|
|
- cachetools~=5.3.3
|
2023-05-18 07:59:44 +02:00
|
|
|
- aiolimiter~=1.1.0
|
2021-03-13 16:21:03 +01:00
|
|
|
- . # this basically does `pip install -e .`
|
2022-04-24 12:38:09 +02:00
|
|
|
- id: mypy
|
|
|
|
name: mypy-examples
|
|
|
|
files: ^examples/.*\.py$
|
|
|
|
args:
|
|
|
|
- --no-strict-optional
|
|
|
|
- --follow-imports=silent
|
|
|
|
additional_dependencies:
|
2023-12-09 13:13:20 +01:00
|
|
|
- tornado~=6.4
|
2023-08-26 11:47:32 +02:00
|
|
|
- APScheduler~=3.10.4
|
2024-03-02 11:34:03 +01:00
|
|
|
- cachetools~=5.3.3
|
2022-04-24 12:38:09 +02:00
|
|
|
- . # this basically does `pip install -e .`
|
2021-01-17 23:24:20 +01:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2024-07-03 18:29:09 +02:00
|
|
|
rev: v3.16.0
|
2021-01-17 23:24:20 +01:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args:
|
2023-06-29 18:17:47 +02:00
|
|
|
- --py38-plus
|
2022-05-05 09:27:54 +02:00
|
|
|
- repo: https://github.com/pycqa/isort
|
2024-01-01 22:49:24 +01:00
|
|
|
rev: 5.13.2
|
2022-05-05 09:27:54 +02:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
name: isort
|
2022-05-18 17:23:00 +02:00
|
|
|
args:
|
|
|
|
- --diff
|
|
|
|
- --check
|