Skip to content

Commit

Permalink
Update lint_python to add test file on bailout
Browse files Browse the repository at this point in the history
Add recursive option for isort and update .gitignore for mypy generated directory

Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
  • Loading branch information
fmartinsons committed May 9, 2021
1 parent b29784b commit fbc0e11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ 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
- run: pytest --doctest-modules . || true
- 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"
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
# virtualenv
/.venv

.mypy_cache

dist
build

0 comments on commit fbc0e11

Please sign in to comment.