Fixed make check for pylint not working on Windows due

F:\Python\python.exe: can't open file '/cygdrive/f/anki/pyenv/Scripts/pylint': [Errno 2] No such file or directory
This commit is contained in:
evandrocoan 2020-03-16 15:53:10 -03:00
parent d6f900647b
commit 07a24c0d42
2 changed files with 10 additions and 10 deletions

View file

@ -33,7 +33,7 @@ PROTODEPS := $(wildcard ../proto/*.proto)
.build/hooks: tools/genhooks.py tools/hookslib.py .build/hooks: tools/genhooks.py tools/hookslib.py
python tools/genhooks.py python tools/genhooks.py
black anki/hooks.py python -m black anki/hooks.py
@touch $@ @touch $@
BUILD_STEPS := .build/run-deps .build/dev-deps .build/py-proto anki/buildinfo.py .build/hooks BUILD_STEPS := .build/run-deps .build/dev-deps .build/py-proto anki/buildinfo.py .build/hooks
@ -47,7 +47,7 @@ check: $(BUILD_STEPS) .build/mypy .build/test .build/fmt .build/imports .build/l
.PHONY: fix .PHONY: fix
fix: $(BUILD_STEPS) fix: $(BUILD_STEPS)
isort $(ISORTARGS) isort $(ISORTARGS)
black $(BLACKARGS) python -m black $(BLACKARGS)
.PHONY: clean .PHONY: clean
clean: clean:
@ -59,7 +59,7 @@ clean:
CHECKDEPS := $(shell ${FIND} anki tests -name '*.py' | grep -v buildinfo.py) CHECKDEPS := $(shell ${FIND} anki tests -name '*.py' | grep -v buildinfo.py)
.build/mypy: $(CHECKDEPS) .build/mypy: $(CHECKDEPS)
mypy anki python -m mypy anki
@touch $@ @touch $@
.build/test: $(CHECKDEPS) .build/test: $(CHECKDEPS)
@ -67,7 +67,7 @@ CHECKDEPS := $(shell ${FIND} anki tests -name '*.py' | grep -v buildinfo.py)
@touch $@ @touch $@
.build/lint: $(CHECKDEPS) .build/lint: $(CHECKDEPS)
pylint -j 0 --rcfile=.pylintrc -f colorized --extension-pkg-whitelist=ankirspy anki tests setup.py python -m pylint -j 0 --rcfile=.pylintrc -f colorized --extension-pkg-whitelist=ankirspy anki tests setup.py
@touch $@ @touch $@
.build/imports: $(CHECKDEPS) .build/imports: $(CHECKDEPS)
@ -75,7 +75,7 @@ CHECKDEPS := $(shell ${FIND} anki tests -name '*.py' | grep -v buildinfo.py)
@touch $@ @touch $@
.build/fmt: $(CHECKDEPS) .build/fmt: $(CHECKDEPS)
black --check $(BLACKARGS) python -m black --check $(BLACKARGS)
@touch $@ @touch $@
# Building # Building

View file

@ -42,7 +42,7 @@ TSDEPS := $(wildcard ts/src/*.ts) $(wildcard ts/scss/*.scss)
.build/hooks: tools/genhooks_gui.py ../pylib/tools/hookslib.py .build/hooks: tools/genhooks_gui.py ../pylib/tools/hookslib.py
python tools/genhooks_gui.py python tools/genhooks_gui.py
black aqt/gui_hooks.py python -m black aqt/gui_hooks.py
@touch $@ @touch $@
BUILD_STEPS := .build/run-deps .build/dev-deps .build/js .build/ui aqt/buildinfo.py .build/hooks .build/i18n BUILD_STEPS := .build/run-deps .build/dev-deps .build/js .build/ui aqt/buildinfo.py .build/hooks .build/i18n
@ -56,7 +56,7 @@ check: $(BUILD_STEPS) .build/mypy .build/test .build/fmt .build/imports .build/l
.PHONY: fix .PHONY: fix
fix: $(BUILD_STEPS) fix: $(BUILD_STEPS)
isort $(ISORTARGS) isort $(ISORTARGS)
black $(BLACKARGS) python -m black $(BLACKARGS)
(cd ts && npm run pretty) (cd ts && npm run pretty)
.PHONY: clean .PHONY: clean
@ -80,7 +80,7 @@ PYLIB := ../pylib
CHECKDEPS := $(shell ${FIND} aqt tests -name '*.py' | grep -v buildinfo.py) CHECKDEPS := $(shell ${FIND} aqt tests -name '*.py' | grep -v buildinfo.py)
.build/mypy: $(CHECKDEPS) .build/qt-stubs .build/mypy: $(CHECKDEPS) .build/qt-stubs
mypy aqt python -m mypy aqt
@touch $@ @touch $@
.build/test: $(CHECKDEPS) .build/test: $(CHECKDEPS)
@ -88,7 +88,7 @@ CHECKDEPS := $(shell ${FIND} aqt tests -name '*.py' | grep -v buildinfo.py)
@touch $@ @touch $@
.build/lint: $(CHECKDEPS) .build/lint: $(CHECKDEPS)
pylint -j 0 --rcfile=.pylintrc -f colorized --extension-pkg-whitelist=PyQt5,ankirspy aqt tests setup.py python -m pylint -j 0 --rcfile=.pylintrc -f colorized --extension-pkg-whitelist=PyQt5,ankirspy aqt tests setup.py
@touch $@ @touch $@
.build/imports: $(CHECKDEPS) .build/imports: $(CHECKDEPS)
@ -96,7 +96,7 @@ CHECKDEPS := $(shell ${FIND} aqt tests -name '*.py' | grep -v buildinfo.py)
@touch $@ @touch $@
.build/fmt: $(CHECKDEPS) .build/fmt: $(CHECKDEPS)
black --check $(BLACKARGS) python -m black --check $(BLACKARGS)
@touch $@ @touch $@
.build/qt-stubs: .build/qt-stubs: