diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f529be66f..b4e3fce8a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,10 @@ name: Lint -on: [pull_request] +on: + push: + branches: [main] + pull_request: + branches: [main] jobs: lint: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1e09712ab..31df0140b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,6 @@ repos: - id: check-shebang-scripts-are-executable - id: detect-private-key - id: debug-statements - - id: no-commit-to-branch - repo: https://github.com/PyCQA/isort rev: 5.13.2 hooks: