From fbc0e11f2bbd6c58252e4f0735858f99c0d5cbf0 Mon Sep 17 00:00:00 2001 From: Frederic Martinsons Date: Sun, 9 May 2021 07:09:58 +0200 Subject: [PATCH] Update lint_python to add test file on bailout Add recursive option for isort and update .gitignore for mypy generated directory Signed-off-by: Frederic Martinsons --- .github/workflows/lint_python.yml | 4 ++-- .gitignore | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 065d1b9..b22e41f 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -11,7 +11,7 @@ jobs: - run: black --check . - run: codespell --quiet-level=2 --skip="*.tap" # --ignore-words-list="" - run: flake8 . --max-line-length=88 --show-source --statistics - - run: isort --check-only --profile black . || true + - run: isort -rc --check-only --profile black . || true - run: pip install junit_xml yamlish - run: mypy --ignore-missing-imports . - run: pytest . || true @@ -19,7 +19,7 @@ jobs: - run: shopt -s globstar && pyupgrade --py36-plus **/*.py - run: safety check - run: | - for FILENAME in test-eslint1 test-eslint2 test-eslint3 test test2 test3; do + for FILENAME in test-eslint1 test-eslint2 test-eslint3 test test2 test3 test-bailout; do echo "Testing ${FILENAME}..." python tap2junit/tap13.py python -m tap2junit -i "test/fixtures/${FILENAME}.tap" -o "test/output/${FILENAME}.xml" diff --git a/.gitignore b/.gitignore index c22be1f..c326dae 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,7 @@ # virtualenv /.venv +.mypy_cache + dist build \ No newline at end of file