Skip to content

Commit 50d495c

Browse files
committed
update 2026
1 parent 399e892 commit 50d495c

6 files changed

Lines changed: 31 additions & 21 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010

1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616
- name: Set up Python 3.10
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: "3.10"
2020
- name: Build dev environment
@@ -27,7 +27,3 @@ jobs:
2727
env:
2828
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
2929
run: make release
30-
- name: Update docs
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
run: make docs

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
python-version: ["3.10", "3.11"]
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Build dev environment

scripts/clean.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env bash
2-
3-
rm -r .venv 2>/dev/null
4-
rm .coverage 2>/dev/null
5-
rm -r htmlcov 2>/dev/null
6-
rm .git/hooks/pre-commit 2>/dev/null
7-
find . -name '__pycache__' -exec rm -rv {} \; 2>/dev/null
8-
find . -name '*.egg-info' -exec rm -rv {} \; 2>/dev/null
9-
find . -name '.pytest_cache' -exec rm -rv {} \; 2>/dev/null
10-
rm ./dist -r 2>/dev/null
2+
(
3+
rm -r .venv
4+
rm .coverage
5+
rm -r htmlcov
6+
rm .git/hooks/pre-commit
7+
find . -name '__pycache__' -exec rm -rv {} \;
8+
find . -name '*.egg-info' -exec rm -rv {} \;
9+
find . -name '.pytest_cache' -exec rm -rv {} \;
10+
rm ./dist -r
11+
) 2>/dev/null
1112

1213
echo Cleaned project

scripts/coverage.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ source .venv/bin/activate
44

55
package_name=$(echo "$1" | tr '-' '_')
66

7-
# Run pytest with coverage reports and tee output
7+
# Run pytest with coverage reports, teeing text output for LLMs to read
88
mkdir -p htmlcov
9-
pytest --cov="src/$package_name" --cov-report=html --cov-report=term-missing . 2>&1 | tee htmlcov/coverage_report.txt
9+
pytest --cov="src/$package_name" \
10+
--cov-report=html \
11+
--cov-report=term-missing \
12+
--cov-context=test . 2>&1 | tee htmlcov/coverage_report.txt
1013

1114
# Extract just the missing coverage summary
1215
grep -A 20 "Missing" htmlcov/coverage_report.txt > htmlcov/missing_coverage.txt || true

scripts/docs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -e
44

55
# Variables
66
PROJECT_NAME=$(basename "$(pwd)")
7+
MODULE_NAME=$(echo "$PROJECT_NAME" | tr '-' '_')
78
REPO_URL="ssh://git@github.com/bitplane/bitplane.net.git"
89
SRC_PATH="docs"
910
DEST_PATH="dev/python/$PROJECT_NAME"
@@ -14,7 +15,7 @@ COMMIT_MSG="Update $PROJECT_NAME docs"
1415

1516
mkdir -p docs/pydoc
1617
cd src
17-
pydoc-markdown -p "$PROJECT_NAME" > ../docs/pydoc/index.md
18+
pydoc-markdown -p "$MODULE_NAME" > ../docs/pydoc/index.md
1819
cd ..
1920

2021
# Check out the main website repo

scripts/venv.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
#!/usr/bin/env bash
22

3-
python3 -m venv .venv
3+
# create the python virtual environment
4+
if [[ ! -d .venv ]]; then
5+
if command -v uv >/dev/null 2>&1; then
6+
uv venv
7+
else
8+
python3 -m venv .venv
9+
fi
10+
fi
11+
12+
# activate it
413
source .venv/bin/activate

0 commit comments

Comments
 (0)