prettytable 3.17.0__tar.gz → 3.19.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {prettytable-3.17.0 → prettytable-3.19.0}/.github/dependabot.yml +13 -5
- prettytable-3.19.0/.github/workflows/actions.lock +129 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/.github/workflows/labels.yml +3 -3
- prettytable-3.19.0/.github/workflows/lint.yml +48 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/.github/workflows/release-drafter.yml +15 -7
- {prettytable-3.17.0 → prettytable-3.19.0}/.github/workflows/release.yml +6 -6
- {prettytable-3.17.0 → prettytable-3.19.0}/.github/workflows/require-pr-label.yml +2 -2
- {prettytable-3.17.0 → prettytable-3.19.0}/.github/workflows/test.yml +11 -7
- {prettytable-3.17.0 → prettytable-3.19.0}/.pre-commit-config.yaml +39 -10
- prettytable-3.17.0/README.md → prettytable-3.19.0/PKG-INFO +137 -11
- prettytable-3.17.0/PKG-INFO → prettytable-3.19.0/README.md +105 -43
- prettytable-3.19.0/RELEASING.md +25 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/pyproject.toml +29 -37
- prettytable-3.19.0/requirements-mypy.txt +2 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/src/prettytable/__init__.py +6 -1
- prettytable-3.19.0/src/prettytable/_version.py +24 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/src/prettytable/colortable.py +24 -11
- {prettytable-3.17.0 → prettytable-3.19.0}/src/prettytable/prettytable.py +534 -296
- prettytable-3.19.0/tests/data/table_align_center.txt +6 -0
- prettytable-3.19.0/tests/data/table_align_left.txt +6 -0
- prettytable-3.19.0/tests/data/table_align_right.txt +6 -0
- prettytable-3.19.0/tests/data/table_ansi_colors.txt +7 -0
- prettytable-3.19.0/tests/data/table_cjk.txt +6 -0
- prettytable-3.19.0/tests/data/table_combining_chars.txt +6 -0
- prettytable-3.19.0/tests/data/table_complex_emoji.txt +7 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/tests/test_colortable.py +2 -3
- {prettytable-3.17.0 → prettytable-3.19.0}/tests/test_html.py +79 -73
- {prettytable-3.17.0 → prettytable-3.19.0}/tests/test_json.py +2 -8
- {prettytable-3.17.0 → prettytable-3.19.0}/tests/test_mediawiki.py +2 -8
- {prettytable-3.17.0 → prettytable-3.19.0}/tests/test_prettytable.py +490 -152
- prettytable-3.19.0/tests/test_rst.py +97 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/tests/test_sections.py +3 -1
- {prettytable-3.17.0 → prettytable-3.19.0}/tests/test_sorting.py +44 -15
- {prettytable-3.17.0 → prettytable-3.19.0}/tests/test_style.py +196 -40
- {prettytable-3.17.0 → prettytable-3.19.0}/tox.ini +4 -2
- prettytable-3.17.0/.github/workflows/lint.yml +0 -37
- prettytable-3.17.0/.github/zizmor.yml +0 -7
- prettytable-3.17.0/RELEASING.md +0 -25
- prettytable-3.17.0/requirements-mypy.txt +0 -3
- prettytable-3.17.0/src/prettytable/_version.py +0 -34
- {prettytable-3.17.0 → prettytable-3.19.0}/.github/FUNDING.yml +0 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/.github/SECURITY.md +0 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/.github/labels.yml +0 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/.github/release-drafter.yml +0 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/.gitignore +0 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/CHANGELOG.md +0 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/LICENSE +0 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/src/prettytable/__main__.py +0 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/src/prettytable/py.typed +0 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/tests/conftest.py +0 -0
- {prettytable-3.17.0 → prettytable-3.19.0}/tests/test_latex.py +0 -0
|
@@ -5,21 +5,29 @@ updates:
|
|
|
5
5
|
schedule:
|
|
6
6
|
interval: monthly
|
|
7
7
|
time: "03:00"
|
|
8
|
+
groups:
|
|
9
|
+
actions:
|
|
10
|
+
patterns:
|
|
11
|
+
- "*"
|
|
8
12
|
open-pull-requests-limit: 10
|
|
9
13
|
labels:
|
|
10
14
|
- "changelog: skip"
|
|
11
15
|
- "dependencies"
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
- "version-update:semver-minor"
|
|
16
|
-
- "version-update:semver-patch"
|
|
16
|
+
cooldown:
|
|
17
|
+
default-days: 7
|
|
18
|
+
|
|
17
19
|
- package-ecosystem: pip
|
|
18
20
|
directory: "/"
|
|
19
21
|
schedule:
|
|
20
22
|
interval: monthly
|
|
21
23
|
time: "03:00"
|
|
24
|
+
groups:
|
|
25
|
+
pip:
|
|
26
|
+
patterns:
|
|
27
|
+
- "*"
|
|
22
28
|
open-pull-requests-limit: 10
|
|
23
29
|
labels:
|
|
24
30
|
- "changelog: skip"
|
|
25
31
|
- "dependencies"
|
|
32
|
+
cooldown:
|
|
33
|
+
default-days: 7
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# This file is machine-generated by `gh actions-lock`.
|
|
2
|
+
# Do not edit by hand; run `gh actions-lock` to update.
|
|
3
|
+
# Docs: https://gh.io/actions-lockfile
|
|
4
|
+
version: 'v0.0.3'
|
|
5
|
+
workflows:
|
|
6
|
+
'.github/workflows/labels.yml':
|
|
7
|
+
- 'actions/checkout@v7.0.1'
|
|
8
|
+
- 'micnncim/action-label-syncer@v1.3.0'
|
|
9
|
+
'.github/workflows/lint.yml':
|
|
10
|
+
- 'actions/checkout@v7.0.1'
|
|
11
|
+
- 'actions/setup-python@v7.1.0'
|
|
12
|
+
- 'astral-sh/setup-uv@v10.3.2'
|
|
13
|
+
- 'j178/prek-action@v3.1.0'
|
|
14
|
+
'.github/workflows/release-drafter.yml':
|
|
15
|
+
- 'release-drafter/release-drafter@v7.10.0'
|
|
16
|
+
'.github/workflows/release.yml':
|
|
17
|
+
- 'actions/checkout@v7.0.1'
|
|
18
|
+
- 'actions/download-artifact@v8.0.2'
|
|
19
|
+
- 'hynek/build-and-inspect-python-package@v3.0.2'
|
|
20
|
+
- 'pypa/gh-action-pypi-publish@v1.14.3'
|
|
21
|
+
'.github/workflows/require-pr-label.yml':
|
|
22
|
+
- 'mheap/github-action-required-labels@v5.6.0'
|
|
23
|
+
'.github/workflows/test.yml':
|
|
24
|
+
- 'actions/checkout@v7.0.1'
|
|
25
|
+
- 'actions/setup-python@v7.1.0'
|
|
26
|
+
- 'astral-sh/setup-uv@v10.3.2'
|
|
27
|
+
- 'codecov/codecov-action@v6.0.0'
|
|
28
|
+
dependencies:
|
|
29
|
+
'actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8':
|
|
30
|
+
ref: 'v4.2.2'
|
|
31
|
+
commit: 'sha1-4d101475d8b20a2381f78447822ac1eab6504dd8'
|
|
32
|
+
owner_id: 44036562
|
|
33
|
+
repo_id: 760702757
|
|
34
|
+
uses:
|
|
35
|
+
- 'actions/attest@508db95dd578ae2727ebd6217d5ba78e4fbda05d'
|
|
36
|
+
'actions/attest@508db95dd578ae2727ebd6217d5ba78e4fbda05d':
|
|
37
|
+
ref: 'v4.2.1'
|
|
38
|
+
commit: 'sha1-508db95dd578ae2727ebd6217d5ba78e4fbda05d'
|
|
39
|
+
owner_id: 44036562
|
|
40
|
+
repo_id: 760701061
|
|
41
|
+
'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9':
|
|
42
|
+
ref: 'v6.1.0'
|
|
43
|
+
commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
|
|
44
|
+
owner_id: 44036562
|
|
45
|
+
repo_id: 215566462
|
|
46
|
+
'actions/checkout@v7.0.1':
|
|
47
|
+
ref: 'v7.0.1'
|
|
48
|
+
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
|
|
49
|
+
owner_id: 44036562
|
|
50
|
+
repo_id: 197814629
|
|
51
|
+
'actions/download-artifact@v8.0.2':
|
|
52
|
+
ref: 'v8.0.2'
|
|
53
|
+
commit: 'sha1-9000827ccba6bdab643e8b6fd33ac0654aef8333'
|
|
54
|
+
owner_id: 44036562
|
|
55
|
+
repo_id: 192626254
|
|
56
|
+
'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd':
|
|
57
|
+
ref: 'v8.0.0'
|
|
58
|
+
commit: 'sha1-ed597411d8f924073f98dfc5c65a23a2325f34cd'
|
|
59
|
+
owner_id: 44036562
|
|
60
|
+
repo_id: 205262760
|
|
61
|
+
'actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97':
|
|
62
|
+
ref: 'v7.0.0'
|
|
63
|
+
commit: 'sha1-5fda3b95a4ea91299a34e894583c3862153e4b97'
|
|
64
|
+
owner_id: 44036562
|
|
65
|
+
repo_id: 192625525
|
|
66
|
+
'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405':
|
|
67
|
+
ref: 'v6.2.0'
|
|
68
|
+
commit: 'sha1-a309ff8b426b58ec0e2a45f0f869d46889d02405'
|
|
69
|
+
owner_id: 44036562
|
|
70
|
+
repo_id: 192625525
|
|
71
|
+
'actions/setup-python@v7.1.0':
|
|
72
|
+
ref: 'v7.1.0'
|
|
73
|
+
commit: 'sha1-6d4fd22b20465ccc0f7354476588e8df7c9ca0e0'
|
|
74
|
+
owner_id: 44036562
|
|
75
|
+
repo_id: 192625525
|
|
76
|
+
'actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9':
|
|
77
|
+
ref: 'v7.0.2'
|
|
78
|
+
commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9'
|
|
79
|
+
owner_id: 44036562
|
|
80
|
+
repo_id: 192625955
|
|
81
|
+
'astral-sh/setup-uv@v10.3.2':
|
|
82
|
+
ref: 'v10.3.2'
|
|
83
|
+
commit: 'sha1-07a047e608db84b3d8c06cd9a7c7dcc9c355c18e'
|
|
84
|
+
owner_id: 115962839
|
|
85
|
+
repo_id: 846733598
|
|
86
|
+
'codecov/codecov-action@v6.0.0':
|
|
87
|
+
ref: 'v6.0.0'
|
|
88
|
+
commit: 'sha1-57e3a136b779b570ffcdbf80b3bdc90e7fab3de2'
|
|
89
|
+
owner_id: 8226205
|
|
90
|
+
repo_id: 200299178
|
|
91
|
+
uses:
|
|
92
|
+
- 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd'
|
|
93
|
+
'hynek/build-and-inspect-python-package@v3.0.2':
|
|
94
|
+
ref: 'v3.0.2'
|
|
95
|
+
commit: 'sha1-67230f7b8410ae0052b39c1efc89d89fff43ff10'
|
|
96
|
+
owner_id: 41240
|
|
97
|
+
repo_id: 526525235
|
|
98
|
+
uses:
|
|
99
|
+
- 'actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8'
|
|
100
|
+
- 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
|
|
101
|
+
- 'actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97'
|
|
102
|
+
- 'actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9'
|
|
103
|
+
'j178/prek-action@v3.1.0':
|
|
104
|
+
ref: 'v3.1.0'
|
|
105
|
+
commit: 'sha1-44924fe9ef4a6f88253c4b6b1bf11c689d3ce53d'
|
|
106
|
+
owner_id: 10510431
|
|
107
|
+
repo_id: 1052387486
|
|
108
|
+
'mheap/github-action-required-labels@v5.6.0':
|
|
109
|
+
ref: 'v5.6.0'
|
|
110
|
+
commit: 'sha1-23e10fde7e062233401931a0eece796cd9bf3177'
|
|
111
|
+
owner_id: 59130
|
|
112
|
+
repo_id: 272521528
|
|
113
|
+
'micnncim/action-label-syncer@v1.3.0':
|
|
114
|
+
ref: 'v1.3.0'
|
|
115
|
+
commit: 'sha1-3abd5ab72fda571e69fffd97bd4e0033dd5f495c'
|
|
116
|
+
owner_id: 21333876
|
|
117
|
+
repo_id: 214834296
|
|
118
|
+
'pypa/gh-action-pypi-publish@v1.14.3':
|
|
119
|
+
ref: 'v1.14.3'
|
|
120
|
+
commit: 'sha1-7245906fb61fa33a13554f9d5fb856fe61758086'
|
|
121
|
+
owner_id: 647025
|
|
122
|
+
repo_id: 178055147
|
|
123
|
+
uses:
|
|
124
|
+
- 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405'
|
|
125
|
+
'release-drafter/release-drafter@v7.10.0':
|
|
126
|
+
ref: 'v7.10.0'
|
|
127
|
+
commit: 'sha1-978bb0b30c5ee8cdd332ced253758157150d43f0'
|
|
128
|
+
owner_id: 58292376
|
|
129
|
+
repo_id: 139022359
|
|
@@ -12,12 +12,12 @@ jobs:
|
|
|
12
12
|
sync:
|
|
13
13
|
permissions:
|
|
14
14
|
pull-requests: write
|
|
15
|
-
runs-on: ubuntu-
|
|
15
|
+
runs-on: ubuntu-slim
|
|
16
16
|
steps:
|
|
17
|
-
- uses: actions/checkout@
|
|
17
|
+
- uses: actions/checkout@v7.0.1
|
|
18
18
|
with:
|
|
19
19
|
persist-credentials: false
|
|
20
|
-
- uses: micnncim/action-label-syncer@v1
|
|
20
|
+
- uses: micnncim/action-label-syncer@v1.3.0
|
|
21
21
|
with:
|
|
22
22
|
prune: false
|
|
23
23
|
env:
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: Lint
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request, workflow_dispatch]
|
|
4
|
+
|
|
5
|
+
permissions: {}
|
|
6
|
+
|
|
7
|
+
env:
|
|
8
|
+
FORCE_COLOR: 1
|
|
9
|
+
RUFF_OUTPUT_FORMAT: github
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
lint:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v7.0.1
|
|
17
|
+
with:
|
|
18
|
+
persist-credentials: false
|
|
19
|
+
- uses: j178/prek-action@v3.1.0
|
|
20
|
+
|
|
21
|
+
mypy:
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v7.0.1
|
|
26
|
+
with:
|
|
27
|
+
persist-credentials: false
|
|
28
|
+
- uses: actions/setup-python@v7.1.0
|
|
29
|
+
with:
|
|
30
|
+
python-version: "3.x"
|
|
31
|
+
- name: Install uv
|
|
32
|
+
uses: astral-sh/setup-uv@v10.3.2
|
|
33
|
+
- name: Mypy
|
|
34
|
+
run: uvx --with tox-uv tox -e mypy
|
|
35
|
+
|
|
36
|
+
# Fails when .github/workflows/actions.lock is out of sync with the
|
|
37
|
+
# workflows or a locked pin no longer verifies upstream.
|
|
38
|
+
lockfile:
|
|
39
|
+
runs-on: ubuntu-slim
|
|
40
|
+
env:
|
|
41
|
+
GH_TOKEN: ${{ github.token }}
|
|
42
|
+
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/checkout@v7.0.1
|
|
45
|
+
with:
|
|
46
|
+
persist-credentials: false
|
|
47
|
+
- run: gh extension install github/gh-actions-lock --pin v0.4.1
|
|
48
|
+
- run: gh actions-lock --verify
|
|
@@ -16,16 +16,24 @@ on:
|
|
|
16
16
|
|
|
17
17
|
jobs:
|
|
18
18
|
update_release_draft:
|
|
19
|
-
if:
|
|
19
|
+
if: |
|
|
20
|
+
github.event.repository.fork == false
|
|
21
|
+
&& github.event_name != 'pull_request'
|
|
20
22
|
permissions:
|
|
21
23
|
# write permission is required to create a GitHub Release
|
|
22
24
|
contents: write
|
|
25
|
+
runs-on: ubuntu-slim
|
|
26
|
+
steps:
|
|
27
|
+
# Drafts your next release notes as pull requests are merged into "main"
|
|
28
|
+
- uses: release-drafter/release-drafter@v7.10.0
|
|
29
|
+
|
|
30
|
+
autolabeler:
|
|
31
|
+
if: |
|
|
32
|
+
github.event.repository.fork == false
|
|
33
|
+
&& github.event_name == 'pull_request'
|
|
34
|
+
permissions:
|
|
23
35
|
# write permission is required for autolabeler
|
|
24
|
-
# otherwise, read permission is required at least
|
|
25
36
|
pull-requests: write
|
|
26
|
-
runs-on: ubuntu-
|
|
37
|
+
runs-on: ubuntu-slim
|
|
27
38
|
steps:
|
|
28
|
-
|
|
29
|
-
- uses: release-drafter/release-drafter@v6
|
|
30
|
-
env:
|
|
31
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
39
|
+
- uses: release-drafter/release-drafter/autolabeler@v7.10.0
|
|
@@ -20,12 +20,12 @@ jobs:
|
|
|
20
20
|
runs-on: ubuntu-latest
|
|
21
21
|
|
|
22
22
|
steps:
|
|
23
|
-
- uses: actions/checkout@
|
|
23
|
+
- uses: actions/checkout@v7.0.1
|
|
24
24
|
with:
|
|
25
25
|
fetch-depth: 0
|
|
26
26
|
persist-credentials: false
|
|
27
27
|
|
|
28
|
-
- uses: hynek/build-and-inspect-python-package@
|
|
28
|
+
- uses: hynek/build-and-inspect-python-package@v3.0.2
|
|
29
29
|
|
|
30
30
|
# Publish to Test PyPI on every commit on main.
|
|
31
31
|
release-test-pypi:
|
|
@@ -42,13 +42,13 @@ jobs:
|
|
|
42
42
|
|
|
43
43
|
steps:
|
|
44
44
|
- name: Download packages built by build-and-inspect-python-package
|
|
45
|
-
uses: actions/download-artifact@
|
|
45
|
+
uses: actions/download-artifact@v8.0.2
|
|
46
46
|
with:
|
|
47
47
|
name: Packages
|
|
48
48
|
path: dist
|
|
49
49
|
|
|
50
50
|
- name: Publish to Test PyPI
|
|
51
|
-
uses: pypa/gh-action-pypi-publish@
|
|
51
|
+
uses: pypa/gh-action-pypi-publish@v1.14.3
|
|
52
52
|
with:
|
|
53
53
|
repository-url: https://test.pypi.org/legacy/
|
|
54
54
|
|
|
@@ -67,10 +67,10 @@ jobs:
|
|
|
67
67
|
|
|
68
68
|
steps:
|
|
69
69
|
- name: Download packages built by build-and-inspect-python-package
|
|
70
|
-
uses: actions/download-artifact@
|
|
70
|
+
uses: actions/download-artifact@v8.0.2
|
|
71
71
|
with:
|
|
72
72
|
name: Packages
|
|
73
73
|
path: dist
|
|
74
74
|
|
|
75
75
|
- name: Publish to PyPI
|
|
76
|
-
uses: pypa/gh-action-pypi-publish@
|
|
76
|
+
uses: pypa/gh-action-pypi-publish@v1.14.3
|
|
@@ -6,14 +6,14 @@ on:
|
|
|
6
6
|
|
|
7
7
|
jobs:
|
|
8
8
|
label:
|
|
9
|
-
runs-on: ubuntu-
|
|
9
|
+
runs-on: ubuntu-slim
|
|
10
10
|
|
|
11
11
|
permissions:
|
|
12
12
|
issues: write
|
|
13
13
|
pull-requests: write
|
|
14
14
|
|
|
15
15
|
steps:
|
|
16
|
-
- uses: mheap/github-action-required-labels@v5
|
|
16
|
+
- uses: mheap/github-action-required-labels@v5.6.0
|
|
17
17
|
with:
|
|
18
18
|
mode: minimum
|
|
19
19
|
count: 1
|
|
@@ -15,25 +15,26 @@ jobs:
|
|
|
15
15
|
fail-fast: false
|
|
16
16
|
matrix:
|
|
17
17
|
python-version:
|
|
18
|
+
- "pypy3.12"
|
|
18
19
|
- "pypy3.11"
|
|
20
|
+
- "3.16t"
|
|
21
|
+
- "3.16"
|
|
19
22
|
- "3.15t"
|
|
20
23
|
- "3.15"
|
|
21
24
|
- "3.14t"
|
|
22
25
|
- "3.14"
|
|
23
|
-
- "3.13t"
|
|
24
26
|
- "3.13"
|
|
25
27
|
- "3.12"
|
|
26
28
|
- "3.11"
|
|
27
|
-
- "3.10"
|
|
28
29
|
os: [windows-latest, macos-latest, ubuntu-latest]
|
|
29
30
|
|
|
30
31
|
steps:
|
|
31
|
-
- uses: actions/checkout@
|
|
32
|
+
- uses: actions/checkout@v7.0.1
|
|
32
33
|
with:
|
|
33
34
|
persist-credentials: false
|
|
34
35
|
|
|
35
36
|
- name: Set up Python ${{ matrix.python-version }}
|
|
36
|
-
uses: actions/setup-python@
|
|
37
|
+
uses: actions/setup-python@v7.1.0
|
|
37
38
|
with:
|
|
38
39
|
python-version: ${{ matrix.python-version }}
|
|
39
40
|
allow-prereleases: true
|
|
@@ -44,22 +45,25 @@ jobs:
|
|
|
44
45
|
echo "PYTHON_GIL=0" >> "$GITHUB_ENV"
|
|
45
46
|
|
|
46
47
|
- name: Install uv
|
|
47
|
-
uses: astral-sh/setup-uv@
|
|
48
|
+
uses: astral-sh/setup-uv@v10.3.2
|
|
48
49
|
|
|
49
50
|
- name: Tox tests
|
|
50
51
|
run: |
|
|
51
52
|
uvx --python ${{ matrix.python-version }} --with tox-uv tox -e py
|
|
52
53
|
|
|
53
54
|
- name: Upload coverage
|
|
54
|
-
uses: codecov/codecov-action@
|
|
55
|
+
uses: codecov/codecov-action@v6.0.0
|
|
55
56
|
with:
|
|
56
57
|
flags: ${{ matrix.os }}
|
|
57
58
|
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
|
|
58
59
|
|
|
59
60
|
success:
|
|
61
|
+
if: always()
|
|
60
62
|
needs: test
|
|
61
63
|
runs-on: ubuntu-latest
|
|
62
64
|
name: Test successful
|
|
63
65
|
steps:
|
|
64
66
|
- name: Success
|
|
65
|
-
|
|
67
|
+
env:
|
|
68
|
+
TEST_RESULT: ${{ needs.test.result }}
|
|
69
|
+
run: test "$TEST_RESULT" = "success"
|
|
@@ -1,72 +1,101 @@
|
|
|
1
|
+
priorities:
|
|
2
|
+
fix: 0
|
|
3
|
+
fix-py: 10
|
|
4
|
+
fix-eol: 20
|
|
5
|
+
fix-whitespace: 30
|
|
6
|
+
check: 40
|
|
7
|
+
|
|
1
8
|
repos:
|
|
2
9
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
3
|
-
rev: v0.
|
|
10
|
+
rev: v0.17.5
|
|
4
11
|
hooks:
|
|
5
12
|
- id: ruff-check
|
|
6
13
|
args: [--exit-non-zero-on-fix]
|
|
14
|
+
priority: fix
|
|
7
15
|
|
|
8
16
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
9
|
-
rev:
|
|
17
|
+
rev: 26.10.1
|
|
10
18
|
hooks:
|
|
11
19
|
- id: black
|
|
20
|
+
priority: fix-py
|
|
12
21
|
|
|
13
22
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
14
23
|
rev: v6.0.0
|
|
15
24
|
hooks:
|
|
16
25
|
- id: check-added-large-files
|
|
26
|
+
priority: check
|
|
17
27
|
- id: check-case-conflict
|
|
28
|
+
priority: check
|
|
18
29
|
- id: check-merge-conflict
|
|
30
|
+
priority: check
|
|
19
31
|
- id: check-toml
|
|
32
|
+
priority: check
|
|
20
33
|
- id: check-yaml
|
|
34
|
+
priority: check
|
|
21
35
|
- id: debug-statements
|
|
36
|
+
priority: check
|
|
22
37
|
- id: end-of-file-fixer
|
|
38
|
+
priority: fix-eol
|
|
23
39
|
- id: forbid-submodules
|
|
40
|
+
priority: check
|
|
24
41
|
- id: requirements-txt-fixer
|
|
42
|
+
priority: fix
|
|
25
43
|
- id: trailing-whitespace
|
|
26
44
|
exclude: .github/ISSUE_TEMPLATE/bug_report.md|tests/test_style.py|tests/test_prettytable.py
|
|
45
|
+
priority: fix-whitespace
|
|
27
46
|
|
|
28
47
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
29
|
-
rev: 0.
|
|
48
|
+
rev: 0.39.0
|
|
30
49
|
hooks:
|
|
31
50
|
- id: check-dependabot
|
|
51
|
+
priority: check
|
|
32
52
|
- id: check-github-workflows
|
|
53
|
+
priority: check
|
|
33
54
|
|
|
34
55
|
- repo: https://github.com/rhysd/actionlint
|
|
35
|
-
rev: v1.7.
|
|
56
|
+
rev: v1.7.12
|
|
36
57
|
hooks:
|
|
37
58
|
- id: actionlint
|
|
59
|
+
priority: check
|
|
38
60
|
|
|
39
|
-
- repo: https://github.com/
|
|
40
|
-
rev: v1.
|
|
61
|
+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
|
|
62
|
+
rev: v1.32.0
|
|
41
63
|
hooks:
|
|
42
64
|
- id: zizmor
|
|
65
|
+
priority: check
|
|
43
66
|
|
|
44
67
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
45
|
-
rev: v2.
|
|
68
|
+
rev: v2.30.6
|
|
46
69
|
hooks:
|
|
47
70
|
- id: pyproject-fmt
|
|
71
|
+
priority: fix
|
|
48
72
|
|
|
49
73
|
- repo: https://github.com/abravalheri/validate-pyproject
|
|
50
|
-
rev: v0.
|
|
74
|
+
rev: "v0.27"
|
|
51
75
|
hooks:
|
|
52
76
|
- id: validate-pyproject
|
|
77
|
+
priority: check
|
|
53
78
|
|
|
54
79
|
- repo: https://github.com/tox-dev/tox-ini-fmt
|
|
55
|
-
rev: 1.
|
|
80
|
+
rev: 1.10.2
|
|
56
81
|
hooks:
|
|
57
82
|
- id: tox-ini-fmt
|
|
83
|
+
priority: fix
|
|
58
84
|
|
|
59
85
|
- repo: https://github.com/rbubley/mirrors-prettier
|
|
60
|
-
rev: v3.
|
|
86
|
+
rev: v3.10.1
|
|
61
87
|
hooks:
|
|
62
88
|
- id: prettier
|
|
63
89
|
args: [--prose-wrap=always, --print-width=88]
|
|
64
90
|
exclude: ^.github/ISSUE_TEMPLATE/bug_report.md$
|
|
91
|
+
priority: fix
|
|
65
92
|
|
|
66
93
|
- repo: meta
|
|
67
94
|
hooks:
|
|
68
95
|
- id: check-hooks-apply
|
|
96
|
+
priority: check
|
|
69
97
|
- id: check-useless-excludes
|
|
98
|
+
priority: check
|
|
70
99
|
|
|
71
100
|
ci:
|
|
72
101
|
autoupdate_schedule: quarterly
|