mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Re-enabled all pre-commit hooks
This commit is contained in:
parent
00702f07ce
commit
fa983c3986
2 changed files with 57 additions and 6 deletions
|
|
@ -33,17 +33,17 @@ repos:
|
|||
args: [ '--config=.flake8' ]
|
||||
files: *files
|
||||
|
||||
# - repo: https://github.com/floatingpurr/sync_with_poetry
|
||||
# rev: 0.2.0
|
||||
# hooks:
|
||||
# - id: sync_with_poetry
|
||||
- repo: https://github.com/floatingpurr/sync_with_poetry
|
||||
rev: 0.2.0
|
||||
hooks:
|
||||
- id: sync_with_poetry
|
||||
|
||||
- repo: https://github.com/python-poetry/poetry
|
||||
rev: '1.2.1'
|
||||
hooks:
|
||||
- id: poetry-check
|
||||
# - id: poetry-lock
|
||||
# args: [ "--no-update" ]
|
||||
- id: poetry-lock
|
||||
args: [ "--no-update" ]
|
||||
- id: poetry-export
|
||||
args: [ "-f", "requirements.txt", "--without-hashes", "-o", "requirements/base.txt" ]
|
||||
- id: poetry-export
|
||||
|
|
|
|||
|
|
@ -1 +1,52 @@
|
|||
Added missing shortcuts, new enums, reworked old stuff
|
||||
|
||||
**Breaking**
|
||||
All previously added enums is re-generated in new place - `aiogram.enums` instead of `aiogram.types`
|
||||
|
||||
**Added enums:** :class:`aiogram.enums.bot_command_scope_type.BotCommandScopeType`,
|
||||
:class:`aiogram.enums.chat_action.ChatActions`,
|
||||
:class:`aiogram.enums.chat_member_status.ChatMemberStatus`,
|
||||
:class:`aiogram.enums.chat_type.ChatType`,
|
||||
:class:`aiogram.enums.content_type.ContentType`,
|
||||
:class:`aiogram.enums.dice_emoji.DiceEmoji`,
|
||||
:class:`aiogram.enums.inline_query_result_type.InlineQueryResultType`,
|
||||
:class:`aiogram.enums.input_media_type.InputMediaType`,
|
||||
:class:`aiogram.enums.mask_position_point.MaskPositionPoint`,
|
||||
:class:`aiogram.enums.menu_button_type.MenuButtonType`,
|
||||
:class:`aiogram.enums.message_entity_type.MessageEntityType`,
|
||||
:class:`aiogram.enums.parse_mode.ParseMode`,
|
||||
:class:`aiogram.enums.poll_type.PollType`,
|
||||
:class:`aiogram.enums.sticker_type.StickerType`,
|
||||
:class:`aiogram.enums.topic_icon_color.TopicIconColor`,
|
||||
:class:`aiogram.enums.update_type.UpdateType`,
|
||||
|
||||
**Added shortcuts**:
|
||||
|
||||
- *Chat* :meth:`aiogram.types.chat.Chat.get_administrators`,
|
||||
:meth:`aiogram.types.chat.Chat.delete_message`,
|
||||
:meth:`aiogram.types.chat.Chat.revoke_invite_link`,
|
||||
:meth:`aiogram.types.chat.Chat.edit_invite_link`,
|
||||
:meth:`aiogram.types.chat.Chat.create_invite_link`,
|
||||
:meth:`aiogram.types.chat.Chat.export_invite_link`,
|
||||
:meth:`aiogram.types.chat.Chat.do`,
|
||||
:meth:`aiogram.types.chat.Chat.delete_sticker_set`,
|
||||
:meth:`aiogram.types.chat.Chat.set_sticker_set`,
|
||||
:meth:`aiogram.types.chat.Chat.get_member`,
|
||||
:meth:`aiogram.types.chat.Chat.get_member_count`,
|
||||
:meth:`aiogram.types.chat.Chat.leave`,
|
||||
:meth:`aiogram.types.chat.Chat.unpin_all_messages`,
|
||||
:meth:`aiogram.types.chat.Chat.unpin_message`,
|
||||
:meth:`aiogram.types.chat.Chat.pin_message`,
|
||||
:meth:`aiogram.types.chat.Chat.set_administrator_custom_title`,
|
||||
:meth:`aiogram.types.chat.Chat.set_permissions`,
|
||||
:meth:`aiogram.types.chat.Chat.promote`,
|
||||
:meth:`aiogram.types.chat.Chat.restrict`,
|
||||
:meth:`aiogram.types.chat.Chat.unban`,
|
||||
:meth:`aiogram.types.chat.Chat.ban`,
|
||||
:meth:`aiogram.types.chat.Chat.set_description`,
|
||||
:meth:`aiogram.types.chat.Chat.set_title`,
|
||||
:meth:`aiogram.types.chat.Chat.delete_photo`,
|
||||
:meth:`aiogram.types.chat.Chat.set_photo`,
|
||||
- *Sticker*: :meth:`aiogram.types.sticker.Sticker.set_position_in_set`,
|
||||
:meth:`aiogram.types.sticker.Sticker.delete_from_set`,
|
||||
- *User*: :meth:`aiogram.types.user.User.get_profile_photos`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue