Skip to content

Commit

Permalink
feat: drop py38, add py312, 313
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Nov 14, 2024
1 parent 014a789 commit 15a5943
Show file tree
Hide file tree
Showing 9 changed files with 876 additions and 725 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@main
Expand All @@ -34,7 +34,7 @@ jobs:
run: poetry install --with dev

- name: Check code
run: poetry run ruff aioauth_client
run: poetry run ruff check aioauth_client

- name: Check typing
run: poetry run mypy
Expand Down
88 changes: 57 additions & 31 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,48 +1,74 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
fail_fast: true
default_install_hook_types: [commit-msg, pre-commit, pre-push]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-case-conflict
- id: check-toml
- id: check-ast
- id: debug-statements
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-case-conflict
stages: ["pre-commit"]
- id: check-merge-conflict
stages: ["pre-commit"]
- id: check-added-large-files
stages: ["pre-commit"]
args: ['--maxkb=5000']
- id: check-ast
stages: ["pre-commit"]
- id: check-executables-have-shebangs
stages: ["pre-commit"]
- id: check-symlinks
stages: ["pre-commit"]
- id: check-toml
stages: ["pre-commit"]
- id: check-yaml
stages: ["pre-commit"]
- id: debug-statements
stages: ["pre-commit"]
- id: end-of-file-fixer
stages: ["pre-commit"]
- id: trailing-whitespace
stages: ["pre-commit"]

- repo: https://github.com/psf/black
rev: 23.1.0
rev: 24.4.2
hooks:
- id: black

- repo: https://github.com/python-poetry/poetry
rev: '1.4.0'
rev: '1.8.0'
hooks:
- id: poetry-check
- id: poetry-lock
args: ["--no-update"]
- id: poetry-check
files: ^(.*/)?pyproject\.toml$
stages: ["pre-commit"]
- id: poetry-lock
files: ^(.*/)?(poetry\.lock|pyproject\.toml)$
args: ["--no-update"]
stages: ["pre-commit"]

- repo: local
hooks:
- id: ruff
name: ruff
entry: poetry run ruff check aioauth_client
language: system
pass_filenames: false
files: \.py$
stages: ["pre-commit"]

- id: mypy
name: mypy
entry: poetry run mypy
language: system
pass_filenames: false

- id: ruff
name: ruff
entry: poetry run ruff aioauth_client
language: system
pass_filenames: false
- id: mypy
name: mypy
entry: poetry run mypy
language: system
pass_filenames: false
files: \.py$
stages: ["pre-push"]

- id: pytest
name: pytest
entry: poetry run pytest
language: system
pass_filenames: false
- id: pytest
name: pytest
entry: poetry run pytest
language: system
pass_filenames: false
files: \.py$
stages: ["pre-push"]
5 changes: 5 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-11-14 klen

* Support Python 3.12, 3.13
* Drop support Python 3.8

2023-03-17 klen

* Support Python 3.11
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ VIRTUAL_ENV ?= .venv
$(VIRTUAL_ENV): pyproject.toml
@poetry install --with dev,example
@poetry self add poetry-bumpversion
@poetry run pre-commit install --hook-type pre-push
@poetry run pre-commit install
@touch $(VIRTUAL_ENV)

.PHONY: t test
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ AIOAuth Client -- OAuth support for Asyncio_ / Trio_ libraries.
Requirements
=============

- python >= 3.8
- python >= 3.9

.. _installation:

Expand Down
Loading

0 comments on commit 15a5943

Please sign in to comment.