Update template config: pylint in pyproject, just test args, python 3.12.4 pin
This commit is contained in:
+3
-3
@@ -1,8 +1,8 @@
|
||||
# {{PKG}}
|
||||
# {{NAME}}
|
||||
|
||||
## Testing
|
||||
- Baseline: `just test` (wraps `pipenv run pytest`)
|
||||
- Single test: `pipenv run pytest tests/test_file.py::test_name`
|
||||
- Single test: `just test tests/test_file.py::test_name`
|
||||
|
||||
## Git
|
||||
- Push to origin after every commit.
|
||||
@@ -10,7 +10,7 @@
|
||||
## 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`.
|
||||
- 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.
|
||||
|
||||
Reference in New Issue
Block a user