Improve Makefile test, add additional checkers

This commit is contained in:
miruka 2019-04-22 09:37:49 -04:00
parent 237d750d47
commit f6ae315fb2
3 changed files with 30 additions and 5 deletions

View File

@ -8,15 +8,22 @@ PIP = pip3
PYLINT = pylint PYLINT = pylint
MYPY = mypy MYPY = mypy
VULTURE = vulture VULTURE = vulture
BANDIT = bandit
PYCYLE = pycycle
CLOC = cloc CLOC = cloc
ARCHIVE_FORMATS = gztar ARCHIVE_FORMATS = gztar
INSTALL_FLAGS = --user --editable INSTALL_FLAGS = --user --editable
PYLINT_FLAGS = --output-format colorized PYLINT_FLAGS = --output-format colorized
MYPY_FLAGS = --ignore-missing-imports MYPY_FLAGS = --ignore-missing-imports
VULTURE_FLAGS = --min-confidence 100 VULTURE_FLAGS = --min-confidence 70
BANDIT_FLAGS =
PYCYLE_FLAGS =
CLOC_FLAGS = --ignore-whitespace CLOC_FLAGS = --ignore-whitespace
LINE = "\033[35m―――――――――――――――――――――――――――――――――――――――――――――――――――――――\033[0m"
.PHONY: all clean dist install upload test .PHONY: all clean dist install upload test
@ -47,10 +54,27 @@ upload: dist
test: test:
- ${PYLINT} ${PYLINT_FLAGS} ${PKG_DIR} *.py @echo
@echo pycycle ${LINE}
@echo
- ${PYCYLE} --source ${PKG_DIR} ${PYCYLE_FLAGS}
@echo
@echo mypy ${LINE}
@echo @echo
- ${MYPY} ${PKG_DIR} ${MYPY_FLAGS} - ${MYPY} ${PKG_DIR} ${MYPY_FLAGS}
@echo @echo
@echo vulture ${LINE}
@echo
- ${VULTURE} ${PKG_DIR} ${VULTURE_FLAGS} - ${VULTURE} ${PKG_DIR} ${VULTURE_FLAGS}
@echo @echo
${CLOC} ${CLOC_FLAGS} ${PKG_DIR} @echo bandit ${LINE}
@echo
- ${BANDIT} ${PKG_DIR} --recursive ${BANDIT_FLAGS}
@echo
@echo pylint ${LINE}
@echo
- ${PYLINT} ${PYLINT_FLAGS} ${PKG_DIR} *.py
@echo
@echo cloc ${LINE}
@echo
- ${CLOC} ${CLOC_FLAGS} ${PKG_DIR}

View File

@ -1,6 +1,5 @@
- Current focus - Current focus
- When clicking on invited room but no multiaccount broadcasting events - When clicking on invited room but no multiaccount broadcasting events
- Sort accounts
- Merge login page - Merge login page
- Refactoring - Refactoring
@ -37,6 +36,7 @@
- Status message and presence - Status message and presence
- Client improvements - Client improvements
- Direct chats category
- On sync, check messages API, if a limited sync timeline was received - On sync, check messages API, if a limited sync timeline was received
- Markdown: don't turn #things into title (space), disable __ syntax - Markdown: don't turn #things into title (space), disable __ syntax
- Push instead of replacing in stack view - Push instead of replacing in stack view
@ -47,6 +47,7 @@
- Proper logoff when closing client - Proper logoff when closing client
- When inviting someone to direct chat, room is "Empty room" until accepted, - When inviting someone to direct chat, room is "Empty room" until accepted,
it should be the peer's display name instead. it should be the peer's display name instead.
- Keep an accounts order
- Missing nio support - Missing nio support
- Forget room - Forget room

View File

@ -82,7 +82,7 @@ Rectangle {
display: bannerButtons.displayMode display: bannerButtons.displayMode
onClicked: { onClicked: {
if (alreadyClicked) { console.log("all"); return } if (alreadyClicked) { return }
iconName = "hourglass" iconName = "hourglass"
alreadyClicked = true alreadyClicked = true