From 4f8e1117293d6d6546c24bc78eb6f916096fd76b Mon Sep 17 00:00:00 2001 From: Pavel Lutskov Date: Sun, 12 Sep 2021 12:39:26 +0200 Subject: [PATCH] Add pyflakes check (#3) Reviewed-on: https://git.deguo.duckdns.org/pavel/argclass/pulls/3 Co-authored-by: Pavel Lutskov Co-committed-by: Pavel Lutskov --- .drone.yml | 8 ++++++++ test.py | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 30930f6..ccc753f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,12 +9,19 @@ steps: - black --check --diff --quiet . depends_on: [] + - name: pyflakes + image: alpine/flake8:3.9.2 + commands: + - pyflakes . + depends_on: [] + - name: test-python-3.8 image: python:3.8-slim commands: - python test.py depends_on: - black + - pyflakes - name: test-python-3.9 image: python:3.9-slim @@ -22,3 +29,4 @@ steps: - python test.py depends_on: - black + - pyflakes diff --git a/test.py b/test.py index 325cad8..7f98c3e 100644 --- a/test.py +++ b/test.py @@ -1,4 +1,3 @@ -from argparse import ArgumentError, ArgumentTypeError import unittest from typing import List