3 files changed, 13 insertions(+), 21 deletions(-)
A .build.yml
D .drone.yml
D build.yml
A .build.yml => .build.yml +13 -0
@@ 0,0 1,13 @@
+image: ubuntu/latest
+sources:
+- https://git.sr.ht/~tsileo/entries
+packages:
+- python3-dev
+- python3-pip
+tasks:
+- lints: |
+ cd entries
+ pip3 install black flake8 mypy
+ python3 -m black --check .
+ python3 -m flake8 .
+ python3 -m mypy --ignore-missing-imports cli.py
D .drone.yml => .drone.yml +0 -10
@@ 1,10 0,0 @@
-kind: pipeline
-name: default
-steps:
- - name : lint
- image: python:3
- commands:
- - pip install black flake8 mypy
- - black --check .
- - flake8 cli.py
- - mypy --ignore-missing-imports cli.py
D build.yml => build.yml +0 -11
@@ 1,11 0,0 @@
-image: ubuntu/latest
-
-sources:
-- https://git.sr.ht/~tsileo/entries
-tasks:
-- lints: |
- apt-get update && apt-get install -y python3-pip python3-dev && cd /usr/local/bin && ln -s /usr/bin/python3 python && pip3 install --upgrade pip
- pip install black flake8 mypy
- black --check .
- flake8 cli.py
- mypy --ignore-missing-imports cli.py