Skip to content

Commit f31787a

Browse files
authored
Add pyupgrade to pre-commit Hooks (python-telegram-bot#2301)
* Add pyupgrade to pre-commit * update test_chat
1 parent b43a599 commit f31787a

37 files changed

+44
-61
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ repos:
2525
hooks:
2626
- id: mypy
2727
files: ^(telegram|examples)/.*\.py$
28+
- repo: https://github.com/asottile/pyupgrade
29+
rev: v2.7.4
30+
hooks:
31+
- id: pyupgrade
32+
files: ^(telegram|examples|tests)/.*\.py$
33+
args:
34+
- --py36-plus

examples/conversationbot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# pylint: disable=W0613, C0116
43
# type: ignore[union-attr]
54
# This program is dedicated to the public domain under the CC0 license.

examples/conversationbot2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# pylint: disable=W0613, C0116
43
# type: ignore[union-attr]
54
# This program is dedicated to the public domain under the CC0 license.

examples/deeplinking.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# pylint: disable=W0613, C0116
43
# type: ignore[union-attr]
54
# This program is dedicated to the public domain under the CC0 license.

examples/echobot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# pylint: disable=W0613, C0116
43
# type: ignore[union-attr]
54
# This program is dedicated to the public domain under the CC0 license.

examples/errorhandlerbot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# pylint: disable=W0613, C0116
43
# type: ignore[union-attr]
54
# This program is dedicated to the public domain under the CC0 license.

examples/inlinebot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# pylint: disable=W0613, C0116
43
# type: ignore[union-attr]
54
# This program is dedicated to the public domain under the CC0 license.

examples/inlinekeyboard.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# pylint: disable=W0613, C0116
43
# type: ignore[union-attr]
54
# This program is dedicated to the public domain under the CC0 license.

examples/inlinekeyboard2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# pylint: disable=W0613, C0116
43
# type: ignore[union-attr]
54
# This program is dedicated to the public domain under the CC0 license.

examples/nestedconversationbot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# pylint: disable=W0613, C0116
43
# type: ignore[union-attr]
54
# This program is dedicated to the public domain under the CC0 license.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy