Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 20 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:
fail-fast: false
matrix:
python:
- '3.11'
- '3.12'
- '3.13'
- "3.11"
- "3.12"
- "3.13"
steps:
- name: Checkout the Git repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache: "pip"
- name: Check formatting
run: make format
lint:
Expand All @@ -35,17 +35,17 @@ jobs:
fail-fast: false
matrix:
python:
- '3.11'
- '3.12'
- '3.13'
- "3.11"
- "3.12"
- "3.13"
steps:
- name: Checkout the Git repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache: "pip"
- name: Check for erroneous constructs
run: make lint
links:
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: "16"
- name: Check Markdown links
run: |
npm install -g markdown-link-check
Expand All @@ -69,17 +69,17 @@ jobs:
fail-fast: false
matrix:
python:
- '3.11'
- '3.12'
- '3.13'
- "3.11"
- "3.12"
- "3.13"
steps:
- name: Checkout the Git repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache: "pip"
- name: Run tests
run: make test
build:
Expand All @@ -92,8 +92,8 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
python-version: "3.13"
cache: "pip"
- name: Building toltecmk
run: make build
- uses: actions/upload-artifact@v4
Expand All @@ -111,8 +111,8 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
python-version: "3.13"
cache: "pip"
- name: Building toltecmk
run: make standalone
- name: Sanity check
Expand Down Expand Up @@ -150,8 +150,8 @@ jobs:
strategy:
matrix:
artifact:
- 'pip'
- 'toltecmk'
- "pip"
- "toltecmk"
permissions:
contents: write
steps:
Expand All @@ -164,8 +164,7 @@ jobs:
name: ${{ matrix.artifact }}
path: dist
- name: Upload to release
run:
find . -type f | xargs -rI {} gh release upload "$TAG" {} --clobber
run: find . -type f | xargs -rI {} gh release upload "$TAG" {} --clobber
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.event.release.tag_name }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "toltecmk"
version = "0.5.4"
version = "0.5.5"
authors = [
{ name="Mattéo Delabre", email="git.matteo@delab.re" },
{ name="Eeems", email="eeems@eeems.email" },
Expand Down
11 changes: 7 additions & 4 deletions toltec/hooks/strip.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,13 @@ def docker_file_path(file_path: str) -> str:
)

if strip_arm:
script.append(
'"${CROSS_COMPILE}strip" --strip-all -- '
+ " ".join(
docker_file_path(file_path) for file_path in strip_arm
script.extend(
(
"source /opt/x-tools/switch-arm.sh",
'"${CROSS_COMPILE}strip" --strip-all -- '
+ " ".join(
docker_file_path(file_path) for file_path in strip_arm
),
)
)

Expand Down
8 changes: 4 additions & 4 deletions toltec/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
LOGGING_FORMAT = "[%(levelname)8s] %(name)s: %(message)s"


def argparse_add_verbose(parser: argparse.ArgumentParser) -> None:
def argparse_add_verbose(parser: argparse.ArgumentParser) -> argparse.Action:
"""Add a CLI option for setting the verbosity level."""
parser.add_argument(
return parser.add_argument(
"-v",
"--verbose",
action="store_const",
Expand All @@ -41,9 +41,9 @@ def argparse_add_verbose(parser: argparse.ArgumentParser) -> None:
)


def argparse_add_warning(parser: argparse.ArgumentParser) -> None:
def argparse_add_warning(parser: argparse.ArgumentParser) -> argparse.Action:
"""Add a CLI option for controlling warnings."""
parser.add_argument(
return parser.add_argument(
"-W",
"--warnings",
choices=("default", "error", "ignore"),
Expand Down