mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-11-10 18:27:10 +01:00
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 |
||
|---|---|---|
| .. | ||
| linear_algebra_utils.py | ||
| main.py | ||
| matrix_generator.py | ||
| nemeth12.mat | ||
| poli3.mat | ||
| processing_type.py | ||
| README.md | ||
| requirements.txt | ||
| richardson_method.py | ||
| richardson_mpi.py | ||
| richardson_problem.py | ||
| spd_2.npz | ||
| spd_5.npz | ||
| spd_10.npz | ||
| spd_50.npz | ||
| spd_100.npz | ||
| spd_300.npz | ||
| spd_500.npz | ||
| spd_750.npz | ||
| spd_1000.npz | ||
| tests.py | ||
| threads_indep_old.py | ||
| threads_indep.py | ||
| threads_too_simple.py | ||
| time_measurement.py | ||
Download matrices
poli3.npz matrice
nemeth12.npz matrice
spd_10000.npz matrice
Those link will expire on 24-02-2024
Put the matrice in code folder
Create environment
pyenv virtualenv porr
Activate environment
pyenv activate porr
Install requirements
pip install -r requirements.txt