Skip to content

Commit a9062f8

Browse files
committed
Bump python version for linters etc.
1 parent 6ae448a commit a9062f8

File tree

6 files changed

+10
-13
lines changed

6 files changed

+10
-13
lines changed

.github/workflows/flake8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
if: steps.changes.outputs.code == 'true'
3636
uses: "actions/setup-python@v5"
3737
with:
38-
python-version: "3.7"
38+
python-version: "3.9"
3939

4040
- name: Install dependencies 🔧
4141
if: steps.changes.outputs.code == 'true'

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
if: steps.changes.outputs.code == 'true'
4141
uses: "actions/setup-python@v5"
4242
with:
43-
python-version: "3.7"
43+
python-version: "3.9"
4444

4545
- name: Install dependencies 🔧
4646
run: |

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ repos:
6666
hooks:
6767
- id: pyupgrade
6868
args:
69-
- --py36-plus
69+
- --py37-plus
7070
- --keep-runtime-typing
7171

7272
- repo: https://github.com/Lucas-C/pre-commit-hooks

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ name = "sphinx-jinja2-compat"
77
version = "0.4.1"
88
description = "Patches Jinja2 v3 to restore compatibility with earlier Sphinx versions."
99
readme = "README.rst"
10-
requires-python = ">=3.6"
1110
keywords = [ "documentation", "jinja2", "sphinx",]
12-
dynamic = [ "classifiers", "dependencies",]
11+
dynamic = [ "requires-python", "classifiers", "dependencies",]
1312

1413
[project.license]
1514
file = "LICENSE"
@@ -54,7 +53,7 @@ always = [
5453
]
5554

5655
[tool.mypy]
57-
python_version = "3.7"
56+
python_version = "3.9"
5857
namespace_packages = true
5958
check_untyped_defs = true
6059
warn_unused_ignores = true

repo_helper.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ short_desc: "Patches Jinja2 v3 to restore compatibility with earlier Sphinx vers
1313
use_whey: true
1414
enable_docs: False
1515
enable_tests: False
16-
requires_python: 3.6
17-
python_deploy_version: 3.7
1816

1917
conda_channels:
2018
- conda-forge

tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ commands =
8888
check-wheel-contents dist/
8989

9090
[testenv:lint]
91-
basepython = python3.7
91+
basepython = python3.9
9292
changedir = {toxinidir}
9393
ignore_errors = True
9494
skip_install = True
@@ -118,22 +118,22 @@ deps =
118118
commands = python3 -m flake8_rst_docstrings_sphinx sphinx_jinja2_compat --allow-toolbox {posargs}
119119

120120
[testenv:perflint]
121-
basepython = python3.7
121+
basepython = python3.9
122122
changedir = {toxinidir}
123123
ignore_errors = True
124124
skip_install = True
125125
deps = perflint
126126
commands = python3 -m perflint sphinx_jinja2_compat {posargs}
127127

128128
[testenv:mypy]
129-
basepython = python3.7
129+
basepython = python3.9
130130
ignore_errors = True
131131
changedir = {toxinidir}
132132
deps = mypy==1.17.1
133133
commands = mypy sphinx_jinja2_compat {posargs}
134134

135135
[testenv:pyup]
136-
basepython = python3.7
136+
basepython = python3.9
137137
skip_install = True
138138
ignore_errors = True
139139
changedir = {toxinidir}
@@ -160,7 +160,7 @@ inline-quotes = "
160160
multiline-quotes = """
161161
docstring-quotes = """
162162
count = True
163-
min_python_version = 3.6
163+
min_python_version = 3.7
164164
unused-arguments-ignore-abstract-functions = True
165165
unused-arguments-ignore-overload-functions = True
166166
unused-arguments-ignore-magic-methods = True

0 commit comments

Comments
 (0)