mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 00:27:46 +01:00
92b9370c23
* Make pre-commit more strict * Get pylint to read setup.cfg * Make pylint & mypy happy aka ignore all the things * use LogRecord.getMessage() in tests * Make noam happy * Update both pylint & mypy while we're at it * Bring reqs-dev and makefile up to speed * try making pre-commit happy * fix jobqueue tests on the fly
27 lines
678 B
YAML
27 lines
678 B
YAML
# Make sure that
|
|
# * the revs specified here match requirements-dev.txt
|
|
# * the makefile checks the same files as pre-commit
|
|
repos:
|
|
- repo: https://github.com/psf/black
|
|
rev: 20.8b1
|
|
hooks:
|
|
- id: black
|
|
args:
|
|
- --diff
|
|
- --check
|
|
- repo: https://gitlab.com/pycqa/flake8
|
|
rev: 3.8.4
|
|
hooks:
|
|
- id: flake8
|
|
- repo: https://github.com/PyCQA/pylint
|
|
rev: pylint-2.6.0
|
|
hooks:
|
|
- id: pylint
|
|
files: ^(telegram|examples)/.*\.py$
|
|
args:
|
|
- --rcfile=setup.cfg
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v0.790
|
|
hooks:
|
|
- id: mypy
|
|
files: ^(telegram|examples)/.*\.py$
|