prettytable 3.16.0__tar.gz → 3.18.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.
Files changed (50) hide show
  1. {prettytable-3.16.0 → prettytable-3.18.0}/.github/dependabot.yml +13 -0
  2. {prettytable-3.16.0 → prettytable-3.18.0}/.github/workflows/labels.yml +2 -2
  3. {prettytable-3.16.0 → prettytable-3.18.0}/.github/workflows/lint.yml +6 -6
  4. {prettytable-3.16.0 → prettytable-3.18.0}/.github/workflows/release-drafter.yml +15 -7
  5. {prettytable-3.16.0 → prettytable-3.18.0}/.github/workflows/release.yml +6 -6
  6. {prettytable-3.16.0 → prettytable-3.18.0}/.github/workflows/require-pr-label.yml +1 -1
  7. prettytable-3.18.0/.github/workflows/test.yml +77 -0
  8. {prettytable-3.16.0 → prettytable-3.18.0}/.pre-commit-config.yaml +13 -12
  9. {prettytable-3.16.0 → prettytable-3.18.0}/PKG-INFO +170 -60
  10. {prettytable-3.16.0 → prettytable-3.18.0}/README.md +164 -55
  11. {prettytable-3.16.0 → prettytable-3.18.0}/pyproject.toml +23 -27
  12. {prettytable-3.16.0 → prettytable-3.18.0}/requirements-mypy.txt +1 -1
  13. {prettytable-3.16.0 → prettytable-3.18.0}/src/prettytable/__init__.py +6 -1
  14. prettytable-3.18.0/src/prettytable/_version.py +24 -0
  15. {prettytable-3.16.0 → prettytable-3.18.0}/src/prettytable/colortable.py +24 -11
  16. {prettytable-3.16.0 → prettytable-3.18.0}/src/prettytable/prettytable.py +583 -326
  17. prettytable-3.18.0/tests/data/table_align_center.txt +6 -0
  18. prettytable-3.18.0/tests/data/table_align_left.txt +6 -0
  19. prettytable-3.18.0/tests/data/table_align_right.txt +6 -0
  20. prettytable-3.18.0/tests/data/table_ansi_colors.txt +7 -0
  21. prettytable-3.18.0/tests/data/table_cjk.txt +6 -0
  22. prettytable-3.18.0/tests/data/table_combining_chars.txt +6 -0
  23. prettytable-3.18.0/tests/data/table_complex_emoji.txt +7 -0
  24. {prettytable-3.16.0 → prettytable-3.18.0}/tests/test_colortable.py +2 -2
  25. {prettytable-3.16.0 → prettytable-3.18.0}/tests/test_html.py +65 -73
  26. {prettytable-3.16.0 → prettytable-3.18.0}/tests/test_json.py +2 -8
  27. {prettytable-3.16.0 → prettytable-3.18.0}/tests/test_mediawiki.py +2 -8
  28. {prettytable-3.16.0 → prettytable-3.18.0}/tests/test_prettytable.py +598 -106
  29. prettytable-3.18.0/tests/test_rst.py +97 -0
  30. {prettytable-3.16.0 → prettytable-3.18.0}/tests/test_sorting.py +44 -15
  31. {prettytable-3.16.0 → prettytable-3.18.0}/tests/test_style.py +186 -36
  32. {prettytable-3.16.0 → prettytable-3.18.0}/tox.ini +6 -8
  33. prettytable-3.16.0/.coveragerc +0 -15
  34. prettytable-3.16.0/.github/workflows/test.yml +0 -51
  35. prettytable-3.16.0/src/prettytable/_version.py +0 -21
  36. {prettytable-3.16.0 → prettytable-3.18.0}/.github/FUNDING.yml +0 -0
  37. {prettytable-3.16.0 → prettytable-3.18.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  38. {prettytable-3.16.0 → prettytable-3.18.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  39. {prettytable-3.16.0 → prettytable-3.18.0}/.github/SECURITY.md +0 -0
  40. {prettytable-3.16.0 → prettytable-3.18.0}/.github/labels.yml +0 -0
  41. {prettytable-3.16.0 → prettytable-3.18.0}/.github/release-drafter.yml +0 -0
  42. {prettytable-3.16.0 → prettytable-3.18.0}/.gitignore +0 -0
  43. {prettytable-3.16.0 → prettytable-3.18.0}/CHANGELOG.md +0 -0
  44. {prettytable-3.16.0 → prettytable-3.18.0}/LICENSE +0 -0
  45. {prettytable-3.16.0 → prettytable-3.18.0}/RELEASING.md +0 -0
  46. {prettytable-3.16.0 → prettytable-3.18.0}/src/prettytable/__main__.py +0 -0
  47. {prettytable-3.16.0 → prettytable-3.18.0}/src/prettytable/py.typed +0 -0
  48. {prettytable-3.16.0 → prettytable-3.18.0}/tests/conftest.py +0 -0
  49. {prettytable-3.16.0 → prettytable-3.18.0}/tests/test_latex.py +0 -0
  50. {prettytable-3.16.0 → prettytable-3.18.0}/tests/test_sections.py +0 -0
@@ -5,6 +5,10 @@ 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"
@@ -14,12 +18,21 @@ updates:
14
18
  update-types:
15
19
  - "version-update:semver-minor"
16
20
  - "version-update:semver-patch"
21
+ cooldown:
22
+ default-days: 7
23
+
17
24
  - package-ecosystem: pip
18
25
  directory: "/"
19
26
  schedule:
20
27
  interval: monthly
21
28
  time: "03:00"
29
+ groups:
30
+ pip:
31
+ patterns:
32
+ - "*"
22
33
  open-pull-requests-limit: 10
23
34
  labels:
24
35
  - "changelog: skip"
25
36
  - "dependencies"
37
+ cooldown:
38
+ default-days: 7
@@ -14,10 +14,10 @@ jobs:
14
14
  pull-requests: write
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
- - uses: actions/checkout@v4
17
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18
18
  with:
19
19
  persist-credentials: false
20
- - uses: micnncim/action-label-syncer@v1
20
+ - uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c # v1.3.0
21
21
  with:
22
22
  prune: false
23
23
  env:
@@ -13,25 +13,25 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
 
15
15
  steps:
16
- - uses: actions/checkout@v4
16
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17
17
  with:
18
18
  persist-credentials: false
19
- - uses: actions/setup-python@v5
19
+ - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
20
20
  with:
21
21
  python-version: "3.x"
22
- - uses: tox-dev/action-pre-commit-uv@v1
22
+ - uses: j178/prek-action@cbc2f23eb5539cf20d82d1aabd0d0ecbcc56f4e3 # v2.0.2
23
23
 
24
24
  mypy:
25
25
  runs-on: ubuntu-latest
26
26
 
27
27
  steps:
28
- - uses: actions/checkout@v4
28
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
29
29
  with:
30
30
  persist-credentials: false
31
- - uses: actions/setup-python@v5
31
+ - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
32
32
  with:
33
33
  python-version: "3.x"
34
34
  - name: Install uv
35
- uses: astral-sh/setup-uv@v5
35
+ uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
36
36
  - name: Mypy
37
37
  run: uvx --with tox-uv tox -e mypy
@@ -16,16 +16,24 @@ on:
16
16
 
17
17
  jobs:
18
18
  update_release_draft:
19
- if: github.event.repository.fork == false
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@5de93583980a40bd78603b6dfdcda5b4df377b32 # v7.2.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-latest
37
+ runs-on: ubuntu-slim
27
38
  steps:
28
- # Drafts your next release notes as pull requests are merged into "main"
29
- - uses: release-drafter/release-drafter@v6
30
- env:
31
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39
+ - uses: release-drafter/release-drafter/autolabeler@5de93583980a40bd78603b6dfdcda5b4df377b32 # v7.2.0
@@ -20,12 +20,12 @@ jobs:
20
20
  runs-on: ubuntu-latest
21
21
 
22
22
  steps:
23
- - uses: actions/checkout@v4
23
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24
24
  with:
25
25
  fetch-depth: 0
26
26
  persist-credentials: false
27
27
 
28
- - uses: hynek/build-and-inspect-python-package@v2
28
+ - uses: hynek/build-and-inspect-python-package@fe0a0fb1925ca263d076ca4f2c13e93a6e92a33e # v2.17.0
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@v4
45
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
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@release/v1
51
+ uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
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@v4
70
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
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@release/v1
76
+ uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
@@ -13,7 +13,7 @@ jobs:
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@0ac283b4e65c1fb28ce6079dea5546ceca98ccbe # v5.5.2
17
17
  with:
18
18
  mode: minimum
19
19
  count: 1
@@ -0,0 +1,77 @@
1
+ name: Test
2
+
3
+ on: [push, pull_request, workflow_dispatch]
4
+
5
+ permissions: {}
6
+
7
+ env:
8
+ FORCE_COLOR: 1
9
+ PIP_DISABLE_PIP_VERSION_CHECK: 1
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ${{ matrix.os }}
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ python-version:
18
+ - "pypy3.11"
19
+ - "3.15t"
20
+ - "3.15"
21
+ - "3.14t"
22
+ - "3.14"
23
+ - "3.13"
24
+ - "3.12"
25
+ - "3.11"
26
+ - "3.10"
27
+ os: [windows-latest, macos-latest, ubuntu-latest]
28
+ include:
29
+ - python-version: "3.16"
30
+ os: ubuntu-latest
31
+ - python-version: "3.16t"
32
+ os: ubuntu-latest
33
+
34
+ steps:
35
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
36
+ with:
37
+ persist-credentials: false
38
+
39
+ - name: Set up Python ${{ matrix.python-version }}
40
+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
41
+ if: "!startsWith(matrix.python-version, '3.16')"
42
+ with:
43
+ python-version: ${{ matrix.python-version }}
44
+ allow-prereleases: true
45
+
46
+ - name: Set up Python ${{ matrix.python-version }} (deadsnakes)
47
+ uses: deadsnakes/action@e640ac8743173a67cca4d7d77cd837e514bf98e8 # v3.2.0
48
+ if: startsWith(matrix.python-version, '3.16')
49
+ with:
50
+ python-version: "3.16-dev"
51
+ nogil: ${{ endsWith(matrix.python-version, 't') }}
52
+
53
+ - name: Set PYTHON_GIL
54
+ if: endsWith(matrix.python-version, 't')
55
+ run: |
56
+ echo "PYTHON_GIL=0" >> "$GITHUB_ENV"
57
+
58
+ - name: Install uv
59
+ uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
60
+
61
+ - name: Tox tests
62
+ run: |
63
+ uvx --python ${{ matrix.python-version }} --with tox-uv tox -e py
64
+
65
+ - name: Upload coverage
66
+ uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
67
+ with:
68
+ flags: ${{ matrix.os }}
69
+ name: ${{ matrix.os }} Python ${{ matrix.python-version }}
70
+
71
+ success:
72
+ needs: test
73
+ runs-on: ubuntu-latest
74
+ name: Test successful
75
+ steps:
76
+ - name: Success
77
+ run: echo Test successful
@@ -1,17 +1,17 @@
1
1
  repos:
2
2
  - repo: https://github.com/astral-sh/ruff-pre-commit
3
- rev: v0.9.2
3
+ rev: v0.15.9
4
4
  hooks:
5
- - id: ruff
5
+ - id: ruff-check
6
6
  args: [--exit-non-zero-on-fix]
7
7
 
8
8
  - repo: https://github.com/psf/black-pre-commit-mirror
9
- rev: 24.10.0
9
+ rev: 26.3.1
10
10
  hooks:
11
11
  - id: black
12
12
 
13
13
  - repo: https://github.com/pre-commit/pre-commit-hooks
14
- rev: v5.0.0
14
+ rev: v6.0.0
15
15
  hooks:
16
16
  - id: check-added-large-files
17
17
  - id: check-case-conflict
@@ -26,38 +26,39 @@ repos:
26
26
  exclude: .github/ISSUE_TEMPLATE/bug_report.md|tests/test_style.py|tests/test_prettytable.py
27
27
 
28
28
  - repo: https://github.com/python-jsonschema/check-jsonschema
29
- rev: 0.31.0
29
+ rev: 0.37.1
30
30
  hooks:
31
31
  - id: check-dependabot
32
32
  - id: check-github-workflows
33
33
 
34
34
  - repo: https://github.com/rhysd/actionlint
35
- rev: v1.7.7
35
+ rev: v1.7.12
36
36
  hooks:
37
37
  - id: actionlint
38
38
 
39
- - repo: https://github.com/woodruffw/zizmor-pre-commit
40
- rev: v1.2.2
39
+ - repo: https://github.com/zizmorcore/zizmor-pre-commit
40
+ rev: v1.23.1
41
41
  hooks:
42
42
  - id: zizmor
43
43
 
44
44
  - repo: https://github.com/tox-dev/pyproject-fmt
45
- rev: v2.5.0
45
+ rev: v2.21.0
46
46
  hooks:
47
47
  - id: pyproject-fmt
48
48
 
49
49
  - repo: https://github.com/abravalheri/validate-pyproject
50
- rev: v0.23
50
+ rev: v0.25
51
51
  hooks:
52
52
  - id: validate-pyproject
53
+ additional_dependencies: ["trove-classifiers>=2026.6.1.19"]
53
54
 
54
55
  - repo: https://github.com/tox-dev/tox-ini-fmt
55
- rev: 1.5.0
56
+ rev: 1.7.1
56
57
  hooks:
57
58
  - id: tox-ini-fmt
58
59
 
59
60
  - repo: https://github.com/rbubley/mirrors-prettier
60
- rev: v3.4.2
61
+ rev: v3.8.1
61
62
  hooks:
62
63
  - id: prettier
63
64
  args: [--prose-wrap=always, --print-width=88]