From 3e03eaa02cebdff68416be1fa2b1381416e73efe Mon Sep 17 00:00:00 2001 From: Jai Date: Sun, 3 Sep 2023 18:34:55 +0000 Subject: [PATCH 1/2] Remove autofix in ruff check --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 55f59995..c2d9d2a3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: rev: v0.0.286 hooks: - id: ruff - args: [--fix, --exit-non-zero-on-fix, --config, ./pyproject.toml] + args: [--config, ./pyproject.toml] - repo: https://github.com/RobertCraigie/pyright-python rev: v1.1.324 From ef503d21a510e24bd40a007ba1734415057126a6 Mon Sep 17 00:00:00 2001 From: Jai Date: Sun, 3 Sep 2023 18:36:19 +0000 Subject: [PATCH 2/2] Make sure jobs don't run on draft PRs --- .github/workflows/build_env_run_tests.yml | 2 ++ .github/workflows/gpt_pr_review.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/build_env_run_tests.yml b/.github/workflows/build_env_run_tests.yml index f02ecdf4..9372a4ca 100644 --- a/.github/workflows/build_env_run_tests.yml +++ b/.github/workflows/build_env_run_tests.yml @@ -12,6 +12,7 @@ jobs: build_env_pip_pyproject: # checks only for building env using pip and pyproject.toml name: Build env using pip and pyproject.toml runs-on: ubuntu-latest + if: github.event.pull_request.draft == false strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] @@ -38,6 +39,7 @@ jobs: build_env_run_tests: # checks for building env using mamba and runs codebase checks and tests name: Build env and run tests on ${{ matrix.os }} runs-on: ${{ matrix.os }} + if: github.event.pull_request.draft == false strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] diff --git a/.github/workflows/gpt_pr_review.yml b/.github/workflows/gpt_pr_review.yml index 868290e7..70762241 100644 --- a/.github/workflows/gpt_pr_review.yml +++ b/.github/workflows/gpt_pr_review.yml @@ -19,6 +19,7 @@ concurrency: jobs: gpt_pr_review: runs-on: ubuntu-latest + if: github.event.pull_request.draft == false steps: - uses: coderabbitai/ai-pr-reviewer@latest env: