Skip to content

Commit

Permalink
Drop EOL Pythons. Maintain
Browse files Browse the repository at this point in the history
  • Loading branch information
hukkin committed Oct 16, 2024
1 parent cc0cbd9 commit 67ba94b
Show file tree
Hide file tree
Showing 5 changed files with 281 additions and 355 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 @@ -3,7 +3,7 @@ name: Tests
on:
push:
branches: [ master ]
tags: [ '*.*.*' ]
tags: [ '[0-9]+.[0-9]+.[0-9]+*' ]
pull_request:
branches: [ master ]

Expand All @@ -12,31 +12,31 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: '^1.15.3'

- name: Installation
run: |
go env -w GO111MODULE=on
go get mvdan.cc/sh/v3/cmd/shfmt
pip install "poetry==1.1.4"
pip install "poetry==1.8.4"
poetry config virtualenvs.create false
poetry install --no-interaction --no-ansi
- name: Linters
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.6'
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
run: |
pre-commit run -a
Expand All @@ -56,13 +56,13 @@ jobs:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: '3.x'
- name: Install Poetry
run: |
pip install "poetry==1.1.4"
pip install "poetry==1.8.4"
- name: Build and publish
run: |
# TODO: Remove the first command as soon as this Poetry bug is fixed: https://github.com/python-poetry/poetry/issues/2210
Expand Down
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 6e2418c5521b7d606e72914dced3253f9ace1205 # frozen: v3.4.0
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
hooks:
- id: check-yaml
- id: check-toml
- repo: https://github.com/pre-commit/pygrep-hooks
rev: 4f4c0a4cda27980be153cca2cb7710c9fec57ba3 # frozen: v1.7.0
rev: 3a6eb0fadf60b3cccfd80bad9dbb6fae7e47b316 # frozen: v1.10.0
hooks:
- id: python-use-type-annotations
- id: python-check-blanket-noqa
- repo: https://github.com/timothycrosley/isort
rev: 473d150c1db60f4614a574e30993e9e0d3ca0cce # frozen: 5.7.0
- repo: https://github.com/PyCQA/isort
rev: c235f5e450b4b84e58d114ed4c589cbf454175a3 # frozen: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: e66be67b9b6811913470f70c28b4d50f94d05b22 # frozen: 20.8b1
rev: 1b2427a2b785cc4aac97c19bb4b9a0de063f9547 # frozen: 24.10.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: bb6a530e28acab8d3551043b3e8709db8bcbac6b # frozen: 3.8.4
- repo: https://github.com/PyCQA/flake8
rev: e43806be3607110919eff72939fda031776e885a # frozen: 7.1.1
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-builtins
- flake8-comprehensions
- repo: https://github.com/myint/docformatter
rev: 67919ee01837761f2d954d7fbb08c12cdd38ec5a # frozen: v1.4
- repo: https://github.com/hukkin/docformatter
rev: ab802050e6e96aaaf7f917fcbc333bb74e2e57f7 # frozen: v1.4.2
hooks:
- id: docformatter
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-shfmt/workflows/Tests/badge.svg?branch=master)](<https://github.com/hukkinj1/mdformat-shfmt/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush>)
[![Build Status](https://github.com/hukkin/mdformat-shfmt/actions/workflows/tests.yaml/badge.svg?branch=master)](<https://github.com/hukkin/mdformat-shfmt/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush>)
[![PyPI version](<https://img.shields.io/pypi/v/mdformat-shfmt>)](<https://pypi.org/project/mdformat-shfmt>)

# mdformat-shfmt
Expand Down
Loading

0 comments on commit 67ba94b

Please sign in to comment.