@@ -27,7 +27,8 @@ For application-developer workflows and broader product integration guidance, us
2727 ` <type>(<optional scope>): <description> ` . Common types include ` feat ` ,
2828 ` fix ` , ` docs ` , ` refactor ` , ` test ` , ` ci ` , and ` chore ` . Example:
2929 ` fix(translations): handle empty component slug ` .
30- - Include the GPL-3.0-or-later license header in new Python files.
30+ - Keep new project code under GPL-3.0-or-later and include the repository's
31+ usual copyright and SPDX license header in new Python files.
3132
3233## Documentation expectations
3334
@@ -72,15 +73,18 @@ For application-developer workflows and broader product integration guidance, us
7273- After syncing, prefer ` uv run ... ` for subsequent commands so they use the
7374 virtual environment created in ` .venv ` . If needed, you can also activate it
7475 with ` source .venv/bin/activate ` or invoke tools from ` .venv/bin/ ` .
75- - Prefer ` prek run --all-files ` as the primary linting/formatting command because
76+ - Prefer ` uv run prek run --all-files` as the primary linting/formatting command because
7677 it runs the repository's configured pre-commit framework checks.
7778- ` prek ` is a third-party reimplementation of the ` pre-commit ` tool.
78- - Use ` pytest ` to run the test suite: ` pytest weblate ` . On a fresh checkout,
79+ - Use ` pytest ` to run the test suite: ` uv run pytest ` . On a fresh checkout,
7980 first follow the local test setup in ` docs/contributing/tests.rst `
8081 (` DJANGO_SETTINGS_MODULE=weblate.settings_test ` , ` collectstatic ` , and test
8182 database prerequisites). ` scripts/test-database.sh ` can be sourced to set up
8283 the database connection variables such as ` CI_DB_USER ` , ` CI_DB_PASSWORD ` ,
8384 ` CI_DB_HOST ` , and ` CI_DB_PORT ` .
84- - Use ` pylint ` to lint the Python code: ` pylint weblate/ `
85- - Use ` mypy ` to type check the code: ` mypy weblate/ `
86- - All mentioned linting tools MUST pass.
85+ - Use ` pylint ` to lint the Python code: ` uv run pylint weblate/ scripts/ `
86+ - Use ` mypy ` to type check with the same command as CI:
87+ ` uv run mypy --show-column-numbers weblate scripts/*.py ./*.py | ./scripts/filter-mypy.sh ` .
88+ - New or changed code should not introduce new mypy failures where current
89+ Django typing support makes that practical. Existing non-enforced mypy
90+ findings should not be worsened.
0 commit comments