WUT_Computer_Science/Programming/PORR
Krzysztof kuhy Rudnicki 8798105aa1 Grade against 3.14 too, not just run on it
The pre-commit workflow already installs `python-version: "3.x"`, but ruff was
still grading the archive against py310 -- so it kept withholding the pyupgrade
and type-checking fixes that only become safe at the newer target.
`pin_ci_python.py` rewrites the knob.

The 17 findings that appeared are what the stale target was hiding:
`datetime.timezone.utc` where `datetime.UTC` is now correct (UP017), and 14
imports used only in annotations that belong under `TYPE_CHECKING` (TC002,
TC003) -- safe here precisely because 3.14's PEP 649 defers annotation
evaluation, which is the same reason ruff would not offer them at py310.

`ruff check` and `ruff format --check` are clean again, so the zero-findings
state this repo reached earlier today holds at the new target.

Still contradictory and deliberately untouched: the four
`Programming/ERSMS-project/*/Dockerfile` files say `FROM python:3.10-slim`.
They build an archived coursework service against its own era's pinned
dependencies, and nothing in this repo runs them; bumping the base image would
be a rewrite of that project, not a lint-target change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SfnJmxxsZ534AKk16rC2Gr
2026-08-29 11:55:43 +02:00
..
.github/workflows Add 'Programming/PORR/' from commit '0a62d75a828646fb5c8e13f24327fb196fc17c8e' 2026-02-06 22:15:00 +01:00
.vscode Add 'Programming/PORR/' from commit '0a62d75a828646fb5c8e13f24327fb196fc17c8e' 2026-02-06 22:15:00 +01:00
code Grade against 3.14 too, not just run on it 2026-08-29 11:55:43 +02:00
report/first_part Split 19 over-cap LaTeX reports, proving each PDF is unchanged 2026-08-28 19:47:12 +02:00
.gitignore PORR runs in 28s, and three checks so the next pass cannot repeat my mistakes 2026-08-28 20:50:46 +02:00
push_files.sh Add 'Programming/PORR/' from commit '0a62d75a828646fb5c8e13f24327fb196fc17c8e' 2026-02-06 22:15:00 +01:00
README.md Add 'Programming/PORR/' from commit '0a62d75a828646fb5c8e13f24327fb196fc17c8e' 2026-02-06 22:15:00 +01:00
run.sh PORR runs in 28s, and three checks so the next pass cannot repeat my mistakes 2026-08-28 20:50:46 +02:00

cd code

pyenv init

COPY AND PASTE PYENV CONFIGURATION TO YOUR SHELL CONFIG

source ~/.zshrc (or your shell)

pyenv install 3.11

pyenv global 3.11

Ensure that python DID change its version

python --version

python -m venv ./venv

source ./venv/bin/activate

pip install -r requirements.txt

python main.py