prettytable 3.9.0__tar.gz → 3.10.1__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.9.0 → prettytable-3.10.1}/.coveragerc +1 -4
- {prettytable-3.9.0 → prettytable-3.10.1}/.github/release-drafter.yml +5 -0
- {prettytable-3.9.0 → prettytable-3.10.1}/.github/workflows/labels.yml +4 -1
- {prettytable-3.9.0 → prettytable-3.10.1}/.github/workflows/lint.yml +7 -3
- prettytable-3.10.1/.github/workflows/release-drafter.yml +34 -0
- {prettytable-3.9.0 → prettytable-3.10.1}/.github/workflows/release.yml +5 -2
- {prettytable-3.9.0 → prettytable-3.10.1}/.github/workflows/require-pr-label.yml +1 -0
- {prettytable-3.9.0 → prettytable-3.10.1}/.github/workflows/test.yml +4 -5
- {prettytable-3.9.0 → prettytable-3.10.1}/.pre-commit-config.yaml +17 -30
- {prettytable-3.9.0 → prettytable-3.10.1}/PKG-INFO +106 -123
- {prettytable-3.9.0 → prettytable-3.10.1}/README.md +102 -120
- {prettytable-3.9.0 → prettytable-3.10.1}/pyproject.toml +30 -3
- {prettytable-3.9.0 → prettytable-3.10.1}/src/prettytable/__init__.py +10 -2
- {prettytable-3.9.0 → prettytable-3.10.1}/src/prettytable/colortable.py +1 -1
- {prettytable-3.9.0 → prettytable-3.10.1}/src/prettytable/prettytable.py +172 -130
- {prettytable-3.9.0 → prettytable-3.10.1}/tests/test_colortable.py +32 -30
- {prettytable-3.9.0 → prettytable-3.10.1}/tests/test_prettytable.py +698 -493
- {prettytable-3.9.0 → prettytable-3.10.1}/tox.ini +5 -3
- prettytable-3.9.0/.flake8 +0 -3
- prettytable-3.9.0/.github/workflows/release-drafter.yml +0 -21
- {prettytable-3.9.0 → prettytable-3.10.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {prettytable-3.9.0 → prettytable-3.10.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {prettytable-3.9.0 → prettytable-3.10.1}/.github/dependabot.yml +0 -0
- {prettytable-3.9.0 → prettytable-3.10.1}/.github/labels.yml +0 -0
- {prettytable-3.9.0 → prettytable-3.10.1}/.gitignore +0 -0
- {prettytable-3.9.0 → prettytable-3.10.1}/CHANGELOG.md +0 -0
- {prettytable-3.9.0 → prettytable-3.10.1}/CODE_OF_CONDUCT.md +0 -0
- {prettytable-3.9.0 → prettytable-3.10.1}/CONTRIBUTING.md +0 -0
- {prettytable-3.9.0 → prettytable-3.10.1}/LICENSE +0 -0
- {prettytable-3.9.0 → prettytable-3.10.1}/RELEASING.md +0 -0
- {prettytable-3.9.0 → prettytable-3.10.1}/src/prettytable/py.typed +0 -0
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
name: Sync labels
|
|
2
2
|
|
|
3
|
+
permissions:
|
|
4
|
+
pull-requests: write
|
|
5
|
+
|
|
3
6
|
on:
|
|
4
7
|
push:
|
|
5
8
|
branches:
|
|
@@ -12,7 +15,7 @@ jobs:
|
|
|
12
15
|
sync:
|
|
13
16
|
runs-on: ubuntu-latest
|
|
14
17
|
steps:
|
|
15
|
-
- uses: actions/checkout@
|
|
18
|
+
- uses: actions/checkout@v4
|
|
16
19
|
- uses: micnncim/action-label-syncer@v1
|
|
17
20
|
with:
|
|
18
21
|
prune: false
|
|
@@ -2,6 +2,9 @@ name: Lint
|
|
|
2
2
|
|
|
3
3
|
on: [push, pull_request, workflow_dispatch]
|
|
4
4
|
|
|
5
|
+
env:
|
|
6
|
+
FORCE_COLOR: 1
|
|
7
|
+
|
|
5
8
|
permissions:
|
|
6
9
|
contents: read
|
|
7
10
|
|
|
@@ -10,8 +13,9 @@ jobs:
|
|
|
10
13
|
runs-on: ubuntu-latest
|
|
11
14
|
|
|
12
15
|
steps:
|
|
13
|
-
- uses: actions/checkout@
|
|
14
|
-
- uses: actions/setup-python@
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- uses: actions/setup-python@v5
|
|
15
18
|
with:
|
|
16
19
|
python-version: "3.x"
|
|
17
|
-
|
|
20
|
+
cache: pip
|
|
21
|
+
- uses: pre-commit/action@v3.0.1
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Release drafter
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
# branches to consider in the event; optional, defaults to all
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
# pull_request event is required only for autolabeler
|
|
9
|
+
pull_request:
|
|
10
|
+
# Only following types are handled by the action, but one can default to all as well
|
|
11
|
+
types: [opened, reopened, synchronize]
|
|
12
|
+
# pull_request_target event is required for autolabeler to support PRs from forks
|
|
13
|
+
# pull_request_target:
|
|
14
|
+
# types: [opened, reopened, synchronize]
|
|
15
|
+
workflow_dispatch:
|
|
16
|
+
|
|
17
|
+
permissions:
|
|
18
|
+
contents: read
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
update_release_draft:
|
|
22
|
+
if: github.repository_owner == 'jazzband'
|
|
23
|
+
permissions:
|
|
24
|
+
# write permission is required to create a GitHub Release
|
|
25
|
+
contents: write
|
|
26
|
+
# write permission is required for autolabeler
|
|
27
|
+
# otherwise, read permission is required at least
|
|
28
|
+
pull-requests: write
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
steps:
|
|
31
|
+
# Drafts your next release notes as pull requests are merged into "main"
|
|
32
|
+
- uses: release-drafter/release-drafter@v6
|
|
33
|
+
env:
|
|
34
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -9,18 +9,21 @@ on:
|
|
|
9
9
|
- published
|
|
10
10
|
workflow_dispatch:
|
|
11
11
|
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
12
15
|
jobs:
|
|
13
16
|
build:
|
|
14
17
|
if: github.repository_owner == 'jazzband'
|
|
15
18
|
runs-on: ubuntu-latest
|
|
16
19
|
|
|
17
20
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
21
|
+
- uses: actions/checkout@v4
|
|
19
22
|
with:
|
|
20
23
|
fetch-depth: 0
|
|
21
24
|
|
|
22
25
|
- name: Set up Python
|
|
23
|
-
uses: actions/setup-python@
|
|
26
|
+
uses: actions/setup-python@v5
|
|
24
27
|
with:
|
|
25
28
|
python-version: "3.x"
|
|
26
29
|
cache: pip
|
|
@@ -11,19 +11,18 @@ jobs:
|
|
|
11
11
|
strategy:
|
|
12
12
|
fail-fast: false
|
|
13
13
|
matrix:
|
|
14
|
-
python-version: ["pypy3.
|
|
14
|
+
python-version: ["pypy3.10", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
15
15
|
os: [windows-latest, macos-latest, ubuntu-latest]
|
|
16
16
|
|
|
17
17
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
19
|
|
|
20
20
|
- name: Set up Python ${{ matrix.python-version }}
|
|
21
|
-
uses: actions/setup-python@
|
|
21
|
+
uses: actions/setup-python@v5
|
|
22
22
|
with:
|
|
23
23
|
python-version: ${{ matrix.python-version }}
|
|
24
24
|
allow-prereleases: true
|
|
25
25
|
cache: pip
|
|
26
|
-
cache-dependency-path: pyproject.toml
|
|
27
26
|
|
|
28
27
|
- name: Install dependencies
|
|
29
28
|
run: |
|
|
@@ -35,7 +34,7 @@ jobs:
|
|
|
35
34
|
tox -e py
|
|
36
35
|
|
|
37
36
|
- name: Upload coverage
|
|
38
|
-
uses: codecov/codecov-action@v3
|
|
37
|
+
uses: codecov/codecov-action@v3.1.5
|
|
39
38
|
with:
|
|
40
39
|
flags: ${{ matrix.os }}
|
|
41
40
|
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
|
|
@@ -1,47 +1,29 @@
|
|
|
1
1
|
repos:
|
|
2
|
-
- repo: https://github.com/
|
|
3
|
-
rev:
|
|
2
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
3
|
+
rev: v0.3.4
|
|
4
4
|
hooks:
|
|
5
|
-
- id:
|
|
6
|
-
args: [--
|
|
5
|
+
- id: ruff
|
|
6
|
+
args: [--exit-non-zero-on-fix]
|
|
7
7
|
|
|
8
|
-
- repo: https://github.com/psf/black
|
|
9
|
-
rev:
|
|
8
|
+
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
9
|
+
rev: 24.3.0
|
|
10
10
|
hooks:
|
|
11
11
|
- id: black
|
|
12
12
|
|
|
13
|
-
- repo: https://github.com/PyCQA/isort
|
|
14
|
-
rev: 5.12.0
|
|
15
|
-
hooks:
|
|
16
|
-
- id: isort
|
|
17
|
-
args: [--add-import=from __future__ import annotations]
|
|
18
|
-
|
|
19
|
-
- repo: https://github.com/PyCQA/flake8
|
|
20
|
-
rev: 6.1.0
|
|
21
|
-
hooks:
|
|
22
|
-
- id: flake8
|
|
23
|
-
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
|
|
24
|
-
|
|
25
|
-
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
26
|
-
rev: v1.10.0
|
|
27
|
-
hooks:
|
|
28
|
-
- id: python-check-blanket-noqa
|
|
29
|
-
- id: python-no-log-warn
|
|
30
|
-
|
|
31
13
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
32
|
-
rev: v4.
|
|
14
|
+
rev: v4.5.0
|
|
33
15
|
hooks:
|
|
34
16
|
- id: check-case-conflict
|
|
35
17
|
- id: check-merge-conflict
|
|
36
|
-
- id: check-json
|
|
37
18
|
- id: check-toml
|
|
38
19
|
- id: check-yaml
|
|
20
|
+
- id: debug-statements
|
|
39
21
|
- id: end-of-file-fixer
|
|
40
22
|
- id: trailing-whitespace
|
|
41
23
|
exclude: .github/ISSUE_TEMPLATE/bug_report.md|tests/test_prettytable.py
|
|
42
24
|
|
|
43
25
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
44
|
-
rev: v1.
|
|
26
|
+
rev: v1.9.0
|
|
45
27
|
hooks:
|
|
46
28
|
- id: mypy
|
|
47
29
|
additional_dependencies: [types-colorama, types-setuptools]
|
|
@@ -49,13 +31,13 @@ repos:
|
|
|
49
31
|
exclude: ^tests/
|
|
50
32
|
|
|
51
33
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
52
|
-
rev: 1.
|
|
34
|
+
rev: 1.7.0
|
|
53
35
|
hooks:
|
|
54
36
|
- id: pyproject-fmt
|
|
55
37
|
additional_dependencies: [tox]
|
|
56
38
|
|
|
57
39
|
- repo: https://github.com/abravalheri/validate-pyproject
|
|
58
|
-
rev: v0.
|
|
40
|
+
rev: v0.16
|
|
59
41
|
hooks:
|
|
60
42
|
- id: validate-pyproject
|
|
61
43
|
|
|
@@ -65,11 +47,16 @@ repos:
|
|
|
65
47
|
- id: tox-ini-fmt
|
|
66
48
|
|
|
67
49
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
68
|
-
rev:
|
|
50
|
+
rev: v4.0.0-alpha.8
|
|
69
51
|
hooks:
|
|
70
52
|
- id: prettier
|
|
71
53
|
args: [--prose-wrap=always, --print-width=88]
|
|
72
54
|
exclude: ^.github/ISSUE_TEMPLATE/bug_report.md$
|
|
73
55
|
|
|
56
|
+
- repo: meta
|
|
57
|
+
hooks:
|
|
58
|
+
- id: check-hooks-apply
|
|
59
|
+
- id: check-useless-excludes
|
|
60
|
+
|
|
74
61
|
ci:
|
|
75
62
|
autoupdate_schedule: quarterly
|