summaryrefslogtreecommitdiff
path: root/maint/python-lints
Commit message (Collapse)AuthorAgeFilesLines
* chutney scripts: opt into strict typecheckingJim Newsome2026-03-091-0/+6
|
* python-lints: work around mypy import bug 20962Jim Newsome2026-03-031-4/+17
| | | | | | | | | | | | | | When analyzing a script, mypy *should* look in the script's directory for imports, but appears not to do so when the script doesn't have a .py extension: https://github.com/python/mypy/issues/20962 We can work around that by adding the script's directory to MYPYPATH. With that workaround, we no longer need to add OTHER_PYTHON files to every invocation when analyzing scripts. That also worked around the problem in some cases, but experimentally not when the script is more than one subdirectory deep (?!)
* Rename maint/list_crates to kebab-caseIan Jackson2026-01-201-1/+1
| | | | | | | | | | Swap the symlink direction: now we have list_crates.py (the python module) with a symlink list-crates pointing to it. This allows the module to be imported but the command to be kebab case. The checking tooling doesn't understand this special arrangement. Lots of references to update!
* python-lints script to run flake8, black, and mypy.Nick Mathewson2024-10-281-0/+204
The script is a bit tricky because it needs to set arguments correctly, use the right dependencies, treat packages differently from scripts, and find all of the packages and scripts in our repository.