[Python Version Upgrade]: First Pass at Upgrading Track to use python:3.10.6-slim (#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
This commit is contained in:
6
.github/workflows/ci-workflow.yml
vendored
6
.github/workflows/ci-workflow.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: 3.10.6
|
||||
|
||||
- name: Download & Install dependencies
|
||||
run: |
|
||||
@@ -53,7 +53,7 @@ jobs:
|
||||
needs: housekeeping
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.6, 3.7, 3.8, 3.9]
|
||||
python-version: [3.7, 3.8, 3.9, 3.10.6]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@@ -66,7 +66,7 @@ jobs:
|
||||
run: pip install dataclasses
|
||||
|
||||
- name: Install pytest
|
||||
run: pip install pytest~=7.0.1
|
||||
run: pip install pytest~=7.1.2
|
||||
|
||||
- name: Check exercises
|
||||
run: |
|
||||
|
||||
2
pylintrc
2
pylintrc
@@ -231,7 +231,7 @@ single-line-if-stmt=yes
|
||||
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
|
||||
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
|
||||
# `empty-line` allows space-only lines.
|
||||
no-space-check=
|
||||
# no-space-check=
|
||||
|
||||
# Maximum number of lines in a module
|
||||
max-module-lines=99999
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
black==22.3.0
|
||||
flake8==3.7.8
|
||||
Jinja2==2.10.1
|
||||
Jinja2~=3.1.2
|
||||
python-dateutil==2.8.1
|
||||
markupsafe==2.0.1
|
||||
tomli
|
||||
tomli~=2.0.1
|
||||
@@ -1,5 +1,5 @@
|
||||
astroid>=2.6.5
|
||||
flake8==4.0.1
|
||||
pylint>=2.9.2
|
||||
yapf>=0.31.0
|
||||
tomli
|
||||
astroid<=2.12.0
|
||||
flake8~=5.0.4
|
||||
pylint~=2.14.5
|
||||
yapf~=0.32.0
|
||||
tomli~=2.0.1
|
||||
Reference in New Issue
Block a user