local-dev
How to run unit tests, linting, and type checking for local development
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
How to run unit tests, linting, and type checking for local development
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | local-dev |
| description | How to run unit tests, linting, and type checking for local development |
Use this skill to run unit tests, linting, and type checking for the insights-rbac project.
Run tests with coverage:
tox -e py312
Run tests without coverage (faster):
tox -e py312-fast
Run tests and show slowest tests:
tox -e py312-profile
Run a specific test:
tox -e py312 -- tests.module.path.TestClass.test_method
Run a specific test with keepdb (faster, reuses existing test database):
tox -e py312 -- tests.module.path.TestClass.test_method --keepdb
Run all tests in a test file:
tox -e py312 -- tests.module.path
Run all tests in a test class:
tox -e py312 -- tests.module.path.TestClass
Run Django tests directly:
make unittest
Run fast tests (without coverage):
make unittest-fast
Run tests with profiling:
make unittest-profile
Run linting checks (flake8 and black):
tox -e lint
Run linting:
make lint
Format code (fix linting errors):
make format
Run type checking with mypy:
tox -e mypy
Run type checking:
make typecheck
| Task | Tox Command | Make Command |
|---|---|---|
| Run tests with coverage | tox -e py312 | make unittest |
| Run tests (fast, no coverage) | tox -e py312-fast | make unittest-fast |
| Profile slow tests | tox -e py312-profile | make unittest-profile |
| Run specific test | tox -e py312 -- tests.module.path.TestClass.test_method | N/A |
| Run specific test (keepdb) | tox -e py312 -- tests.module.path.TestClass.test_method --keepdb | N/A |
| Run linting | tox -e lint | make lint |
| Format code | N/A | make format |
| Type checking | tox -e mypy | make typecheck |
tox commands automatically provision the pipenv environment before running testsmake format to automatically fix formatting issues found by blackpy312-fast environment runs tests in parallel with --failfast flag for faster feedbackdocker-compose up -d db)Call RBAC internal API endpoints in stage or prod via Turnpike (same routing as the relationship skill). Use when invoking /_private/api/ utils, tenant, relations, inventory, disaster recovery, or integration endpoints.
Diagnose RBAC data and Kessel/SpiceDB replication issues in OpenShift ephemeral namespaces (platform role child relationships, principals, permissions). Use when debugging ephemeral envs, crc-eph, missing SpiceDB tuples, empty principals, or Postgres vs Kessel mismatches.
Run SQL queries against RBAC database in stage or prod using gabi
Query relationships in SpiceDB/Kessel via the RBAC relations API
Run Zed permission checks against SpiceDB in Kessel stage. Use when checking RBAC permissions in SpiceDB, verifying group membership, workspace access for users, or running zed permission check/lookup-resources against stage.