-
Notifications
You must be signed in to change notification settings - Fork 19
40 lines (38 loc) · 1006 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
36
37
38
39
40
name: lint
on:
pull_request:
branches: [ "**" ]
push:
branches: [ master ]
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: pip3 install flake8
- run: >
flake8 --exclude __pycache__,.pyenv
--max-line-length=88
--ignore=E203,E266,E501,W503
working-directory: analysis
- run: >
flake8 --exclude openssl
--max-line-length=88
--ignore=E203,E266,E501,W503
working-directory: cryptolib/common
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: pip3 install black
- run: |
black --version
black --check --diff .
clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install clang-format
- run: |
clang-format -style="{IndentWidth: 4}" --dry-run --Werror -i *.cpp *.H
working-directory: pintool