From edfc2af36c13505eb8d6dfcfd5e0b63b19fe08ed Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 13 Jul 2025 23:49:45 +0000 Subject: [PATCH 1/7] Initial plan From 5252ab695a863cda09c9ea39cbbb6fbd05b364ee Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 13 Jul 2025 23:53:19 +0000 Subject: [PATCH 2/7] Create copilot-setup-steps.yml workflow for dependency installation Co-authored-by: lucasrcezimbra <7042915+lucasrcezimbra@users.noreply.github.com> --- .github/workflows/copilot-setup-steps.yml | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/copilot-setup-steps.yml diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml new file mode 100644 index 0000000..3d09216 --- /dev/null +++ b/.github/workflows/copilot-setup-steps.yml @@ -0,0 +1,32 @@ +name: "Copilot Setup Steps" + +on: + workflow_dispatch: + push: + paths: + - .github/workflows/copilot-setup-steps.yml + pull_request: + paths: + - .github/workflows/copilot-setup-steps.yml + +jobs: + copilot-setup-steps: + runs-on: ubuntu-latest + + permissions: + contents: read + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install flit + run: pip install flit + + - name: Install dependencies + run: make install \ No newline at end of file From 5a9114a9ae939317f0ae7196842a7d4dba1dd961 Mon Sep 17 00:00:00 2001 From: Lucas Rangel Cezimbra Date: Sun, 13 Jul 2025 23:55:10 -0300 Subject: [PATCH 3/7] Update copilot-setup-steps.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/copilot-setup-steps.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 3d09216..5b20ec7 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -28,5 +28,12 @@ jobs: - name: Install flit run: pip install flit + - name: Cache pip packages + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ matrix.python-version }} + restore-keys: | + ${{ runner.os }}-pip- - name: Install dependencies run: make install \ No newline at end of file From 4801de275a01076c89219fbe25fc7eecb9316c71 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 14 Jul 2025 02:55:15 +0000 Subject: [PATCH 4/7] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/copilot-setup-steps.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 5b20ec7..d0bf3c8 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -1,5 +1,4 @@ name: "Copilot Setup Steps" - on: workflow_dispatch: push: @@ -8,26 +7,20 @@ on: pull_request: paths: - .github/workflows/copilot-setup-steps.yml - jobs: copilot-setup-steps: runs-on: ubuntu-latest - permissions: contents: read - steps: - name: Checkout code uses: actions/checkout@v4 - - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.12" - - name: Install flit run: pip install flit - - name: Cache pip packages uses: actions/cache@v3 with: @@ -36,4 +29,4 @@ jobs: restore-keys: | ${{ runner.os }}-pip- - name: Install dependencies - run: make install \ No newline at end of file + run: make install From d865d565f2aa62ecff83c17b38ad937d3a05024a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 14 Jul 2025 02:59:22 +0000 Subject: [PATCH 5/7] Remove unnecessary flit installation step Co-authored-by: lucasrcezimbra <7042915+lucasrcezimbra@users.noreply.github.com> --- .github/workflows/copilot-setup-steps.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index d0bf3c8..5071660 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -19,8 +19,6 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.12" - - name: Install flit - run: pip install flit - name: Cache pip packages uses: actions/cache@v3 with: From 9bf8cab27166c0a25e057914aab2151f9e880d63 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 14 Jul 2025 10:59:00 +0000 Subject: [PATCH 6/7] Changes before error encountered Co-authored-by: lucasrcezimbra <7042915+lucasrcezimbra@users.noreply.github.com> --- .github/workflows/copilot-setup-steps.yml | 9 ++------- Makefile | 4 +++- pyproject.toml | 3 +++ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 5071660..f27dce0 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -19,12 +19,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.12" - - name: Cache pip packages - uses: actions/cache@v3 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ matrix.python-version }} - restore-keys: | - ${{ runner.os }}-pip- + - name: Install flit + run: pip install flit - name: Install dependencies run: make install diff --git a/Makefile b/Makefile index 2d0f4a8..fb62c1c 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,9 @@ .DEFAULT_GOAL := build install: # Install dependencies - flit install --deps develop --symlink + flit install --deps develop --symlink --extras dev + pre-commit install + pre-commit install-hooks fmt format: # Run code formatters isort --profile black . diff --git a/pyproject.toml b/pyproject.toml index b4de358..b0fdce3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,6 +55,9 @@ test = [ "pytest-cov", "pytest-django", ] +dev = [ + "pre-commit", +] From d067b2edeb813d79b6c5dfec89a20167a0d489fc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 14 Jul 2025 11:27:35 +0000 Subject: [PATCH 7/7] Remove Python 3.8 from CI matrix due to end-of-life Co-authored-by: lucasrcezimbra <7042915+lucasrcezimbra@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f151da0..04b3434 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5