Skip to content

Commit 1da47d4

Browse files
committed
Up project skel and fix some lint issues.
1 parent a949183 commit 1da47d4

File tree

20 files changed

+268
-149
lines changed

20 files changed

+268
-149
lines changed

.bumpversion.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ current_version = 3.1.0
33
commit = True
44
tag = True
55

6-
[bumpversion:file:setup.py]
7-
search = version='{current_version}'
8-
replace = version='{new_version}'
6+
[bumpversion:file:pyproject.toml]
7+
search = version = "{current_version}"
8+
replace = version = "{new_version}"
99

1010
[bumpversion:file (badge):README.rst]
1111
search = /v{current_version}.svg

.cookiecutterrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ default_context:
4444
version_manager: bump2version
4545
website: https://blog.ionelmc.ro/
4646
year_from: '2013'
47-
year_to: '2023'
47+
year_to: '2025'

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ branch = true
88
source =
99
tblib
1010
tests
11-
parallel = true
11+
patch = subprocess
1212

1313
[report]
1414
show_missing = true

.github/workflows/github-actions.yml

Lines changed: 120 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,143 +10,231 @@ jobs:
1010
matrix:
1111
include:
1212
- name: 'check'
13-
python: '3.11'
14-
toxpython: 'python3.11'
13+
python: '3.13'
1514
tox_env: 'check'
1615
os: 'ubuntu-latest'
1716
- name: 'docs'
18-
python: '3.11'
19-
toxpython: 'python3.11'
17+
python: '3.13'
2018
tox_env: 'docs'
2119
os: 'ubuntu-latest'
2220
- name: 'py39 (ubuntu)'
2321
python: '3.9'
24-
toxpython: 'python3.9'
2522
python_arch: 'x64'
2623
tox_env: 'py39'
2724
os: 'ubuntu-latest'
25+
cover: true
2826
- name: 'py39 (windows)'
2927
python: '3.9'
30-
toxpython: 'python3.9'
3128
python_arch: 'x64'
3229
tox_env: 'py39'
3330
os: 'windows-latest'
31+
cover: true
32+
- name: 'py39 (windows)'
33+
python: '3.9'
34+
python_arch: 'x86'
35+
tox_env: 'py39'
36+
os: 'windows-latest'
37+
cover: true
3438
- name: 'py39 (macos)'
3539
python: '3.9'
36-
toxpython: 'python3.9'
3740
python_arch: 'arm64'
3841
tox_env: 'py39'
3942
os: 'macos-latest'
43+
cover: true
4044
- name: 'py310 (ubuntu)'
4145
python: '3.10'
42-
toxpython: 'python3.10'
4346
python_arch: 'x64'
4447
tox_env: 'py310'
4548
os: 'ubuntu-latest'
49+
cover: true
4650
- name: 'py310 (windows)'
4751
python: '3.10'
48-
toxpython: 'python3.10'
4952
python_arch: 'x64'
5053
tox_env: 'py310'
5154
os: 'windows-latest'
55+
cover: true
56+
- name: 'py310 (windows)'
57+
python: '3.10'
58+
python_arch: 'x86'
59+
tox_env: 'py310'
60+
os: 'windows-latest'
61+
cover: true
5262
- name: 'py310 (macos)'
5363
python: '3.10'
54-
toxpython: 'python3.10'
5564
python_arch: 'arm64'
5665
tox_env: 'py310'
5766
os: 'macos-latest'
67+
cover: true
5868
- name: 'py311 (ubuntu)'
5969
python: '3.11'
60-
toxpython: 'python3.11'
6170
python_arch: 'x64'
6271
tox_env: 'py311'
6372
os: 'ubuntu-latest'
73+
cover: true
6474
- name: 'py311 (windows)'
6575
python: '3.11'
66-
toxpython: 'python3.11'
6776
python_arch: 'x64'
6877
tox_env: 'py311'
6978
os: 'windows-latest'
79+
cover: true
80+
- name: 'py311 (windows)'
81+
python: '3.11'
82+
python_arch: 'x86'
83+
tox_env: 'py311'
84+
os: 'windows-latest'
85+
cover: true
7086
- name: 'py311 (macos)'
7187
python: '3.11'
72-
toxpython: 'python3.11'
7388
python_arch: 'arm64'
7489
tox_env: 'py311'
7590
os: 'macos-latest'
91+
cover: true
7692
- name: 'py312 (ubuntu)'
7793
python: '3.12'
78-
toxpython: 'python3.12'
7994
python_arch: 'x64'
8095
tox_env: 'py312'
8196
os: 'ubuntu-latest'
97+
cover: true
8298
- name: 'py312 (windows)'
8399
python: '3.12'
84-
toxpython: 'python3.12'
85100
python_arch: 'x64'
86101
tox_env: 'py312'
87102
os: 'windows-latest'
103+
cover: true
104+
- name: 'py312 (windows)'
105+
python: '3.12'
106+
python_arch: 'x86'
107+
tox_env: 'py312'
108+
os: 'windows-latest'
109+
cover: true
88110
- name: 'py312 (macos)'
89111
python: '3.12'
90-
toxpython: 'python3.12'
91112
python_arch: 'arm64'
92113
tox_env: 'py312'
93114
os: 'macos-latest'
115+
cover: true
94116
- name: 'py313 (ubuntu)'
95117
python: '3.13'
96-
toxpython: 'python3.13'
97118
python_arch: 'x64'
98119
tox_env: 'py313'
99120
os: 'ubuntu-latest'
121+
cover: true
100122
- name: 'py313 (windows)'
101123
python: '3.13'
102-
toxpython: 'python3.13'
103124
python_arch: 'x64'
104125
tox_env: 'py313'
105126
os: 'windows-latest'
127+
cover: true
128+
- name: 'py313 (windows)'
129+
python: '3.13'
130+
python_arch: 'x86'
131+
tox_env: 'py313'
132+
os: 'windows-latest'
133+
cover: true
106134
- name: 'py313 (macos)'
107135
python: '3.13'
108-
toxpython: 'python3.13'
109136
python_arch: 'arm64'
110137
tox_env: 'py313'
111138
os: 'macos-latest'
139+
cover: true
140+
- name: 'py314 (ubuntu)'
141+
python: '3.14'
142+
python_arch: 'x64'
143+
tox_env: 'py314'
144+
os: 'ubuntu-latest'
145+
cover: true
146+
- name: 'py314 (windows)'
147+
python: '3.14'
148+
python_arch: 'x64'
149+
tox_env: 'py314'
150+
os: 'windows-latest'
151+
cover: true
152+
- name: 'py314 (windows)'
153+
python: '3.14'
154+
python_arch: 'x86'
155+
tox_env: 'py314'
156+
os: 'windows-latest'
157+
cover: true
158+
- name: 'py314 (macos)'
159+
python: '3.14'
160+
python_arch: 'arm64'
161+
tox_env: 'py314'
162+
os: 'macos-latest'
163+
cover: true
112164
- name: 'pypy39 (ubuntu)'
113165
python: 'pypy-3.9'
114-
toxpython: 'pypy3.9'
115166
python_arch: 'x64'
116167
tox_env: 'pypy39'
117168
os: 'ubuntu-latest'
169+
cover: true
118170
- name: 'pypy39 (windows)'
119171
python: 'pypy-3.9'
120-
toxpython: 'pypy3.9'
121172
python_arch: 'x64'
122173
tox_env: 'pypy39'
123174
os: 'windows-latest'
175+
cover: true
176+
- name: 'pypy39 (windows)'
177+
python: 'pypy-3.9'
178+
python_arch: 'x86'
179+
tox_env: 'pypy39'
180+
os: 'windows-latest'
181+
cover: true
124182
- name: 'pypy39 (macos)'
125183
python: 'pypy-3.9'
126-
toxpython: 'pypy3.9'
127184
python_arch: 'arm64'
128185
tox_env: 'pypy39'
129186
os: 'macos-latest'
187+
cover: true
130188
- name: 'pypy310 (ubuntu)'
131189
python: 'pypy-3.10'
132-
toxpython: 'pypy3.10'
133190
python_arch: 'x64'
134191
tox_env: 'pypy310'
135192
os: 'ubuntu-latest'
193+
cover: true
136194
- name: 'pypy310 (windows)'
137195
python: 'pypy-3.10'
138-
toxpython: 'pypy3.10'
139196
python_arch: 'x64'
140197
tox_env: 'pypy310'
141198
os: 'windows-latest'
199+
cover: true
200+
- name: 'pypy310 (windows)'
201+
python: 'pypy-3.10'
202+
python_arch: 'x86'
203+
tox_env: 'pypy310'
204+
os: 'windows-latest'
205+
cover: true
142206
- name: 'pypy310 (macos)'
143207
python: 'pypy-3.10'
144-
toxpython: 'pypy3.10'
145208
python_arch: 'arm64'
146209
tox_env: 'pypy310'
147210
os: 'macos-latest'
211+
cover: true
212+
- name: 'pypy311 (ubuntu)'
213+
python: 'pypy-3.11'
214+
python_arch: 'x64'
215+
tox_env: 'pypy311'
216+
os: 'ubuntu-latest'
217+
cover: true
218+
- name: 'pypy311 (windows)'
219+
python: 'pypy-3.11'
220+
python_arch: 'x64'
221+
tox_env: 'pypy311'
222+
os: 'windows-latest'
223+
cover: true
224+
- name: 'pypy311 (windows)'
225+
python: 'pypy-3.11'
226+
python_arch: 'x86'
227+
tox_env: 'pypy311'
228+
os: 'windows-latest'
229+
cover: true
230+
- name: 'pypy311 (macos)'
231+
python: 'pypy-3.11'
232+
python_arch: 'arm64'
233+
tox_env: 'pypy311'
234+
os: 'macos-latest'
235+
cover: true
148236
steps:
149-
- uses: actions/checkout@v4
237+
- uses: actions/checkout@v5
150238
with:
151239
fetch-depth: 0
152240
- uses: actions/setup-python@v5
@@ -161,15 +249,16 @@ jobs:
161249
tox --version
162250
pip list --format=freeze
163251
- name: test
164-
env:
165-
TOXPYTHON: '${{ matrix.toxpython }}'
166252
run: >
167253
tox -e ${{ matrix.tox_env }} -v
254+
- uses: codecov/codecov-action@v5
255+
if: matrix.cover
256+
with:
257+
flags: ${{ matrix.name }}
258+
token: ${{ secrets.CODECOV_TOKEN }}
259+
verbose: true
168260
finish:
169261
needs: test
170262
if: ${{ always() }}
171263
runs-on: ubuntu-latest
172264
steps:
173-
- uses: codecov/codecov-action@v3
174-
with:
175-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ __pycache__
66
*~
77
*.bak
88
.DS_Store
9+
Thumbs.db
910

1011
# C extensions
1112
*.so

.pre-commit-config.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,21 @@ exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg|tests/badsyntax.py)(/|$)'
66
# Note the order is intentional to avoid multiple passes of the hooks
77
repos:
88
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.11.2
9+
rev: v0.14.1
1010
hooks:
1111
- id: ruff
1212
args: [--fix, --exit-non-zero-on-fix, --show-fixes, --unsafe-fixes]
1313
- id: ruff-format
14+
- repo: https://github.com/ComPWA/taplo-pre-commit
15+
rev: v0.9.3
16+
hooks:
17+
- id: taplo-format
18+
- id: taplo-lint
1419
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v5.0.0
20+
rev: v6.0.0
1621
hooks:
1722
- id: trailing-whitespace
1823
- id: end-of-file-fixer
24+
- id: mixed-line-ending
25+
args: [--fix=lf]
1926
- id: debug-statements

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sphinx:
44
configuration: docs/conf.py
55
formats: all
66
build:
7-
os: ubuntu-22.04
7+
os: ubuntu-24.04
88
tools:
99
python: "3"
1010
python:

.taplo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[formatting]
2+
array_auto_collapse = false
3+
indent_string = " "

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 2-Clause License
22

3-
Copyright (c) 2013-2023, Ionel Cristian Mărieș. All rights reserved.
3+
Copyright (c) 2013-2025, Ionel Cristian Mărieș. All rights reserved.
44

55
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
66
following conditions are met:

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ include .editorconfig
1010
include .github/workflows/github-actions.yml
1111
include .pre-commit-config.yaml
1212
include .readthedocs.yml
13+
include .taplo.toml
14+
include pyproject.toml
1315
include pytest.ini
1416
include tox.ini
1517

0 commit comments

Comments
 (0)