Skip to content

Commit

Permalink
Maintain: drop Python 3.8, move to flit, test Python 3.13, add tox, e…
Browse files Browse the repository at this point in the history
…tc. (#43)
  • Loading branch information
hukkin authored Oct 11, 2024
1 parent bd3c339 commit b3fc3b2
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 579 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/tests.yml → .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
Expand All @@ -26,20 +26,20 @@ jobs:

- name: Installation (deps and package)
run: |
pip install "poetry==1.6.1"
poetry config virtualenvs.create false
poetry install --no-interaction --no-ansi
- name: Linters
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
run: |
pre-commit run -a
mypy .
pip install .
- name: Test with pytest
run: |
pip install -r tests/requirements.txt
pytest
- name: Linters
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
run: |
pip install pre-commit mypy==1.11.2
pre-commit run --all-files
mypy .
pypi-publish:
# Only publish if all other jobs succeed
needs: [ build ]
Expand All @@ -49,7 +49,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.x'
- name: Install build and publish tools
run: |
pip install build twine
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
hooks:
- id: check-yaml
- id: check-toml
Expand All @@ -14,19 +14,19 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 6fdf8a4af28071ed1d079c01122b34c5d587207a # frozen: 24.2.0
rev: 1b2427a2b785cc4aac97c19bb4b9a0de063f9547 # frozen: 24.10.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7d37d9032d0d161634be4554273c30efd4dea0b3 # frozen: 7.0.0
rev: e43806be3607110919eff72939fda031776e885a # frozen: 7.1.1
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-builtins
- flake8-comprehensions
- repo: https://github.com/PyCQA/docformatter
rev: dfefe062799848234b4cd60b04aa633c0608025e # frozen: v1.7.5
- repo: https://github.com/hukkin/docformatter
rev: ab802050e6e96aaaf7f917fcbc333bb74e2e57f7 # frozen: v1.4.2
hooks:
- id: docformatter
- repo: https://github.com/executablebooks/mdformat
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://github.com/hukkinj1/mdformat-gfm/workflows/Tests/badge.svg?branch=master)](https://github.com/hukkinj1/mdformat-gfm/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush)
[![Build Status](https://github.com/hukkin/mdformat-gfm/actions/workflows/tests.yaml/badge.svg?branch=master)](https://github.com/hukkin/mdformat-gfm/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush)
[![PyPI version](https://img.shields.io/pypi/v/mdformat-gfm)](https://pypi.org/project/mdformat-gfm)

# mdformat-gfm
Expand Down
Loading

0 comments on commit b3fc3b2

Please sign in to comment.