Skip to content

Commit dfd0b66

Browse files
authored
Merge pull request #324 from wolph/quality-audit-6-tooling
Quality audit PR 6/6: tooling and CI modernization
2 parents d361960 + f3e4e30 commit dfd0b66

20 files changed

Lines changed: 67 additions & 91 deletions

ISSUE_TEMPLATE renamed to .github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ If applicable, code to reproduce the issue and/or the stacktrace of the issue
1212
- Python distribution/environment: CPython/Anaconda/IPython/IDLE
1313
- Operating System: Windows 10, Ubuntu Linux, etc.
1414
- Package version: `import progressbar; print(progressbar.__version__)`
15-

.github/workflows/codeql.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
language: [ python, javascript ]
23+
language: [ python ]
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v6
2828

2929
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v2
30+
uses: github/codeql-action/init@v3
3131
with:
3232
languages: ${{ matrix.language }}
3333
queries: +security-and-quality
3434

3535
- name: Autobuild
36-
uses: github/codeql-action/autobuild@v2
37-
if: ${{ matrix.language == 'python' || matrix.language == 'javascript' }}
36+
uses: github/codeql-action/autobuild@v3
37+
if: ${{ matrix.language == 'python' }}
3838

3939
- name: Perform CodeQL Analysis
40-
uses: github/codeql-action/analyze@v2
40+
uses: github/codeql-action/analyze@v3
4141
with:
4242
category: "/language:${{ matrix.language }}"

.github/workflows/main.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@ name: tox
22

33
on:
44
push:
5+
branches: [develop]
56
pull_request:
67
workflow_dispatch:
78

9+
concurrency:
10+
group: "${{ github.workflow }}-${{ github.ref }}"
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
816
jobs:
917
perf-budget:
1018
name: Performance budget
@@ -53,10 +61,10 @@ jobs:
5361
experimental: true
5462
- python-version: '3.14'
5563
tox-env: docs
56-
- python-version: '3.14'
57-
tox-env: black
5864
- python-version: '3.14'
5965
tox-env: ruff
66+
- python-version: '3.14'
67+
tox-env: codespell
6068

6169
steps:
6270
- uses: actions/checkout@v6
@@ -74,3 +82,27 @@ jobs:
7482
# showing the failing step in the logs
7583
continue-on-error: ${{ matrix.experimental || false }}
7684
run: tox -e ${{ matrix.tox-env }}
85+
86+
windows:
87+
name: tox (windows / py312)
88+
runs-on: windows-latest
89+
timeout-minutes: 10
90+
env:
91+
# Force UTF-8 I/O so unicode-marker tests (e.g. test_unicode) don't
92+
# hit UnicodeEncodeError against the legacy Windows code page under
93+
# pytest's fd-level capture.
94+
PYTHONUTF8: '1'
95+
steps:
96+
- uses: actions/checkout@v6
97+
- name: Set up Python 3.12
98+
uses: actions/setup-python@v6
99+
with:
100+
python-version: '3.12'
101+
- name: Install dependencies
102+
run: |
103+
python -m pip install --upgrade pip tox
104+
- name: Test with tox
105+
# The 100% coverage gate cannot be met on Windows: POSIX-only
106+
# branches never execute there, so run without the coverage gate
107+
# (`--no-cov` posarg). Linux jobs still enforce full coverage.
108+
run: tox -e py312 -- --no-cov

.github/workflows/stale.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ on:
88
jobs:
99
stale:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
1114
steps:
1215
- uses: actions/stale@v8
1316
with:
1417
days-before-issue-stale: 30
1518
exempt-issue-labels: in-progress,help-wanted,pinned,security,enhancement
1619
exempt-all-assignees: true
17-

.pre-commit-config.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v2.4.0
5+
rev: v6.0.0
66
hooks:
7+
- id: end-of-file-fixer
78
- id: trailing-whitespace
89
- id: check-yaml
910
- id: check-added-large-files
1011

11-
- repo: https://gitlab.com/pycqa/flake8
12-
rev: 3.7.9
12+
- repo: https://github.com/astral-sh/ruff-pre-commit
13+
rev: v0.15.20
1314
hooks:
14-
- id: flake8
15+
- id: ruff-check
16+
- id: ruff-format

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Stats: 1 obs (414t read) | 19,980t work | 98% savings
1313
2388 12:04a ✅ CI/tox config updated to test Python 3.10–3.15
1414

1515
Access 20k tokens of past work via get_observations([IDs]) or mem-search skill.
16-
</claude-mem-context>
16+
</claude-mem-context>

LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2525
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2626
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
2727
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28-

MANIFEST.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
recursive-exclude *.pyc
22
recursive-exclude *.pyo
3-
recursive-exclude *.html
4-
include AUTHORS.rst
53
include CHANGES.rst
64
include CONTRIBUTING.rst
75
include LICENSE
86
include README.rst
97
include examples.py
10-
include requirements.txt
11-
include Makefile
128
include pytest.ini

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Text progress bar library for Python.
55
Build status:
66

77
.. image:: https://github.com/WoLpH/python-progressbar/actions/workflows/main.yml/badge.svg
8-
:alt: python-progressbar test status
8+
:alt: python-progressbar test status
99
:target: https://github.com/WoLpH/python-progressbar/actions
1010

1111
Coverage:

appveyor.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)