Skip to content

Commit 05c6050

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2ce6733 commit 05c6050

3 files changed

Lines changed: 11 additions & 21 deletions

File tree

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ target_version = [ "py310" ]
33

44
[tool.ruff]
55
fix = true
6-
76
lint.select = [
87
"C4", # flake8-comprehensions
98
"E", # pycodestyle errors

template.py

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -84,39 +84,29 @@
8484
<li><a href="https://docs.python.org/3/whatsnew/3.6.html">f-strings in 3.6!</a></li>
8585
""", # noqa: E501
8686
},
87-
"3.6": {
88-
"reasons": """
87+
"3.6": {"reasons": """
8988
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-37">Future typing</a></li>
9089
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-37">Guaranteed dict sort order</a></li>
9190
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-37"><pre>breakpoint()</pre></a></li>
9291
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-37">Data classes</a></li>
9392
<li><a href="https://docs.python.org/3/whatsnew/$template_next_version.html">And more!</a></li>
94-
""" # noqa: E501
95-
},
96-
"3.7": {
97-
"reasons": """
93+
"""}, # noqa: E501
94+
"3.7": {"reasons": """
9895
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-38"><strike>Walrus operator</strike></a></li>
9996
<li><a href="https://docs.python.org/3/whatsnew/$template_next_version.html">And more!</a></li>
100-
""" # noqa: E501
101-
},
102-
"3.8": {
103-
"reasons": """
97+
"""}, # noqa: E501
98+
"3.8": {"reasons": """
10499
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-39">use <code>list</code> and <code>dict</code> for type annotations</a></li>
105100
<li><a href="https://docs.python.org/3/whatsnew/$template_next_version.html">And more!</a></li>
106-
""" # noqa: E501
107-
},
108-
"3.9": {
109-
"reasons": """
101+
"""}, # noqa: E501
102+
"3.9": {"reasons": """
110103
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-310">use <code>match</code> statement and write union types as <code>X | Y</code></a></li>
111104
<li><a href="https://docs.python.org/3/whatsnew/$template_next_version.html">And more!</a></li>
112-
""" # noqa: E501
113-
},
114-
"3.10": {
115-
"reasons": """
105+
"""}, # noqa: E501
106+
"3.10": {"reasons": """
116107
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-311"><code>tomllib</code> in the stdlib, exception groups and except*</a></li>
117108
<li><a href="https://docs.python.org/3/whatsnew/$template_next_version.html">And more!</a></li>
118-
""" # noqa: E501
119-
},
109+
"""}, # noqa: E501
120110
}
121111

122112
REASONS = """

test_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Unit tests for utils.py
44
"""
5+
56
import unittest
67

78
import utils

0 commit comments

Comments
 (0)