Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:
jobs:
Run:
name: "Flake8"
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"

steps:
- name: Checkout 🛎️
Expand All @@ -35,7 +35,7 @@ jobs:
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v5"
with:
python-version: "3.8"
python-version: "3.9"

- name: Install dependencies 🔧
if: steps.changes.outputs.code == 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
os: ['ubuntu-20.04']
os: ['ubuntu-22.04']
fail-fast: false

steps:
Expand All @@ -40,7 +40,7 @@ jobs:
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v5"
with:
python-version: "3.8"
python-version: "3.9"

- name: Install dependencies 🔧
run: |
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ permissions:

jobs:
tests:
name: "ubuntu-20.04 / Python ${{ matrix.config.python-version }}"
runs-on: "ubuntu-20.04"
name: "ubuntu-22.04 / Python ${{ matrix.config.python-version }}"
runs-on: "ubuntu-22.04"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.7,3.8,3.9,3.10'
Expand Down Expand Up @@ -74,11 +74,12 @@ jobs:
with:
name: "coverage-${{ matrix.config.python-version }}"
path: .coverage
include-hidden-files: true


Coverage:
needs: tests
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
Expand Down Expand Up @@ -116,6 +117,7 @@ jobs:
with:
name: "combined-coverage"
path: .coverage
include-hidden-files: true

- name: "Upload Combined Coverage to Coveralls"
if: ${{ steps.show.outcome != 'failure' }}
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ci:

repos:
- repo: https://github.com/repo-helper/pyproject-parser
rev: v0.11.1
rev: v0.13.0
hooks:
- id: reformat-pyproject

Expand Down Expand Up @@ -43,7 +43,7 @@ repos:
- id: bind-requirements

- repo: https://github.com/python-formate/flake8-dunder-all
rev: v0.4.1
rev: v0.5.0
hooks:
- id: ensure-dunder-all
files: ^tox_raspi_ci/.*\.py$
Expand All @@ -62,11 +62,11 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/asottile/pyupgrade
rev: v2.12.0
rev: v3.3.0
hooks:
- id: pyupgrade
args:
- --py36-plus
- --py37-plus
- --keep-runtime-typing

- repo: https://github.com/Lucas-C/pre-commit-hooks
Expand All @@ -81,7 +81,7 @@ repos:
- id: snippet-fmt

- repo: https://github.com/python-formate/formate
rev: v0.7.0
rev: v0.8.0
hooks:
- id: formate
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ Automated tests
-------------------

Tests are run with ``tox`` and ``pytest``.
To run tests for a specific Python version, such as Python 3.6:
To run tests for a specific Python version, such as Python 3.10:

.. code-block:: bash

$ tox -e py36
$ tox -e py310


To run tests for all Python versions, simply run:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ tox-raspi-ci
:target: https://github.com/domdfcoding/tox-raspi-ci/commit/master
:alt: GitHub last commit

.. |maintained| image:: https://img.shields.io/maintenance/yes/2024
.. |maintained| image:: https://img.shields.io/maintenance/yes/2025
:alt: Maintenance

.. end shields
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ license-key = "MIT"
package = "tox_raspi_ci"

[tool.mypy]
python_version = "3.8"
python_version = "3.9"
namespace_packages = true
check_untyped_defs = true
warn_unused_ignores = true
Expand Down
17 changes: 9 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ requires =
[envlists]
test = py37, py38, py39, py310
qa = mypy, lint
cov = py38, coverage
cov = py39, coverage

[testenv]
setenv =
Expand Down Expand Up @@ -70,7 +70,7 @@ commands =
check-wheel-contents dist/

[testenv:lint]
basepython = python3.8
basepython = python3.9
changedir = {toxinidir}
ignore_errors = True
skip_install = True
Expand All @@ -90,42 +90,43 @@ deps =
flake8-sphinx-links>=0.0.4
flake8-strftime>=0.1.1
flake8-typing-imports>=1.10.0
git+https://github.com/domdfcoding/restructuredtext-lint.git@fix-deprecations
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
git+https://github.com/python-formate/flake8-missing-annotations.git
pydocstyle>=6.0.0
git+https://github.com/domdfcoding/pydocstyle.git@stub-functions
pygments>=2.7.1
importlib_metadata<4.5.0; python_version<'3.8'
commands = python3 -m flake8_rst_docstrings_sphinx tox_raspi_ci tests --allow-toolbox {posargs}

[testenv:perflint]
basepython = python3.8
basepython = python3.9
changedir = {toxinidir}
ignore_errors = True
skip_install = True
deps = perflint
commands = python3 -m perflint tox_raspi_ci {posargs}

[testenv:mypy]
basepython = python3.8
basepython = python3.9
ignore_errors = True
changedir = {toxinidir}
deps =
mypy==0.971
mypy==1.17.1
-r{toxinidir}/tests/requirements.txt
commands = mypy tox_raspi_ci tests {posargs}

[testenv:pyup]
basepython = python3.8
basepython = python3.9
skip_install = True
ignore_errors = True
changedir = {toxinidir}
deps = pyupgrade-directories
commands = pyup_dirs tox_raspi_ci tests --py36-plus --recursive

[testenv:coverage]
basepython = python3.8
basepython = python3.9
skip_install = True
ignore_errors = True
whitelist_externals = /bin/bash
Expand Down
Loading