Files

18 lines
710 B
Markdown

# new-python
## Testing
- Baseline: `just test` (wraps `pipenv run pytest`)
- Single test: `just test tests/test_file.py::test_name`
## Git
- Push to origin after every commit.
## Quality gate
- Run `just ci` (fmt-check, lint, test) before staging any changes.
- The pre-commit hook is versioned at `hooks/pre-commit`; install it with `just install-hooks`. It re-runs `just ci` at commit time and fails closed if `just` is unavailable.
- Tool config: `pyproject.toml` (black, isort, pylint). Fix mode: `just fmt`.
## Layout
- Flat layout, no packaging step: root `conftest.py` exists only to put the repo root on sys.path for tests.
- Application entrypoints belong in a `bin/` directory at the repo root.