Skip to content

Commit 66903fc

Browse files
authored
feat: Drop Python 3.6 (#252)
* Bump Python version and dependencies * Drop Python 3.6 from CI * Bump Python version in flake8 config * Bump Python version in pyupgrade config * Update Python versions in tox config * Drop special case from CI
1 parent 93bec6f commit 66903fc

File tree

6 files changed

+536
-522
lines changed

6 files changed

+536
-522
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
min_python_version = 3.6.0
2+
min_python_version = 3.7.0
33
max-line-length = 88
44
ignore = E501, E203, W503
55
per-file-ignores =

.github/workflows/tests.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
os: [Ubuntu, MacOS, Windows]
30-
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11.0-rc - 3.11.0"]
30+
python-version: [3.7, 3.8, 3.9, "3.10", "3.11.0-rc - 3.11.0"]
3131
exclude:
3232
- python-version: "3.11.0-rc - 3.11.0"
3333
os: MacOS
@@ -50,13 +50,7 @@ jobs:
5050
5151
- name: Install Poetry
5252
shell: bash
53-
if: ${{ !startsWith(matrix.python-version, '3.11') }}
54-
run: |
55-
curl -fsSL https://install.python-poetry.org | python - -y --version 1.1.15
56-
- name: Install Poetry 1.2
57-
shell: bash
58-
if: startsWith(matrix.python-version, '3.11')
59-
run: curl -fsSL https://install.python-poetry.org | python - -y --version 1.2.1
53+
run: curl -fsSL https://install.python-poetry.org | python - -y --version 1.2.2
6054
- name: Update PATH
6155
if: ${{ matrix.os != 'Windows' }}
6256
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ repos:
4040
rev: v2.37.1
4141
hooks:
4242
- id: pyupgrade
43-
args: [--py36-plus]
43+
args: [--py37-plus]
4444

4545
- repo: https://github.com/hadialqattan/pycln
4646
rev: v2.0.1

0 commit comments

Comments
 (0)