mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-23 06:50:29 +01:00
e4a132c0e4
* Create a Request class which maintains its own connection pool * When creating a Bot instance a new Request instance will be created if one wasn't supplied. * Updater is responsible for creating a Request instance if a Bot instance wasn't provided. * Dispatcher: add method to run async functions without decorator * Dispatcher can now run as a singleton (allowing run_async decorator to work) as it always did and as multiple instances (where run_async decorator will raise RuntimeError)
18 lines
526 B
YAML
18 lines
526 B
YAML
- repo: git://github.com/pre-commit/mirrors-yapf
|
|
sha: v0.11.0
|
|
hooks:
|
|
- id: yapf
|
|
files: ^(telegram|tests)/.*\.py$
|
|
- repo: git://github.com/pre-commit/pre-commit-hooks
|
|
sha: 18d7035de5388cc7775be57f529c154bf541aab9
|
|
hooks:
|
|
- id: flake8
|
|
files: ^telegram/.*\.py$
|
|
- repo: git://github.com/pre-commit/mirrors-pylint
|
|
sha: v1.5.5
|
|
hooks:
|
|
- id: pylint
|
|
files: ^telegram/.*\.py$
|
|
args:
|
|
- --errors-only
|
|
- --disable=no-name-in-module,import-error
|