Skip to content

Commit

Permalink
feat(python): update supported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas03 committed Aug 14, 2024
1 parent 92ff429 commit 516ec74
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Setting up tox environment
uses: docker://kiwicom/tox:3.21.2
uses: docker://kiwicom/tox:3.25.0
env:
TOXENV: ${{ matrix.toxenv }}
XDG_CACHE_HOME: /tmp/cache
Expand All @@ -27,7 +27,7 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('requirements.txt') }}
strategy:
matrix:
toxenv: [py37, py38, py39]
toxenv: [py39, py310, py311]

lint:
name: pylint
Expand Down Expand Up @@ -66,16 +66,27 @@ jobs:
pre-commit:
name: Static checks
runs-on: ubuntu-latest
container: kiwicom/pre-commit:2.9.3
container: kiwicom/pre-commit:3.6.0


steps:
- uses: actions/checkout@v2

- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11

- name: Cache
uses: actions/cache@v2
with:
path: .pre-commit-cache
key: static-checks-${{ hashFiles('.pre-commit-config.yaml') }}
# git checkout is not creating a working git folder, it has dubious ownership if not configured
# The pre-commit hook will not work on this original git folder
# https://github.com/pre-commit/pre-commit/issues/2125
- name: fix git
run: git config --system --add safe.directory '*'

- run: mkdir -p .pre-commit-cache
- run: pre-commit install --install-hooks
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
pyver: ["3.6", "3.7", "3.8", "3.9"]
pyver: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.7
python_version = 3.11
ignore_missing_imports = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Intended Audience :: Developers",
],
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = pylint,tests-{py37,py38,py39}
envlist = pylint,tests-{py39,py310,py311}

[testenv]
deps =
Expand Down

0 comments on commit 516ec74

Please sign in to comment.