Skip to content

Commit

Permalink
build: clean up build, exclude venv + build from files
Browse files Browse the repository at this point in the history
  • Loading branch information
niftynei committed Sep 9, 2022
1 parent b8e3f0d commit 9a04513
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
black . --check --diff
- name: flake8 check
run: |
flake8 --ignore=E501,E731,W503
make check-flake8
- name: Test with pytest
run: |
pytest tests
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /usr/bin/make

PYTHONFILES := $(shell find * -name '*.py')
PYTHONFILES := $(shell find * ! -path "build/*" ! -path "venv/*" -name '*.py')
POSSIBLE_PYTEST_NAMES=pytest-3 pytest3 pytest
PYTEST := $(shell for p in $(POSSIBLE_PYTEST_NAMES); do if type $$p > /dev/null; then echo $$p; break; fi done)
TEST_DIR=tests
Expand All @@ -16,7 +16,7 @@ check: check-pytest-found
check-source: check-fmt check-flake8 check-mypy check-internal-tests

check-flake8:
flake8 --ignore=E501,E731,W503
flake8 --ignore=E501,E731,W503 --exclude=venv\/,build\/

check-mypy:
mypy --ignore-missing-imports --disallow-untyped-defs --disallow-incomplete-defs $(PYTHONFILES)
Expand Down

0 comments on commit 9a04513

Please sign in to comment.