Add CI checks, closes #6
This commit is contained in:
parent
76b001be8f
commit
83ed0c4661
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: flake8
|
||||
image: python:3-alpine
|
||||
depends_on:
|
||||
- clone
|
||||
commands:
|
||||
- pip install -r requirements-dev.txt
|
||||
- flake8 .
|
||||
|
||||
- name: isort
|
||||
image: python:3-alpine
|
||||
depends_on:
|
||||
- clone
|
||||
commands:
|
||||
- pip install -r requirements-dev.txt
|
||||
- isort --check --diff .
|
||||
|
||||
- name: mypy
|
||||
image: python:3-alpine
|
||||
depends_on:
|
||||
- clone
|
||||
commands:
|
||||
- pip install -r requirements-dev.txt
|
||||
- mypy .
|
|
@ -0,0 +1,5 @@
|
|||
[flake8]
|
||||
exclude=build,.cache,.eggs,.git
|
||||
# Override the errors that Flake8 ignores by default to lint very hard.
|
||||
# Only ignore W503, which is deprecated and conflicts with W504.
|
||||
ignore=W503
|
|
@ -0,0 +1,4 @@
|
|||
flake8~=3.9
|
||||
isort>=5.9
|
||||
mypy~=0.910
|
||||
types-requests==2.25.0
|
|
@ -0,0 +1,2 @@
|
|||
requests~=2.22
|
||||
xmltodict==0.12
|
Loading…
Reference in New Issue