mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 23:37:18 +00:00
install types for mypy
This commit is contained in:
parent
c90e20587e
commit
b8036649ab
7
Makefile
7
Makefile
@ -23,8 +23,7 @@ archive_directory: $(TARGET_FILES)
|
|||||||
archlinux: archive
|
archlinux: archive
|
||||||
sed -i "s/pkgver=[0-9.]*/pkgver=$(VERSION)/" package/archlinux/PKGBUILD
|
sed -i "s/pkgver=[0-9.]*/pkgver=$(VERSION)/" package/archlinux/PKGBUILD
|
||||||
|
|
||||||
check: clean
|
check: clean mypy
|
||||||
cd src && mypy --implicit-reexport --strict -p "$(PROJECT)"
|
|
||||||
find "src/$(PROJECT)" "tests/$(PROJECT)" -name "*.py" -execdir autopep8 --exit-code --max-line-length 120 -aa -i {} +
|
find "src/$(PROJECT)" "tests/$(PROJECT)" -name "*.py" -execdir autopep8 --exit-code --max-line-length 120 -aa -i {} +
|
||||||
cd src && pylint --rcfile=../.pylintrc "$(PROJECT)"
|
cd src && pylint --rcfile=../.pylintrc "$(PROJECT)"
|
||||||
|
|
||||||
@ -35,6 +34,10 @@ clean:
|
|||||||
directory: clean
|
directory: clean
|
||||||
mkdir "$(PROJECT)"
|
mkdir "$(PROJECT)"
|
||||||
|
|
||||||
|
mypy:
|
||||||
|
cd src && echo y | mypy --implicit-reexport --strict -p "$(PROJECT)" --install-types || true
|
||||||
|
cd src && mypy --implicit-reexport --strict -p "$(PROJECT)"
|
||||||
|
|
||||||
push: archlinux
|
push: archlinux
|
||||||
git add package/archlinux/PKGBUILD src/ahriman/version.py
|
git add package/archlinux/PKGBUILD src/ahriman/version.py
|
||||||
git commit -m "Release $(VERSION)"
|
git commit -m "Release $(VERSION)"
|
||||||
|
Loading…
Reference in New Issue
Block a user