Update template config: pylint in pyproject, just test args, python 3.12.4 pin

This commit is contained in:
jay
2026-11-09 13:18:04 -05:00
parent 041a9f3943
commit c5522cc649
11 changed files with 30 additions and 62 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
# new_python
# new-python
## 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.