Skip to content

Commit cb09e5c

Browse files
authored
repo: Add basic linting (#4)
Signed-off-by: Ryan Northey <ryan@synca.io>
1 parent 9528fa8 commit cb09e5c

3 files changed

Lines changed: 1206 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lint
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
push:
9+
branches:
10+
- main
11+
12+
concurrency:
13+
group: >-
14+
${{ github.event.inputs.head_ref || github.run_id }}
15+
16+
17+
jobs:
18+
lint:
19+
runs-on: ubuntu-24.04
20+
if: github.repository_owner == 'envoyproxy'
21+
steps:
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
24+
with:
25+
python-version: "3.12"
26+
- run: |
27+
pip install -r ./.github/workflows/requirements.txt
28+
envoy.code.check . -c glint python_flake8 shellcheck yamllint -x single-page-app/_github-clusters.yml

.github/workflows/requirements.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
aiohttp>=3.11.6
2+
envoy.code.check
3+
yarl>=1.17.2

0 commit comments

Comments
 (0)