Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit 12c503d

Browse files
authored
Coverage per python version (#22)
* pre-commit autoupdate * support 3.12 * fixed typo * addressed deprecation * added flag per python version * skip interrogate from automated testing
1 parent 16d9f94 commit 12c503d

6 files changed

Lines changed: 19 additions & 29 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
python-version:
2222
- "3.10"
2323
- "3.11"
24+
- "3.12"
2425
runs-on: ${{ matrix.runner-platform }}
2526
steps:
2627
- name: checkout commit

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
python-version:
2727
- "3.10"
2828
- "3.11"
29+
- "3.12"
2930
max-parallel: 2
3031
runs-on: ${{ matrix.runner-platform }}
3132
steps:
@@ -48,3 +49,4 @@ jobs:
4849
with:
4950
token: ${{ secrets.CODECOV_TOKEN }}
5051
files: coverage_xml_report.xml
52+
flags: ${{ matrix.python-version }}

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v4.5.0
44
hooks:
55
- id: check-ast
66
- id: check-case-conflict
@@ -22,13 +22,13 @@ repos:
2222
- id: requirements-txt-fixer
2323
- id: trailing-whitespace
2424
- repo: https://github.com/asottile/pyupgrade
25-
rev: v3.10.1
25+
rev: v3.15.0
2626
hooks:
2727
- id: pyupgrade
2828
args:
2929
- --py310-plus
3030
- repo: https://github.com/pycqa/autoflake
31-
rev: v2.2.0
31+
rev: v2.2.1
3232
hooks:
3333
- id: autoflake
3434
args:
@@ -42,7 +42,7 @@ repos:
4242
- src
4343
pass_filenames: false
4444
- repo: https://github.com/psf/black
45-
rev: 23.7.0
45+
rev: 23.9.1
4646
hooks:
4747
- id: black
4848
args:
@@ -77,7 +77,7 @@ repos:
7777
stages:
7878
- manual
7979
- repo: https://github.com/PyCQA/pylint
80-
rev: v3.0.0a7
80+
rev: v3.0.1
8181
hooks:
8282
- id: pylint
8383
args:
@@ -88,21 +88,21 @@ repos:
8888
stages:
8989
- manual
9090
- repo: https://github.com/RobertCraigie/pyright-python
91-
rev: v1.1.323
91+
rev: v1.1.330.post0
9292
hooks:
9393
- id: pyright
9494
pass_filenames: false
9595
stages:
9696
- manual
9797
- repo: https://github.com/charliermarsh/ruff-pre-commit
98-
rev: v0.0.284
98+
rev: v0.0.292
9999
hooks:
100100
- id: ruff
101101
args:
102102
- src
103103
pass_filenames: false
104104
- repo: https://github.com/jendrikseipp/vulture
105-
rev: v2.8
105+
rev: v2.10
106106
hooks:
107107
- id: vulture
108108
pass_filenames: false
@@ -142,15 +142,15 @@ repos:
142142
- src
143143
pass_filenames: false
144144
- repo: https://github.com/tox-dev/pyproject-fmt
145-
rev: 0.13.1
145+
rev: 1.2.0
146146
hooks:
147147
- id: pyproject-fmt
148148
- repo: https://github.com/abravalheri/validate-pyproject
149-
rev: v0.13
149+
rev: v0.14
150150
hooks:
151151
- id: validate-pyproject
152152
- repo: https://github.com/codespell-project/codespell
153-
rev: v2.2.5
153+
rev: v2.2.6
154154
hooks:
155155
- id: codespell
156156
default_language_version:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ endef
2626

2727
## help
2828
## list all wrapper targets
29-
## show documentaions of wrapper targets
29+
## show documentations of wrapper targets
3030
.PHONY: help
3131
help: Makefile
3232
@sed -n 's/^## //p' $<

noxfile.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import nox
66

77
PYTHON_DEFAULT_VERSION = "3.10"
8-
PYTHON_VERSIONS = ["3.10", "3.11"]
8+
PYTHON_VERSIONS = ["3.10", "3.11", "3.12"]
99

1010
SOURCE_DIRECTORY = pathlib.Path("src")
1111
DIST_DIRECTORY = pathlib.Path("dist")
@@ -157,20 +157,6 @@ def flake8(session: nox.Session) -> None:
157157
)
158158

159159

160-
@LINT_SESSION_DECORATOR
161-
def interrogate(session: nox.Session) -> None:
162-
"""Run interrogate.
163-
164-
Parameters
165-
----------
166-
session : nox.Session
167-
nox Session object
168-
"""
169-
session.install("interrogate")
170-
171-
session.run("interrogate", str(SOURCE_DIRECTORY))
172-
173-
174160
@FORMAT_SESSION_DECORATOR
175161
def isort(session: nox.Session) -> None:
176162
"""Run isort.

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ authors = [
2727
{ name = "First Author", email = "first.author@example.com" },
2828
{ name = "Second Author", email = "second.author@example.com" },
2929
]
30-
requires-python = ">=3.10"
30+
requires-python = ">=3.10, <3.13"
3131
classifiers = [
3232
"Development Status :: 5 - Production/Stable",
3333
"Framework :: Flake8",
@@ -42,6 +42,7 @@ classifiers = [
4242
"Programming Language :: Python :: 3 :: Only",
4343
"Programming Language :: Python :: 3.10",
4444
"Programming Language :: Python :: 3.11",
45+
"Programming Language :: Python :: 3.12",
4546
"Topic :: Software Development",
4647
"Topic :: Software Development :: Build Tools",
4748
"Topic :: Software Development :: Libraries",
@@ -179,7 +180,6 @@ extend-exclude = [
179180
"*.pyi",
180181
]
181182
fix = true
182-
format = "grouped"
183183
ignore = [
184184
"ANN401",
185185
"D203",
@@ -188,6 +188,7 @@ ignore = [
188188
]
189189
ignore-init-module-imports = true
190190
line-length = 99
191+
output-format = "grouped"
191192
select = [
192193
"F",
193194
"E",

0 commit comments

Comments
 (0)