Using Travis CI Matrix Builds to Test Multiple Python Versions
Learn how to define a matrix in .travis.yml to run unit and integration tests across Python 3.8, 3.9, and 3.10 without duplicating job definitions.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to define a matrix in .travis.yml to run unit and integration tests across Python 3.8, 3.9, and 3.10 without duplicating job definitions.
Learn how to create a NetBox custom script that assigns a site to all devices missing one, with step‑by‑step placement, execution, and verification guidance.
Flask's create_app() factory pattern gives you per-environment app instances, clean pytest fixtures, and no import-time side effects. A worked example plus the circular-import and app-context mistakes to avoid.
Learn how to implement weighted shortest paths in NetworkX using Dijkstra and Bellman-Ford algorithms, including how to handle negative weights and avoid common attribute pitfalls.
Reflex state must live on rx.State or rx.ComponentState subclasses — plain Python variables are not reactive. Learn when to use shared state versus component-scoped state, and how to verify the behavior.
Learn how Okta paginates list APIs via RFC 5988 Link headers, why offset-based paging fails, and how to safely follow the opaque 'after' cursor in a sync script.
Pick the right Streamlit cache decorator: st.cache_data for copy-safe data, st.cache_resource for shared connections and models.
FastAPI's Depends system is where shared logic should live. Here's how yield-based dependencies, scoping, and sync-vs-async choices work in practice — and where the pattern breaks down.
An architecture note on using @dataclass(frozen=True, slots=True) as a minimal typed container for internal service messages: requirements, boundary validation, checks, and failure modes.