-
Notifications
You must be signed in to change notification settings - Fork 34
35 lines (32 loc) · 1019 Bytes
/
lint.yml
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
27
28
29
30
31
32
33
34
35
name: Lint
on:
push:
branches:
- main
pull_request: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Lint Dependencies
run: |
pip install -r test-requirements.txt --no-cache-dir
sudo wget -O /usr/local/bin/buildifier https://github.com/bazelbuild/buildtools/releases/download/4.0.1/buildifier-linux-amd64
sudo chmod +x /usr/local/bin/buildifier
- name: Run PyFlakes
run: pyflakes larq_compute_engine
- name: Black code style
run: black larq_compute_engine --check --target-version py36
- name: clang-format lint
uses: DoozyX/clang-format-lint-action@v0.16
with:
clangFormatVersion: 12
- name: Lint bazel files
run: buildifier -mode=check -r ./
- name: Type check with PyType
run: pytype --jobs auto