ci: implement linter in through github-actions

This commit is contained in:
Kiara Navarro 2021-04-15 21:29:53 -03:00
parent 5f52af95dc
commit c72d399a10
No known key found for this signature in database
GPG Key ID: CDEFDCA3F6E04955
3 changed files with 34 additions and 0 deletions

View File

@ -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

29
.github/workflows/checks.yml vendored Normal file
View File

@ -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 .

1
test-requirements.txt Normal file
View File

@ -0,0 +1 @@
flake8==3.9.1