From 1fa9caa983b3a183e6547ec14f0e40970512e91a Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Tue, 3 Feb 2026 09:52:56 +0100 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=91=B7=20Run=20mypy=20by=20pre-commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5c671f6..b66ebed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,3 +26,11 @@ repos: require_serial: true language: unsupported types: [python] + + - id: local-mypy + name: mypy check + entry: uv run mypy src tests + require_serial: true + language: unsupported + pass_filenames: false + types: [python] From 56fdfd5eee0529244d5e62172611d5ae34606e11 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Tue, 3 Feb 2026 09:53:25 +0100 Subject: [PATCH 2/5] Delete `lint.yml` workflow --- .github/workflows/lint.yml | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index fb6ca08..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Lint - -on: - push: - branches: - - main - pull_request: - types: - - opened - - synchronize - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - name: Set up Python - uses: actions/setup-python@v6 - with: - python-version-file: "pyproject.toml" - - name: Install uv - uses: astral-sh/setup-uv@v7 - - name: Install Dependencies - run: uv sync --locked --all-extras --dev - - name: Lint - run: uv run --no-sync scripts/lint.sh - - # https://github.com/marketplace/actions/alls-green#why - lint-alls-green: # This job does nothing and is only used for the branch protection - if: always() - needs: - - lint - runs-on: ubuntu-latest - steps: - - name: Decide whether the needed jobs succeeded or failed - uses: re-actors/alls-green@release/v1 - with: - jobs: ${{ toJSON(needs) }} From 4d820d8dbf5a170729eab9e75bd1715bcd32552b Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Tue, 3 Feb 2026 09:59:05 +0100 Subject: [PATCH 3/5] Trigger mypy run --- src/fastapi_cloud_cli/trigger.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/fastapi_cloud_cli/trigger.py diff --git a/src/fastapi_cloud_cli/trigger.py b/src/fastapi_cloud_cli/trigger.py new file mode 100644 index 0000000..37901dc --- /dev/null +++ b/src/fastapi_cloud_cli/trigger.py @@ -0,0 +1 @@ +a: str = 10 From 43420ef2771f883dcb3dc35c621fd7c0cf5d47a3 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Tue, 3 Feb 2026 10:02:40 +0100 Subject: [PATCH 4/5] Revert "Trigger mypy run" This reverts commit 4d820d8dbf5a170729eab9e75bd1715bcd32552b. --- src/fastapi_cloud_cli/trigger.py | 1 - 1 file changed, 1 deletion(-) delete mode 100644 src/fastapi_cloud_cli/trigger.py diff --git a/src/fastapi_cloud_cli/trigger.py b/src/fastapi_cloud_cli/trigger.py deleted file mode 100644 index 37901dc..0000000 --- a/src/fastapi_cloud_cli/trigger.py +++ /dev/null @@ -1 +0,0 @@ -a: str = 10 From 54e395a9e35532dc13159a506a403a2a8bd173c0 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Tue, 3 Feb 2026 10:25:08 +0100 Subject: [PATCH 5/5] Remove `types: [python]` from mypy hook in `pre-commit.yaml` --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b66ebed..8525fd4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,4 +33,3 @@ repos: require_serial: true language: unsupported pass_filenames: false - types: [python]