ci: implement linter in through github-actions
This commit is contained in:
parent
5f52af95dc
commit
c72d399a10
4
.flake8
4
.flake8
|
@ -1,2 +1,6 @@
|
|||
[flake8]
|
||||
extend-ignore = E501,E265,W605
|
||||
max-line-lenght = 100
|
||||
exclude = jlc_kicad_tools.egg-info/*
|
||||
show_source = True
|
||||
statistics = True
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
name: Tests and Checks
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
checks:
|
||||
runs-on: "ubuntu-latest"
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['pypy-3.7']
|
||||
os: ["ubuntu-latest"]
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
pip install -r test-requirements.txt
|
||||
|
||||
- name: Conforming code
|
||||
run: |
|
||||
flake8 --config .flake8 .
|
|
@ -0,0 +1 @@
|
|||
flake8==3.9.1
|
Loading…
Reference in New Issue