diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a67e7a6..c6f68e5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,26 +14,27 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" cache: pip - - uses: pre-commit/action@v3.0.0 + - uses: pre-commit/action@v3.0.1 build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.11 - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - python-version: "3.11" - cache: pip - - name: Install dependencies - run: python -m pip install -r requirements.txt - - name: Build - run: make -j3 - - uses: actions/setup-node@v3 + python-version: "3.12" + - uses: astral-sh/setup-uv@v3 + with: + version: "0.4.x" + enable-cache: true + cache-dependency-glob: "**/requirements*.txt" + - run: uv pip install --system -r requirements.txt + - run: make -j3 + - uses: actions/setup-node@v4 with: node-version: "20" cache: yarn diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 04ab6f7..4595a5e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,16 +3,13 @@ ci: autofix_prs: false repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.291 + rev: v0.7.1 hooks: - id: ruff args: - --fix - - repo: https://github.com/psf/black - rev: 23.9.1 - hooks: - - id: black + - id: ruff-format - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.3 + rev: v3.1.0 hooks: - id: prettier diff --git a/Makefile b/Makefile index 2621643..18aceeb 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ -YEAR := 2023 +YEAR := 2024 DATA_DIR := data/${YEAR} OUT_DIR := out/${YEAR} -DOCUMENT_ID_FI := 1sycmd6DGqHj9-0k6D8HclzlRghxqoVaBZNSZye1Jdbg -DOCUMENT_ID_EN := 1pmrQWsja3wRVF02PyEGO2F_CgttobTbxGUGjQ5K4H4Y +DOCUMENT_ID_FI := 1dvyVEJkn3_osBeKGIlhKmid671jjH7zYgcyH1BjiGF8 +DOCUMENT_ID_EN := 1o1uakk1pkoUCtx2OGJhLclxt_uraYA-uK3DH8yCYHN4 XLSX_URL_FI := https://docs.google.com/spreadsheets/d/$(DOCUMENT_ID_FI)/export?format=xlsx TSV_URL_FI := https://docs.google.com/spreadsheets/d/$(DOCUMENT_ID_FI)/export?format=tsv XLSX_URL_EN := https://docs.google.com/spreadsheets/d/$(DOCUMENT_ID_EN)/export?format=xlsx diff --git a/out/index.html b/out/index.html index 53cf8e9..8382a9e 100644 --- a/out/index.html +++ b/out/index.html @@ -14,6 +14,7 @@