Skip to content

Commit

Permalink
Merge pull request #8 from kumaranvpl/dummy
Browse files Browse the repository at this point in the history
Another dummy commit
  • Loading branch information
kumaranvpl authored Nov 26, 2024
2 parents 8f99912 + a0de3c5 commit 766e603
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 10 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/pr_lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run linting and commit changes

on:
pull_request_target:
types:
- opened
- synchronize
- ready_for_review

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: write

jobs:
pre-commit-check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
env:
SKIP: "docs"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Set $PY environment variable
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/[email protected]
continue-on-error: true
with:
extra_args: --hook-stage manual --all-files
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "fix: add missing pre-commit changes"
8 changes: 0 additions & 8 deletions .github/workflows/pr_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ jobs:
path: ~/.cache/pre-commit
key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/[email protected]
continue-on-error: true
with:
extra_args: --hook-stage manual --all-files
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "fix: add missing pre-commit changes"
- uses: pre-commit/[email protected]

test-basic:
if: github.event.pull_request.draft == false
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ repos:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: package.lock.json
stages: [pre-commit, pre-merge-commit, manual]
4 changes: 2 additions & 2 deletions faststream/dummy.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

class Dummy:
def __init__(self):
def __init__(self) -> None:
pass

def dummy_method(self) -> str:
return "dummy"

0 comments on commit 766e603

Please sign in to comment.