forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (23 loc) · 776 Bytes
/
lint.yml
File metadata and controls
26 lines (23 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Lint
on: [push, pull_request]
jobs:
lint-editorconfig:
runs-on: ubuntu-latest
name: Lint for editorconfig violations
steps:
- name: Checkout the repository
uses: actions/checkout@v3
# Enablement of https://pre-commit.ci is desirable as it also
# enable auto-fixes for formatting violations. Still we still want to run
# our own GitHub action, just in case the external service becomes
# unavailable.
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install pre-commit
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade pre-commit
- name: Run pre-commit
run: |
pre-commit run --all-files