Skip to content

Commit 3a7b7a8

Browse files
authored
chore: update project (#6)
* Update pre-commit hooks * Support Python 3.13 * Use trusted publishing workflow for PyPI * Bump version to 0.2.1
1 parent 698aebf commit 3a7b7a8

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

.github/workflows/python-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ permissions:
1212

1313
jobs:
1414
deploy:
15+
name: Upload release to PyPI
1516
runs-on: ubuntu-latest
17+
environment: release
18+
permissions:
19+
id-token: write
1620

1721
steps:
1822
- uses: actions/checkout@v4
@@ -28,6 +32,3 @@ jobs:
2832
run: python -m build
2933
- name: Publish package
3034
uses: pypa/gh-action-pypi-publish@release/v1
31-
with:
32-
user: __token__
33-
password: ${{ secrets.PYPI_API_TOKEN }}

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ ci:
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.6.0
6+
rev: v5.0.0
77
hooks:
88
- id: trailing-whitespace
99
- id: end-of-file-fixer
1010
- id: check-docstring-first
1111
- id: check-yaml
1212

1313
- repo: https://github.com/psf/black
14-
rev: 24.4.2
14+
rev: 24.10.0
1515
hooks:
1616
- id: black
1717
args: [--safe, --line-length=100]
@@ -23,13 +23,13 @@ repos:
2323
args: ["--profile", "black"]
2424

2525
- repo: https://github.com/pre-commit/mirrors-mypy
26-
rev: v1.10.0
26+
rev: v1.13.0
2727
hooks:
2828
- id: mypy
2929
args: [--disable-error-code=union-attr, --disable-error-code=import]
3030

3131
- repo: https://github.com/asottile/pyupgrade
32-
rev: v3.15.2
32+
rev: v3.19.0
3333
hooks:
3434
- id: pyupgrade
3535
args: [--py39-plus]

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version: 2
66
build:
77
os: ubuntu-22.04
88
tools:
9-
python: "3.11"
9+
python: "3.12"
1010

1111
sphinx:
1212
configuration: docs/conf.py

cookie/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__title__ = "cookie-api"
22
__license__ = "MIT"
3-
__version__ = "0.2.0"
3+
__version__ = "0.2.1"
44

55
from .api import AsyncCookieAPI, CookieAPI
66
from .errors import *

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ classifiers = [
1717
"Programming Language :: Python :: 3.10",
1818
"Programming Language :: Python :: 3.11",
1919
"Programming Language :: Python :: 3.12",
20+
"Programming Language :: Python :: 3.13",
2021
]
2122
dynamic = ["dependencies", "version"]
2223

0 commit comments

Comments
 (0)