]> git.madduck.net Git - etc/vim.git/blob - .github/workflows/lint.yml

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add parens around implicit string concatenations where it increases readability ...
[etc/vim.git] / .github / workflows / lint.yml
1 name: Lint
2
3 on: [push, pull_request]
4
5 jobs:
6   build:
7     # We want to run on external PRs, but not on our own internal PRs as they'll be run
8     # by the push to the branch. Without this if check, checks are duplicated since
9     # internal PRs match both the push and pull_request events.
10     if:
11       github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
12       github.repository
13
14     runs-on: ubuntu-latest
15
16     steps:
17       - uses: actions/checkout@v3
18
19       - name: Set up latest Python
20         uses: actions/setup-python@v4
21         with:
22           python-version: "*"
23
24       - name: Install dependencies
25         run: |
26           python -m pip install --upgrade pip
27           python -m pip install -e '.[d]'
28           python -m pip install tox
29
30       - name: Run pre-commit hooks
31         uses: pre-commit/action@v3.0.0
32
33       - name: Format ourselves
34         run: |
35           tox -e run_self