Skip to content

Commit

Permalink
Merge pull request #24 from arkinmodi/drop-py38
Browse files Browse the repository at this point in the history
drop python 3.8 support
  • Loading branch information
arkinmodi authored Nov 5, 2024
2 parents d7335d1 + cb68fd3 commit 39c4ee2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ jobs:
fail-fast: false
matrix:
env:
- py38
- py39
- py310
- py311
- py312
- py313
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: |
${{
matrix.env == 'py38' && '3.8' ||
matrix.env == 'py39' && '3.9' ||
matrix.env == 'py310' && '3.10' ||
matrix.env == 'py311' && '3.11' ||
'3.12'
matrix.env == 'py312' && '3.12' ||
'3.13'
}}
- run: python3 -m pip install --upgrade setuptools tox
Expand Down
22 changes: 17 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
rev: v3.13.0
hooks:
- id: reorder-python-imports
args: [--py38-plus, --add-import, "from __future__ import annotations"]
args: [--py39-plus, --add-import, "from __future__ import annotations"]

- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
Expand All @@ -31,7 +31,7 @@ repos:
rev: v3.16.0
hooks:
- id: pyupgrade
args: [--py38-plus]
args: [--py39-plus]

- repo: https://github.com/hhatto/autopep8
rev: v2.3.1
Expand All @@ -54,10 +54,22 @@ repos:
- id: yamllint
args: [--strict]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
- repo: local
hooks:
- id: prettier
name: Prettier
language: node
entry: prettier --write --ignore-unknown
additional_dependencies:
- prettier@latest
types_or:
- markdown
- yaml

- id: prettier-markdown
name: Prettier (markdown)
language: node
entry: prettier --write --prose-wrap always
additional_dependencies:
- prettier@latest
types_or:
- markdown
2 changes: 1 addition & 1 deletion add_license_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import string
import subprocess
import sys
from collections.abc import Sequence
from datetime import date
from typing import NamedTuple
from typing import Sequence
from typing import TypedDict

from identify import identify
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers =
py_modules = add_license_header
install_requires =
identify
python_requires = >=3.8
python_requires = >=3.9

[options.entry_points]
console_scripts =
Expand Down

0 comments on commit 39c4ee2

Please sign in to comment.