Skip to content

Commit f789c07

Browse files
authored
[Python Version Upgrade]: First Pass at Upgrading Track to use python:3.10.6-slim (exercism#3158)
* First pass at upgrading track to python:3.10.6-slim. Adjusted GH workflow to use Python 3.10.6 for the CI setup. Edited pylintrc to omit depreicated check for whitespace. Checked and pinned library versions for requirements.txt and requirements-generator.txt Re-tested all exercises to see if they'd explode. * pylint 2.14.5 needs astroid 2.12. * Upgraded JinJa2 to latest, pinned astroid to <=2.12.0. * Dropping support for python 3.6, adding python 3.10.6 to version matrix. * Pinned version of JinJa2 to 3.1.2
1 parent 48e47c1 commit f789c07

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/ci-workflow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Python
2020
uses: actions/setup-python@v4
2121
with:
22-
python-version: 3.8
22+
python-version: 3.10.6
2323

2424
- name: Download & Install dependencies
2525
run: |
@@ -53,7 +53,7 @@ jobs:
5353
needs: housekeeping
5454
strategy:
5555
matrix:
56-
python-version: [3.6, 3.7, 3.8, 3.9]
56+
python-version: [3.7, 3.8, 3.9, 3.10.6]
5757
steps:
5858
- uses: actions/checkout@v3
5959

@@ -66,7 +66,7 @@ jobs:
6666
run: pip install dataclasses
6767

6868
- name: Install pytest
69-
run: pip install pytest~=7.0.1
69+
run: pip install pytest~=7.1.2
7070

7171
- name: Check exercises
7272
run: |

pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ single-line-if-stmt=yes
231231
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
232232
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
233233
# `empty-line` allows space-only lines.
234-
no-space-check=
234+
# no-space-check=
235235

236236
# Maximum number of lines in a module
237237
max-module-lines=99999

requirements-generator.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
black==22.3.0
22
flake8==3.7.8
3-
Jinja2==2.10.1
3+
Jinja2~=3.1.2
44
python-dateutil==2.8.1
55
markupsafe==2.0.1
6-
tomli
6+
tomli~=2.0.1

requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
astroid>=2.6.5
2-
flake8==4.0.1
3-
pylint>=2.9.2
4-
yapf>=0.31.0
5-
tomli
1+
astroid<=2.12.0
2+
flake8~=5.0.4
3+
pylint~=2.14.5
4+
yapf~=0.32.0
5+
tomli~=2.0.1

0 commit comments

Comments
 (0)