Skip to content

Commit 223e1d1

Browse files
committed
Merging pull request 152
Signed-off-by: Lukáš Doktor <ldoktor@redhat.com> * github.com:autotest/aexpect: Makefile: Add python black style check Python black style fixes remote_door: Remove unneeded quotation Makefile: Use pip to deploy aexpect Makefile: Use pytest to run tests
2 parents a006476 + 05093a6 commit 223e1d1

20 files changed

+1702
-800
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
PYTHON=$(shell which python 2>/dev/null || which python3 2>/dev/null)
2-
PYTHON_DEVELOP_ARGS=$(shell if ($(PYTHON) setup.py develop --help 2>/dev/null | grep -q '\-\-user'); then echo "--user"; else echo ""; fi)
32
DESTDIR=/
43
BUILDIR=$(CURDIR)/debian/aexpect
54
PROJECT=aexpect
@@ -73,9 +72,10 @@ rpm-release: srpm-release
7372
mock -r $(MOCK_CONFIG) --resultdir BUILD/RPM -D "rel_build 1" --rebuild BUILD/SRPM/python-aexpect-$(VERSION)-*.src.rpm
7473

7574
check: clean
76-
inspekt checkall --disable-lint R0917,R0205,W4901,W0703,W0511 --exclude .venv*
77-
$(PYTHON) setup.py develop $(PYTHON_DEVELOP_ARGS)
78-
$(PYTHON) setup.py test
75+
inspekt checkall --disable-lint R0917,R0205,R0801,W4901,W0703,W0511 --disable-style E203,E501,E265,W601,E402 --exclude .venv*
76+
$(PYTHON) -m black --line-length 79 --check -- $(shell git ls-files -- "*.py")
77+
$(PYTHON) -m pip install -e .
78+
$(PYTHON) -m pytest tests
7979

8080
clean:
8181
$(PYTHON) setup.py clean

0 commit comments

Comments
 (0)