From 3a231264b1bebaea931535a8dadec2c6bdaf93a8 Mon Sep 17 00:00:00 2001 From: "Walter A. Boring IV" Date: Fri, 28 Aug 2026 11:51:12 -0400 Subject: [PATCH] fix: correct PacketList.tx() docstring from 'received' to 'transmitted' (#235) Closes #21 --- .forgejo/workflows/master-build.yml | 29 +++++++++++++++++++++++++++++ .forgejo/workflows/python.yml | 22 ++++++++++++++++++++++ ChangeLog.md | 3 +++ aprsd/packets/packet_list.py | 2 +- 4 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 .forgejo/workflows/master-build.yml create mode 100644 .forgejo/workflows/python.yml diff --git a/.forgejo/workflows/master-build.yml b/.forgejo/workflows/master-build.yml new file mode 100644 index 0000000..4e85d4a --- /dev/null +++ b/.forgejo/workflows/master-build.yml @@ -0,0 +1,29 @@ +name: Test and Build Latest Container Image + +on: + schedule: + - cron: "0 10 * * *" + push: + branches: + - "master" + tags: + - "*.*.*" + +jobs: + tox: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + strategy: + matrix: + python-version: ["3.11"] + steps: + - uses: actions/checkout@v4 + - name: Install uv + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + - name: Test with tox + run: | + $HOME/.local/bin/uv tool install tox --with tox-uv + $HOME/.local/bin/tox -e py$(echo ${{ matrix.python-version }} | tr -d .) diff --git a/.forgejo/workflows/python.yml b/.forgejo/workflows/python.yml new file mode 100644 index 0000000..861512a --- /dev/null +++ b/.forgejo/workflows/python.yml @@ -0,0 +1,22 @@ +name: TOX Test + +on: [push, pull_request] + +jobs: + tox: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + strategy: + matrix: + python-version: ["3.11", "3.12", "3.13"] + steps: + - uses: actions/checkout@v4 + - name: Install uv + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + - name: Test with tox + run: | + $HOME/.local/bin/uv tool install tox --with tox-uv + $HOME/.local/bin/tox -e py$(echo ${{ matrix.python-version }} | tr -d .) diff --git a/ChangeLog.md b/ChangeLog.md index 74a7540..20ac03f 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -8,6 +8,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). ##### Bug Fixes +- Fix PacketList.tx() docstring: "received" → "transmitted" [`2e3d556`](https://github.com/craigerl/aprsd/commit/2e3d556) + - Add aprsd/~/ to .gitignore; remove stale tilde directory from repo [`1b08e1c`](https://github.com/craigerl/aprsd/commit/1b08e1c) - Fix HelpPlugin shadowing Python builtin `list` with local variable [`7118e23`](https://github.com/craigerl/aprsd/commit/7118e23) @@ -44,6 +46,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). ##### Bug Fixes + - Add aprsd/~/ to .gitignore; remove stale tilde directory from repo [`1b08e1c`](https://github.com/craigerl/aprsd/commit/1b08e1c) - Fix DupePacketFilter checking wrong packet's processed flag [`db3a042`](https://github.com/craigerl/aprsd/commit/db3a042) - Add socket lock to prevent TX/RX race causing stream corruption on retransmits [`5cc918e`](https://github.com/craigerl/aprsd/commit/5cc918e) diff --git a/aprsd/packets/packet_list.py b/aprsd/packets/packet_list.py index d450833..51c726d 100644 --- a/aprsd/packets/packet_list.py +++ b/aprsd/packets/packet_list.py @@ -56,7 +56,7 @@ class PacketList(objectstore.ObjectStoreMixin): type_stats['rx'] += 1 def tx(self, packet: type[core.Packet]): - """Add a packet that was received.""" + """Add a packet that was transmitted.""" with self.lock: self._total_tx += 1 self._add(packet)