Skip to content

Commit 15a5943

Browse files
committed
feat: drop py38, add py312, 313
1 parent 014a789 commit 15a5943

File tree

9 files changed

+876
-725
lines changed

9 files changed

+876
-725
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: ['3.8', '3.9', '3.10', '3.11']
20+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
2121

2222
steps:
2323
- uses: actions/checkout@main
@@ -34,7 +34,7 @@ jobs:
3434
run: poetry install --with dev
3535

3636
- name: Check code
37-
run: poetry run ruff aioauth_client
37+
run: poetry run ruff check aioauth_client
3838

3939
- name: Check typing
4040
run: poetry run mypy

.pre-commit-config.yaml

Lines changed: 57 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,74 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
fail_fast: true
4+
default_install_hook_types: [commit-msg, pre-commit, pre-push]
45

56
repos:
6-
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.4.0
8-
hooks:
9-
- id: trailing-whitespace
10-
- id: end-of-file-fixer
11-
- id: check-merge-conflict
12-
- id: check-case-conflict
13-
- id: check-toml
14-
- id: check-ast
15-
- id: debug-statements
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v4.6.0
9+
hooks:
10+
- id: check-case-conflict
11+
stages: ["pre-commit"]
12+
- id: check-merge-conflict
13+
stages: ["pre-commit"]
14+
- id: check-added-large-files
15+
stages: ["pre-commit"]
16+
args: ['--maxkb=5000']
17+
- id: check-ast
18+
stages: ["pre-commit"]
19+
- id: check-executables-have-shebangs
20+
stages: ["pre-commit"]
21+
- id: check-symlinks
22+
stages: ["pre-commit"]
23+
- id: check-toml
24+
stages: ["pre-commit"]
25+
- id: check-yaml
26+
stages: ["pre-commit"]
27+
- id: debug-statements
28+
stages: ["pre-commit"]
29+
- id: end-of-file-fixer
30+
stages: ["pre-commit"]
31+
- id: trailing-whitespace
32+
stages: ["pre-commit"]
1633

1734
- repo: https://github.com/psf/black
18-
rev: 23.1.0
35+
rev: 24.4.2
1936
hooks:
2037
- id: black
2138

2239
- repo: https://github.com/python-poetry/poetry
23-
rev: '1.4.0'
40+
rev: '1.8.0'
2441
hooks:
25-
- id: poetry-check
26-
- id: poetry-lock
27-
args: ["--no-update"]
42+
- id: poetry-check
43+
files: ^(.*/)?pyproject\.toml$
44+
stages: ["pre-commit"]
45+
- id: poetry-lock
46+
files: ^(.*/)?(poetry\.lock|pyproject\.toml)$
47+
args: ["--no-update"]
48+
stages: ["pre-commit"]
2849

2950
- repo: local
3051
hooks:
52+
- id: ruff
53+
name: ruff
54+
entry: poetry run ruff check aioauth_client
55+
language: system
56+
pass_filenames: false
57+
files: \.py$
58+
stages: ["pre-commit"]
3159

32-
- id: mypy
33-
name: mypy
34-
entry: poetry run mypy
35-
language: system
36-
pass_filenames: false
37-
38-
- id: ruff
39-
name: ruff
40-
entry: poetry run ruff aioauth_client
41-
language: system
42-
pass_filenames: false
60+
- id: mypy
61+
name: mypy
62+
entry: poetry run mypy
63+
language: system
64+
pass_filenames: false
65+
files: \.py$
66+
stages: ["pre-push"]
4367

44-
- id: pytest
45-
name: pytest
46-
entry: poetry run pytest
47-
language: system
48-
pass_filenames: false
68+
- id: pytest
69+
name: pytest
70+
entry: poetry run pytest
71+
language: system
72+
pass_filenames: false
73+
files: \.py$
74+
stages: ["pre-push"]

Changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2024-11-14 klen
2+
3+
* Support Python 3.12, 3.13
4+
* Drop support Python 3.8
5+
16
2023-03-17 klen
27

38
* Support Python 3.11

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ VIRTUAL_ENV ?= .venv
2121
$(VIRTUAL_ENV): pyproject.toml
2222
@poetry install --with dev,example
2323
@poetry self add poetry-bumpversion
24-
@poetry run pre-commit install --hook-type pre-push
24+
@poetry run pre-commit install
2525
@touch $(VIRTUAL_ENV)
2626

2727
.PHONY: t test

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ AIOAuth Client -- OAuth support for Asyncio_ / Trio_ libraries.
2828
Requirements
2929
=============
3030

31-
- python >= 3.8
31+
- python >= 3.9
3232

3333
.. _installation:
3434

0 commit comments

Comments
 (0)