Commit graph

1498 commits

Author SHA1 Message Date
Alex Root Junior
8e54cce58e Bump pre-commit config 2020-05-13 22:58:58 +03:00
Alex Root Junior
72ad390864
Merge pull request #281 from Birdi7/dev-3.x
feat: add pre-commit hooks
2020-05-13 22:39:06 +03:00
Alex Root Junior
02e6bd971b
Merge branch 'dev-3.x' into dev-3.x 2020-05-13 22:33:46 +03:00
Alex Root Junior
56095339ac
Merge pull request #327 from aiogram/dev-3.x-deprecate-handlers
AIOG-T-25 refactor(handler): rename observers
2020-05-13 22:19:15 +03:00
mpa
9f4b76dabc tests(deprecated): quick fix add assert 2020-05-13 17:39:36 +04:00
mpa
c083fcd99a tests(deprecated):
add new check_deprecated context manager for version check, use mark.parametrize from pytest for observer deprecation tests
2020-05-12 16:07:16 +04:00
mpa
6cbf9cdde6 tests(deprecated-observer): clean code
remove empty possible func. add new condition for version major
2020-05-10 13:21:05 +04:00
mpa
9bd981726f Merge remote-tracking branch 'origin/dev-3.x' into dev-3.x-deprecate-handlers 2020-05-10 03:12:42 +04:00
mpa
4124770b0e refactor(handler): rename observers
Rename observers but with backward compatibility, relevant documentation
2020-05-10 03:02:31 +04:00
Alex Root Junior
05dd42712d
Merge pull request #318 from aiogram/dev-3.x-refactor-sessions
Dev 3.x refactor sessions
2020-05-09 23:49:54 +03:00
Egor
17a07f10dc fix: make pre-commit a dev requirement 2020-05-06 17:27:51 +03:00
Egor
46957d731f feat: add mypy hook 2020-05-06 13:04:40 +03:00
Egor
5a86e0ac4c feat: add pre-commit hook support 2020-05-06 13:00:06 +03:00
mpa
0aa8069dc4 fix(sessions):
make timeout deleter more clever in particular cases
2020-05-06 03:05:43 +04:00
mpa
df4ba87dfc feat(timeout):
implement (class-bound, instance-bound, request-bound) session timeout
for requests. fix docs config, fix aiohttp session docs links.
2020-05-06 02:42:54 +04:00
Alex Root Junior
b097680f3c Fix package 2020-05-06 01:42:40 +03:00
Alex Root Junior
d4a2d2ea5e Include meta file 2020-05-05 23:42:09 +03:00
mpa
2adc19724d refactor(props):
simplify some descriptors with tests for them, remove silly "nocovers"
2020-05-06 00:04:50 +04:00
mpa
2c1de9cdbc dummy commit | run actions 2020-05-03 01:17:40 +04:00
mpa
ea6a02bf97 refactor(sessions):
remove BaseSession's initializer, add timeout ommitable field to base
method model
2020-05-03 00:53:25 +04:00
Alex Root Junior
6be0b36305
Dev 3.x api 4.8 (#317)
* AIOG-T-20 Bot API 4.8

* AIOG-T-20 Update aliases

* AIOG-T-20 Add parse mode passing in sendPoll method

* AIOG-T-20 Small changes in docs

* AIOG-T-20 Revert overriding remove keyboard default value and add tests

* AIOG-T-20 Bot API 4.8
2020-05-02 23:01:32 +03:00
Martin Winks
15bcc0ba9f
feat(proxy): proxy for aiohttp,base sessions (#284)
* feat(proxy): proxy for aiohttp,base sessions

Add support for proxies in aiohttp session with aiohttp_socks library,
edit BaseSession class to support proxies for other sessions in future.

* fix(annotation): missing underscore before "private" typevar

* chore: remove redundant of proxy_url schema for socks version

* test: add missing test

Add missing test, remove BaseSession.cfg and switch to
implementing class' "private" traits, add aiohttp_socks in dependency list as
optional and extra.

* feat(session):

Implement asyncio session for requests [wip]

* feat(proxy chain): Chained proxy support in aiohttp session

Add ChainProxyConnector support, !pin pydantic to "1.4", add
documentation on aiohttp connector.

* style(mypy): apply linter changes

* tests(mock): remove await for magic mock

* fix dangling dependency

* refactor(generic):

get rid of generic behaviour for base session
2020-05-02 16:12:53 +03:00
Alex Root Junior
2553f5f19e
Merge pull request #316 from aiogram/dev-3.x-fix-text-decorations-2
Fix phone_number and bot_command entity types generation
2020-05-02 02:55:59 +03:00
Alex Root Junior
2380e14dd9 Fix phone_number and bot_command entity types generation 2020-05-02 02:43:19 +03:00
Alex Root Junior
8d842ea156
Merge pull request #315 from aiogram/dev-3.x-fix-text-decorations
Update text decorations. Fix 'mention' generator and emoji offsets.
2020-05-02 02:05:34 +03:00
Alex Root Junior
a64359a6de Update text decorations. Fix 'mention' generator and emoji offsets. 2020-05-02 01:56:01 +03:00
Alex Root Junior
e9fef19129 Fix compatibility with pydantic 1.5 (temporary) 2020-04-28 12:07:01 +03:00
Alex Root Junior
01c6303d67 Add extensions for class-based error handler 2020-04-12 23:29:10 +03:00
Alex Root Junior
0fbd2819f9 Add filters and class based handler for errors 2020-04-12 23:20:44 +03:00
Alex Root Junior
9e673998f0 Errors handler 2020-04-12 22:13:25 +03:00
Alex Root Junior
569a9c807c adwanced 2020-04-12 20:41:10 +03:00
Alex Root Junior
5b6ec599b1 Add middlewares (API + Docs + Tests) 2020-04-12 20:27:32 +03:00
Alex Root Junior
e4cd4c1763 Add message reply&answer methods for dice 2020-04-11 23:06:41 +03:00
Alex Root Junior
82f89b9c1d Optimize events propagation by routers 2020-04-11 22:59:37 +03:00
Alex Root Junior
7449c89b04 Add py.typed 2020-04-11 22:01:53 +03:00
Alex Root Junior
9f00a02e4d "noqa: F811" in aiogram/utils/mixins.py 2020-04-11 20:58:57 +03:00
Alex Root Junior
33003f2026 Add support of Bot API 4.7. Bump version 2020-04-11 20:15:03 +03:00
Alex Root Junior
4cb9697cb4
Merge pull request #283 from b0g3r/dev-3.x-strict-mypy
🏷️ Turn on mypy's strict mode
2020-03-29 15:08:57 +03:00
Boger
880e935700 Return old hack, because new break mypy plugins :face_with_rolling_eyes: 2020-03-28 19:43:35 +03:00
Boger
4298406bd2 Add check for owner class in Item 2020-03-28 18:47:42 +03:00
Boger
45cfa5b3c9 Fix coverage with no cover for unreachable code 2020-03-25 16:28:24 +03:00
Boger
756412d784 Turn off mypy on tests folder 2020-03-25 16:19:48 +03:00
Boger
23c632b37b Fix style errors 2020-03-25 15:57:25 +03:00
Boger
7db1572fd3 Return DataMixin 2020-03-25 15:49:43 +03:00
Boger
a823e275a7 Merge BaseBot to Bot class 2020-03-25 15:36:19 +03:00
Boger
fac69e52b7 💩 First iteration 2020-03-18 18:15:49 +03:00
Alex Root Junior
0bd7fc2c7e Fix async test for py3.7 2020-02-22 23:12:42 +02:00
Alex Root Junior
eea75b8e9a Fix typing 2020-02-22 01:28:46 +02:00
Alex Root Junior
3f5c51e805 Add webhook feed method to Dispatcher 2020-02-22 00:59:10 +02:00
Alex Root Junior
a41bccddf9 Merge remote-tracking branch 'origin/dev-3.x-download' into dev-3.x 2020-02-02 22:53:55 +02:00