Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
rev: v0.15.9
hooks:
- id: ruff-check
args: [--exit-non-zero-on-fix]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.3.1
hooks:
- id: black

Expand All @@ -26,22 +26,22 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.36.0
rev: 0.37.1
hooks:
- id: check-github-workflows

- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
rev: v1.7.12
hooks:
- id: actionlint

- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.11.1
rev: v2.21.0
hooks:
- id: pyproject-fmt

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
rev: v0.25
hooks:
- id: validate-pyproject
- repo: meta
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ target_version = [ "py310" ]

[tool.ruff]
fix = true

lint.select = [
"C4", # flake8-comprehensions
"E", # pycodestyle errors
Expand Down
30 changes: 10 additions & 20 deletions template.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,39 +84,29 @@
<li><a href="https://docs.python.org/3/whatsnew/3.6.html">f-strings in 3.6!</a></li>
""", # noqa: E501
},
"3.6": {
"reasons": """
"3.6": {"reasons": """
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-37">Future typing</a></li>
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-37">Guaranteed dict sort order</a></li>
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-37"><pre>breakpoint()</pre></a></li>
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-37">Data classes</a></li>
<li><a href="https://docs.python.org/3/whatsnew/$template_next_version.html">And more!</a></li>
""" # noqa: E501
},
"3.7": {
"reasons": """
"""}, # noqa: E501
"3.7": {"reasons": """
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-38"><strike>Walrus operator</strike></a></li>
<li><a href="https://docs.python.org/3/whatsnew/$template_next_version.html">And more!</a></li>
""" # noqa: E501
},
"3.8": {
"reasons": """
"""}, # noqa: E501
"3.8": {"reasons": """
<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>
<li><a href="https://docs.python.org/3/whatsnew/$template_next_version.html">And more!</a></li>
""" # noqa: E501
},
"3.9": {
"reasons": """
"""}, # noqa: E501
"3.9": {"reasons": """
<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>
<li><a href="https://docs.python.org/3/whatsnew/$template_next_version.html">And more!</a></li>
""" # noqa: E501
},
"3.10": {
"reasons": """
"""}, # noqa: E501
"3.10": {"reasons": """
<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>
<li><a href="https://docs.python.org/3/whatsnew/$template_next_version.html">And more!</a></li>
""" # noqa: E501
},
"""}, # noqa: E501
}

REASONS = """
Expand Down
1 change: 1 addition & 0 deletions test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"""
Unit tests for utils.py
"""

import unittest

import utils
Expand Down