File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11repos :
22 - repo : https://github.com/astral-sh/ruff-pre-commit
3- rev : v0.14.10
3+ rev : v0.15.9
44 hooks :
55 - id : ruff-check
66 args : [--exit-non-zero-on-fix]
77
88 - repo : https://github.com/psf/black-pre-commit-mirror
9- rev : 25.12.0
9+ rev : 26.3.1
1010 hooks :
1111 - id : black
1212
@@ -26,22 +26,22 @@ repos:
2626 - id : trailing-whitespace
2727
2828 - repo : https://github.com/python-jsonschema/check-jsonschema
29- rev : 0.36.0
29+ rev : 0.37.1
3030 hooks :
3131 - id : check-github-workflows
3232
3333 - repo : https://github.com/rhysd/actionlint
34- rev : v1.7.10
34+ rev : v1.7.12
3535 hooks :
3636 - id : actionlint
3737
3838 - repo : https://github.com/tox-dev/pyproject-fmt
39- rev : v2.11.1
39+ rev : v2.21.0
4040 hooks :
4141 - id : pyproject-fmt
4242
4343 - repo : https://github.com/abravalheri/validate-pyproject
44- rev : v0.24.1
44+ rev : v0.25
4545 hooks :
4646 - id : validate-pyproject
4747 - repo : meta
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ target_version = [ "py310" ]
33
44[tool .ruff ]
55fix = true
6-
76lint.select = [
87 " C4" , # flake8-comprehensions
98 " E" , # pycodestyle errors
Original file line number Diff line number Diff line change 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
122112REASONS = """
Original file line number Diff line number Diff line change 22"""
33Unit tests for utils.py
44"""
5+
56import unittest
67
78import utils
You can’t perform that action at this time.
0 commit comments