From 7f3b4ade1dbf6b307370749ecd1cedb4554be3a0 Mon Sep 17 00:00:00 2001 From: Dan Guido Date: Fri, 27 Sep 2024 11:30:27 -0400 Subject: [PATCH 1/5] Update FUNDING.json --- FUNDING.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FUNDING.json b/FUNDING.json index 189cf2f95..b356f2a74 100644 --- a/FUNDING.json +++ b/FUNDING.json @@ -6,7 +6,7 @@ }, "drips": { "ethereum": { - "ownedBy": "0x5e2BA02F62bD4efa939e3B80955bBC21d015DbA0" + "ownedBy": "0xc44F30Be3eBBEfdDBB5a85168710b4f0e18f4Ff0" } } } From 429c3045db7f415cc0ea8a428d3e973281b67185 Mon Sep 17 00:00:00 2001 From: Josselin Feist Date: Wed, 2 Oct 2024 11:20:26 +0200 Subject: [PATCH 2/5] Create black_manual.yaml --- .github/workflows/black_manual.yaml | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/black_manual.yaml diff --git a/.github/workflows/black_manual.yaml b/.github/workflows/black_manual.yaml new file mode 100644 index 000000000..e3a79df6e --- /dev/null +++ b/.github/workflows/black_manual.yaml @@ -0,0 +1,39 @@ +name: Manual Black formatting + +on: + workflow_dispatch: # This allows you to manually trigger the workflow + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + format-code: + runs-on: ubuntu-latest + if: github.actor == 'montyly' || github.actor == 'smonicas' # only Josselin or Simone can trigger this + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} # Checkout the branch of the PR + + - name: Set up Python + uses: actions/checkout@v4 + with: + python-version: '3.x' + + - name: Install Black + run: pip install .[dev] + + - name: Run Black and auto-format code + run: black . + + - name: Commit and push changes if formatting occurred + run: | + git config --local user.email "actions@github.com" + git config --local user.name "GitHub Actions" + git add . + git diff-index --quiet HEAD || git commit -m "Auto format code with Black" + git push origin ${{ github.head_ref }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From f18d45053293a6858ae28759da5b54ebb7dbef8a Mon Sep 17 00:00:00 2001 From: Josselin Feist Date: Wed, 2 Oct 2024 11:26:31 +0200 Subject: [PATCH 3/5] Delete .github/workflows/black_manual.yaml --- .github/workflows/black_manual.yaml | 39 ----------------------------- 1 file changed, 39 deletions(-) delete mode 100644 .github/workflows/black_manual.yaml diff --git a/.github/workflows/black_manual.yaml b/.github/workflows/black_manual.yaml deleted file mode 100644 index e3a79df6e..000000000 --- a/.github/workflows/black_manual.yaml +++ /dev/null @@ -1,39 +0,0 @@ -name: Manual Black formatting - -on: - workflow_dispatch: # This allows you to manually trigger the workflow - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - format-code: - runs-on: ubuntu-latest - if: github.actor == 'montyly' || github.actor == 'smonicas' # only Josselin or Simone can trigger this - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} # Checkout the branch of the PR - - - name: Set up Python - uses: actions/checkout@v4 - with: - python-version: '3.x' - - - name: Install Black - run: pip install .[dev] - - - name: Run Black and auto-format code - run: black . - - - name: Commit and push changes if formatting occurred - run: | - git config --local user.email "actions@github.com" - git config --local user.name "GitHub Actions" - git add . - git diff-index --quiet HEAD || git commit -m "Auto format code with Black" - git push origin ${{ github.head_ref }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From cb9757d0ff6a1fa5c4fee0de68a92d0411cda358 Mon Sep 17 00:00:00 2001 From: Josselin Feist Date: Wed, 2 Oct 2024 11:33:45 +0200 Subject: [PATCH 4/5] Create black_auto --- .github/workflows/black_auto | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/black_auto diff --git a/.github/workflows/black_auto b/.github/workflows/black_auto new file mode 100644 index 000000000..4c0dca0c6 --- /dev/null +++ b/.github/workflows/black_auto @@ -0,0 +1,41 @@ +--- +name: Run black (auto) + +defaults: + run: + # To load bashrc + shell: bash -ieo pipefail {0} + +on: + pull_request: + branches: [master, dev] + paths: + - "**/*.py" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + name: Black + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Python 3.8 + uses: actions/setup-python@v5 + with: + python-version: 3.8 + + - name: Install Python dependencies + run: pip install .[dev] + + - name: Run linters + uses: wearerequired/lint-action@v2 + with: + auto_fix: true + black: true + black_auto_fix: true From 3befc968bcda024b9952aeff8b3a17fd427426de Mon Sep 17 00:00:00 2001 From: Josselin Feist Date: Wed, 2 Oct 2024 11:34:18 +0200 Subject: [PATCH 5/5] Rename black_auto to black_auto.yml --- .github/workflows/{black_auto => black_auto.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{black_auto => black_auto.yml} (100%) diff --git a/.github/workflows/black_auto b/.github/workflows/black_auto.yml similarity index 100% rename from .github/workflows/black_auto rename to .github/workflows/black_auto.yml