mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 02:31:18 -03:00
tests: minimum python version validation for user facing scripts
Adds [`Vermin`](https://github.com/netromdk/vermin) to make sure our user facing Python scripts conform to the proper minimum Python version requirements. The tool parses Python code into an AST and checks it against a database of rules covering Python 2.0-3.13. Testing Python version compatibility is tricky because most issues only show up at runtime. Type annotations like `str | None` (Python 3.10+) compile just fine (under pyc) and they don't throw an exception until you actually call the relevant function. This makes it hard to catch compatibility bugs without running the code (through all possible execution paths) on every Python version. Signed-off-by: seg6 <hi@seg6.space> Closes #12044
This commit is contained in:
committed by
Johannes Altmanninger
parent
4ef1f993a1
commit
29024806e5
2
.github/actions/install-sphinx/action.yml
vendored
2
.github/actions/install-sphinx/action.yml
vendored
@@ -10,6 +10,8 @@ runs:
|
||||
run: |
|
||||
set -x
|
||||
sudo pip install uv --break-system-packages
|
||||
command -v uv
|
||||
command -v uvx
|
||||
# Check that pyproject.toml and the lock file are in sync.
|
||||
# TODO Use "uv" to install Python as well.
|
||||
: 'Note that --no-managed-python below would be implied but be explicit'
|
||||
|
||||
Reference in New Issue
Block a user