ci: check style
This commit is contained in:
parent
1889e39b20
commit
6b25989d27
14
.drone.yml
14
.drone.yml
|
@ -5,6 +5,14 @@ type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: check style
|
||||||
|
image: python:3.12-alpine
|
||||||
|
commands:
|
||||||
|
- pip install black isort flake8
|
||||||
|
- black --check .
|
||||||
|
- isort -c .
|
||||||
|
- flake8 .
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: python:3.12-alpine
|
image: python:3.12-alpine
|
||||||
commands:
|
commands:
|
||||||
|
@ -27,3 +35,9 @@ steps:
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- pr
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
|
Loading…
Reference in New Issue