Contributing
Contributions are welcome. Report bugs and request features in GitHub Issues, and see CONTRIBUTING.md for the pull request guidelines.
Development environment
Section titled “Development environment”The docker/ directory contains a Docker Compose stack with NetBox, a worker, PostgreSQL and Valkey. The plugin is
installed in editable mode and NetBox runs Django’s development server, so code changes reload without rebuilding
the image.
cd dockerdocker compose upNetBox is available at http://localhost:8000. Migrations are applied on startup. After changing models, create the migration with:
docker compose exec netbox ./manage.py makemigrations interface_profilesSee docker/README.md for details.
Tests and linting
Section titled “Tests and linting”From the repository root:
make docker-test # all tests, with the CI configurationmake docker-test TESTS=interface_profiles.tests.test_api # a single modulemake lintmake formatmake docker-test runs the tests in a throwaway NetBox container against the PostgreSQL and Valkey services of the
development environment, using a separate test database.
CI runs Ruff, checks for missing migrations and runs the test suite against every supported NetBox version on each push and pull request.
Releasing
Section titled “Releasing”Releases are tagged vX.Y.Z. A tag publishes the package to PyPI and the documentation of that version to /X.Y/
and /latest/. See the release checklist in
CONTRIBUTING.md.