Skip to content

chore: audit fixes — LICENSE, CI, correct repo URL, packaging hygiene - #9

Merged
Kani999 merged 4 commits into
masterfrom
chore/audit-fixes
Aug 25, 2026
Merged

chore: audit fixes — LICENSE, CI, correct repo URL, packaging hygiene#9
Kani999 merged 4 commits into
masterfrom
chore/audit-fixes

Conversation

@Kani999

@Kani999 Kani999 commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Findings from an overall repo audit against NetBox plugin development best practices. No runtime code changes.

Changes

  • Add Apache 2.0 LICENSE file — README and setup.py reference it, but it was missing from the repo and sdist
  • Fix setup.py url — pointed to the old Kani999 fork; PyPI now links to the CESNET repo
  • Add Python 3.14 classifier — NetBox 4.6 runs on py3.14
  • Add GitHub Actions CI — ruff + pytest on Python 3.12/3.13/3.14 (tests are pure-mock, no NetBox needed)
  • Track ruff.toml — lint config was gitignored, now shared with contributors and CI
  • Ignore build/ — untracked noise after every build

Audit summary (clean, no action)

PluginConfig correctness, version pins, deferred imports in ready(), logging, fault isolation, and unit tests all pass the checklist; no deprecated 4.6 APIs remain after 4.6.0.2. Deliberately skipped: pyproject.toml migration (setup.py works; YAGNI).

Testing

  • ruff check . clean, 17/17 tests pass locally
  • CI workflow will run on this PR

Jan Krupa added 4 commits August 25, 2026 12:09
- Add Apache 2.0 LICENSE file (referenced by README and setup.py but missing)
- Fix setup.py url to point at CESNET repo instead of old fork
- Add Python 3.14 classifier (NetBox 4.6 runs on py3.14)
- Add GitHub Actions CI: ruff + pytest on Python 3.12-3.14
- Track ruff.toml; ignore build/
Triggered when a GitHub release is published: builds sdist+wheel and
uploads via PyPI trusted publishing (OIDC) - no API token stored in
GitHub. Requires the GitHub publisher to be configured once on
pypi.org (project Publishing settings: repo CESNET/netbox-plugin-reloader,
workflow publish.yml, environment pypi).
Pin ruff==0.14.4 in CI so lint results match local runs instead of
drifting with each ruff release.
@Kani999
Kani999 merged commit b03c24c into master Aug 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant