Add repo config and python project template
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# new_python
|
||||
|
||||
## Testing
|
||||
- Baseline: `just test` (wraps `pipenv run pytest`)
|
||||
- Single test: `pipenv run pytest 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: `.pylintrc` (pylint), `pyproject.toml` (black, isort). 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.
|
||||
Reference in New Issue
Block a user