X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/47480ca33143b250cb33ba501f201838269173ce..43b53a034c9e3ada9295bf7f93be473b66b74f75:/.vim/bundle/black/.github/workflows/lint.yml diff --git a/.vim/bundle/black/.github/workflows/lint.yml b/.vim/bundle/black/.github/workflows/lint.yml deleted file mode 100644 index 3eaf5785..00000000 --- a/.vim/bundle/black/.github/workflows/lint.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Lint - -on: [push, pull_request] - -jobs: - build: - # We want to run on external PRs, but not on our own internal PRs as they'll be run - # by the push to the branch. Without this if check, checks are duplicated since - # internal PRs match both the push and pull_request events. - if: - github.event_name == 'push' || github.event.pull_request.head.repo.full_name != - github.repository - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Assert PR target is main - if: github.event_name == 'pull_request' && github.repository == 'psf/black' - run: | - if [ "$GITHUB_BASE_REF" != "main" ]; then - echo "::error::PR targeting '$GITHUB_BASE_REF', please refile targeting 'main'." && exit 1 - fi - - - name: Set up latest Python - uses: actions/setup-python@v4 - with: - python-version: "*" - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -e '.[d]' - python -m pip install tox - - - name: Run pre-commit hooks - uses: pre-commit/action@v3.0.0 - - - name: Format ourselves - run: | - tox -e run_self