-
Notifications
You must be signed in to change notification settings - Fork 33
31 lines (28 loc) · 990 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
name: Lint
on:
push:
branches:
- master
pull_request: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2.1.2
with:
python-version: 3.8
- name: Install Lint Dependencies
run: |
pip install pyflakes==2.2.0 black==20.8b1
sudo wget -O /usr/local/bin/buildifier https://github.com/bazelbuild/buildtools/releases/download/3.4.0/buildifier
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 --exclude 'build/|buck-out/|dzzist/|_build/|\.git/|\.hg/|\.mypy_cache/|\.tox/|\.venv/|larq/snapshots/'
- name: clang-format lint
uses: DoozyX/clang-format-lint-action@v0.10
- name: Lint bazel files
run: buildifier -mode=check -r ./