forked from starkware-bitcoin/raito
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (24 loc) · 784 Bytes
/
python-lint.yml
File metadata and controls
31 lines (24 loc) · 784 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
27
28
29
30
31
name: Python Lint and Formatting Check
on: [push, pull_request]
jobs:
lint:
name: Lint and Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 black
- name: Lint with flake8
run: |
flake8 scripts/ --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 scripts/ --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
- name: Check code formatting with black
run: |
black --check scripts/