Commit Graph
23 Commits
Author SHA1 Message Date
David Sangrey a9638f168e Bump Python Version to 3.14 2026-06-01 18:03:10 -04:00
David Sangrey ec67b434d3 [Minor] Reduce Privilege Request for Checking Same User 2025-11-09 15:25:51 -05:00
David Sangrey f1c180caf1 [#2113] Update Python Version to 3.13 2025-11-09 12:43:32 -05:00
David Sangrey 84538c88e9 [Minor] Update Winsparkle Ver, Remove UwU
Also clarifies an import for importlib and fixes a pre-commit hook
2025-04-01 23:27:13 -04:00
David Sangrey f961c605d9 [Minor] Update PreConfig, Requirements 2025-04-01 23:14:18 -04:00
David Sangrey edf5e5c4ef [2367] Remove pkg_resources 2025-02-11 16:07:28 -05:00
Athanasius 5064b10744 Bring in scripts/pip_rev_deps.py
* This finds the pip-installed modules that depend on the specified module.
  Handy for cleaning things up.
* Leads to needing types-pkg-resources for mypy (and via pre-commit).
2022-12-23 14:48:21 +00:00
Athanasius 204ded5b10 pre-commit: Add types-urllib3 to additional_dependencies
It's in `pip freeze | grep types`, so might as well be explicit.
2022-12-23 14:46:55 +00:00
Athanasius 98527e7aa0 pre-commit: Bump mypy to current latest version
* The older version didn't like `check_untyped_defs = True` in .mypy.ini.
* Trying `-repo: local` lead to an error about config options.
* We really need a way to have this track the non-pre-commit version of mypy.
2022-12-16 13:24:50 +00:00
Athanasius fa8bbe8fa4 Python: Bump to version 3.11.1, still 32-bit
Build tested, both .exe files work from `dist.win32` directory.
2022-12-14 11:47:07 +00:00
Athanasius 04f49dad4f pre-commit: Update flake8 repo URL
We're using our local version *anyway*, but update this in case we decide
to switch.
2022-11-15 10:22:36 +00:00
Athanasius ac7aefbd3e pre-commit: Fix safety invocation
For some reason this was complaining about file names being passed in by
pre-commit when `requirements-dev.txt` and `requirements.txt` were the two
changed files.

Explicitly passing them in `files:` config avoids this.
2022-02-12 18:23:47 +00:00
Athanasius 67c2077962 pre-commit: pre-commit runs mypy *in its own venv*
As such it doesn't have access to any extra modules you installed for your
program, or manually running `mypy <file>`.

So, leverage `additional_dependencies` to list anything that mypy ends
up complaining "that's not installed". Ref:

plugins\eddn.py:40: error: Library stubs not installed for "requests" (or incompatible with Python 3.10)
plugins\eddn.py:40: note: Hint: "python3 -m pip install types-requests"
plugins\eddn.py:40: note: (or run "mypy --install-types" to install all missing stub packages)
plugins\eddn.py:40: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)
2022-02-11 16:32:23 +00:00
Athanasius 4f0ecb0289 .pre-commit-config: .mypy.ini sets these options 2022-02-09 14:48:56 +00:00
Athanasius 5e47502384 pre-commit: Updated versions & include check-yaml now 2022-02-07 20:41:47 +00:00
Athanasius 3a28945ad5 Python 3.10: Change version number in most of our local files
The requirements-dev.txt change for py2exe will be in a separate commit.
2021-12-03 11:17:18 +00:00
Athanasius 3f3e007305 pre-commit: *Ensure* the LANG_comments always runs 2021-06-07 16:39:19 +01:00
Athanasius 9e8bd1926b pre-commit: Run scripts/find_localised_strings.py
This will report on any missing LANG comments at commit time. NB: set to
run on all files in case of L10n/en.template changes.
2021-06-07 16:37:53 +01:00
Athanasius f2b89691c6 Python: Use 3.9.3 2021-04-12 08:31:46 +01:00
Athanasius 3997dbab3a update pre-commit 2021-04-01 14:45:50 +01:00
Athanasius 5b7876a22b pre-commit: Try local flake8 2021-04-01 14:45:43 +01:00
Athanasius a4422c2065 pre-commit: Update config as per cleanup/config.py 2021-04-01 14:45:43 +01:00
Athanasius f5fad1c23d Add .mypy.ini and .pre-commit-config.yaml files
* With mypy we need to set some options for sane output.
* With pre-commit this defines the checks it performs.
2020-09-28 11:16:25 +01:00