Skip to content

Commit fd1f5f2

Browse files
authored
Dependencies and Python 3.12 tests (#11)
* Update python dependencies * Add python3.12 to tox configuration
1 parent 6d6a61e commit fd1f5f2

File tree

9 files changed

+52
-42
lines changed

9 files changed

+52
-42
lines changed

.github/workflows/tests.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,18 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
tox: [py311, typing, style, docs, minimal, dist]
23+
python: [3.11]
24+
include:
25+
- tox: py312
26+
python: 3.12
2327
steps:
2428
- uses: actions/checkout@v4
2529
- uses: actions/setup-node@v4
2630
with:
2731
node-version: '21'
2832
- uses: actions/setup-python@v5
2933
with:
30-
python-version: 3.11
34+
python-version: ${{ matrix.python }}
3135
cache: 'pip'
3236
cache-dependency-path: 'requirements/*.txt'
3337
- name: Install dot
@@ -48,7 +52,7 @@ jobs:
4852
uses: actions/[email protected]
4953
with:
5054
path: ./.mypy_cache
51-
key: mypy|python3.11|${{ hashFiles('pyproject.toml') }}
55+
key: mypy|python-${{ matrix.python }}|${{ hashFiles('pyproject.toml') }}
5256
if: matrix.tox == 'typing'
5357
- run: pip install tox
5458
- run: tox -e ${{ matrix.tox }}

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/python/black
3-
rev: 24.2.0
3+
rev: 24.4.2
44
hooks:
55
- id: black
66
args: [--safe, --quiet, -l120]
@@ -9,14 +9,14 @@ repos:
99
rev: 1.16.0
1010
hooks:
1111
- id: blacken-docs
12-
additional_dependencies: [black==22.3.0]
12+
additional_dependencies: [black==24.4.2]
1313
language_version: python3
1414
- repo: https://github.com/pre-commit/pygrep-hooks
1515
rev: v1.10.0
1616
hooks:
1717
- id: python-use-type-annotations
1818
- repo: https://github.com/pre-commit/pre-commit-hooks
19-
rev: v4.5.0
19+
rev: v4.6.0
2020
hooks:
2121
- id: check-docstring-first
2222
- id: debug-statements
@@ -50,7 +50,7 @@ repos:
5050
- id: reorder-python-imports
5151
args: [--py311-plus, "--application-directories=.:src"]
5252
- repo: https://github.com/asottile/pyupgrade
53-
rev: v3.15.1
53+
rev: v3.15.2
5454
hooks:
5555
- id: pyupgrade
5656
args: [--py311-plus]

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ include = ["src/"]
4444

4545
[tool.pytest.ini_options]
4646
testpaths = "tests"
47-
filterwarnings = "error"
47+
filterwarnings = """
48+
error
49+
ignore:There is no current event loop:DeprecationWarning:dominate.*
50+
"""
4851
addopts = [
4952
"--cov-report=term-missing",
5053
"--cov-config=pyproject.toml",

requirements/base.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
#
88
attrs==23.2.0
99
# via -r requirements/base.in
10-
blinker==1.7.0
10+
blinker==1.8.2
1111
# via flask
1212
click==8.1.7
1313
# via flask
1414
dominate==2.9.1
1515
# via -r requirements/base.in
16-
flask==3.0.2
16+
flask==3.0.3
1717
# via -r requirements/base.in
1818
html5lib==1.1
1919
# via -r requirements/base.in
20-
itsdangerous==2.1.2
20+
itsdangerous==2.2.0
2121
# via flask
22-
jinja2==3.1.3
22+
jinja2==3.1.4
2323
# via flask
2424
markupsafe==2.1.5
2525
# via
@@ -30,7 +30,7 @@ six==1.16.0
3030
# via html5lib
3131
webencodings==0.5.1
3232
# via html5lib
33-
werkzeug==3.0.1
33+
werkzeug==3.0.3
3434
# via flask
3535
wtforms==3.1.2
3636
# via -r requirements/base.in

requirements/dev.txt

+18-16
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
-r typing.txt
1111
-e file:///Users/alexrudy/Development/alexrudy/bootlace
1212
# via -r requirements/dev.in
13-
black==24.3.0
13+
backports-tarfile==1.1.1
14+
# via jaraco-context
15+
black==24.4.2
1416
# via -r requirements/dev.in
15-
build==1.1.1
17+
build==1.2.1
1618
# via
1719
# -r requirements/dev.in
1820
# pip-tools
@@ -28,7 +30,7 @@ colorama==0.4.6
2830
# via tox
2931
distlib==0.3.8
3032
# via virtualenv
31-
filelock==3.13.3
33+
filelock==3.14.0
3234
# via
3335
# tox
3436
# virtualenv
@@ -37,27 +39,27 @@ flake8==7.0.0
3739
# -r requirements/dev.in
3840
# flake8-bugbear
3941
# flake8-typing-imports
40-
flake8-bugbear==24.2.6
42+
flake8-bugbear==24.4.26
4143
# via -r requirements/dev.in
4244
flake8-implicit-str-concat==0.4.0
4345
# via -r requirements/dev.in
4446
flake8-typing-imports==1.15.0
4547
# via -r requirements/dev.in
46-
hatchling==1.22.4
48+
hatchling==1.24.2
4749
# via -r requirements/dev.in
48-
identify==2.5.35
50+
identify==2.5.36
4951
# via pre-commit
5052
importlib-metadata==7.1.0
5153
# via
5254
# keyring
5355
# twine
54-
jaraco-classes==3.3.1
56+
jaraco-classes==3.4.0
5557
# via keyring
56-
jaraco-context==4.3.0
58+
jaraco-context==5.3.0
5759
# via keyring
58-
jaraco-functools==4.0.0
60+
jaraco-functools==4.0.1
5961
# via keyring
60-
keyring==25.0.0
62+
keyring==25.2.1
6163
# via twine
6264
markdown-it-py==3.0.0
6365
# via rich
@@ -83,20 +85,20 @@ pip-tools==7.4.1
8385
# via pip-compile-multi
8486
pkginfo==1.10.0
8587
# via twine
86-
platformdirs==4.2.0
88+
platformdirs==4.2.1
8789
# via
8890
# black
8991
# tox
9092
# virtualenv
91-
pre-commit==3.7.0
93+
pre-commit==3.7.1
9294
# via -r requirements/dev.in
9395
pycodestyle==2.11.1
9496
# via flake8
9597
pyflakes==3.2.0
9698
# via flake8
9799
pyproject-api==1.6.1
98100
# via tox
99-
pyproject-hooks==1.0.0
101+
pyproject-hooks==1.1.0
100102
# via
101103
# build
102104
# pip-tools
@@ -112,13 +114,13 @@ rich==13.7.1
112114
# via twine
113115
toposort==1.10
114116
# via pip-compile-multi
115-
tox==4.14.2
117+
tox==4.15.0
116118
# via -r requirements/dev.in
117-
trove-classifiers==2024.3.25
119+
trove-classifiers==2024.4.10
118120
# via hatchling
119121
twine==5.0.0
120122
# via -r requirements/dev.in
121-
virtualenv==20.25.1
123+
virtualenv==20.26.2
122124
# via
123125
# pre-commit
124126
# tox

requirements/docs.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@
88
-r base.txt
99
alabaster==0.7.16
1010
# via sphinx
11-
babel==2.14.0
11+
babel==2.15.0
1212
# via sphinx
1313
certifi==2024.2.2
1414
# via requests
1515
charset-normalizer==3.3.2
1616
# via requests
17-
docutils==0.20.1
17+
docutils==0.21.2
1818
# via
1919
# sphinx
2020
# sphinx-mdinclude
21-
idna==3.6
21+
idna==3.7
2222
# via requests
2323
imagesize==1.4.1
2424
# via sphinx
25-
mistune==2.0.5
25+
mistune==3.0.2
2626
# via sphinx-mdinclude
2727
packaging==24.0
2828
# via sphinx
29-
pygments==2.17.2
29+
pygments==2.18.0
3030
# via
3131
# sphinx
3232
# sphinx-mdinclude
@@ -36,13 +36,13 @@ requests==2.31.0
3636
# via sphinx
3737
snowballstemmer==2.2.0
3838
# via sphinx
39-
sphinx==7.2.6
39+
sphinx==7.3.7
4040
# via
4141
# -r requirements/docs.in
4242
# sphinx-automodapi
4343
sphinx-automodapi==0.17.0
4444
# via -r requirements/docs.in
45-
sphinx-mdinclude==0.5.3
45+
sphinx-mdinclude==0.6.0
4646
# via -r requirements/docs.in
4747
sphinxcontrib-applehelp==1.0.8
4848
# via sphinx

requirements/tests.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
# pip-compile-multi
77
#
88
-r base.txt
9-
coverage[toml]==7.4.4
9+
coverage[toml]==7.5.1
1010
# via pytest-cov
1111
iniconfig==2.0.0
1212
# via pytest
1313
packaging==24.0
1414
# via pytest
15-
pluggy==1.4.0
15+
pluggy==1.5.0
1616
# via pytest
17-
pytest==8.1.1
17+
pytest==8.2.0
1818
# via
1919
# -r requirements/tests.in
2020
# pytest-cov

requirements/typing.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
# pip-compile-multi
77
#
88
-r base.txt
9-
mypy==1.9.0
9+
mypy==1.10.0
1010
# via -r requirements/typing.in
1111
mypy-extensions==1.0.0
1212
# via mypy
13-
types-pytz==2024.1.0.20240203
13+
types-pytz==2024.1.0.20240417
1414
# via -r requirements/typing.in
1515
types-pyyaml==6.0.12.20240311
1616
# via -r requirements/typing.in
17-
types-wtforms==3.1.0.20240311
17+
types-wtforms==3.1.0.20240425
1818
# via -r requirements/typing.in
19-
typing-extensions==4.10.0
19+
typing-extensions==4.11.0
2020
# via mypy

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[tox]
22
envlist =
33
py311
4+
py312
45
style
56
typing
67
docs

0 commit comments

Comments
 (0)