Improve Makefile test, add additional checkers
This commit is contained in:
parent
237d750d47
commit
f6ae315fb2
30
Makefile
30
Makefile
|
@ -8,15 +8,22 @@ PIP = pip3
|
|||
PYLINT = pylint
|
||||
MYPY = mypy
|
||||
VULTURE = vulture
|
||||
BANDIT = bandit
|
||||
PYCYLE = pycycle
|
||||
CLOC = cloc
|
||||
|
||||
ARCHIVE_FORMATS = gztar
|
||||
INSTALL_FLAGS = --user --editable
|
||||
PYLINT_FLAGS = --output-format colorized
|
||||
MYPY_FLAGS = --ignore-missing-imports
|
||||
VULTURE_FLAGS = --min-confidence 100
|
||||
VULTURE_FLAGS = --min-confidence 70
|
||||
BANDIT_FLAGS =
|
||||
PYCYLE_FLAGS =
|
||||
CLOC_FLAGS = --ignore-whitespace
|
||||
|
||||
LINE = "\033[35m―――――――――――――――――――――――――――――――――――――――――――――――――――――――\033[0m"
|
||||
|
||||
|
||||
.PHONY: all clean dist install upload test
|
||||
|
||||
|
||||
|
@ -47,10 +54,27 @@ upload: dist
|
|||
|
||||
|
||||
test:
|
||||
- ${PYLINT} ${PYLINT_FLAGS} ${PKG_DIR} *.py
|
||||
@echo
|
||||
@echo pycycle ${LINE}
|
||||
@echo
|
||||
- ${PYCYLE} --source ${PKG_DIR} ${PYCYLE_FLAGS}
|
||||
@echo
|
||||
@echo mypy ${LINE}
|
||||
@echo
|
||||
- ${MYPY} ${PKG_DIR} ${MYPY_FLAGS}
|
||||
@echo
|
||||
@echo vulture ${LINE}
|
||||
@echo
|
||||
- ${VULTURE} ${PKG_DIR} ${VULTURE_FLAGS}
|
||||
@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}
|
||||
|
|
3
TODO.md
3
TODO.md
|
@ -1,6 +1,5 @@
|
|||
- Current focus
|
||||
- When clicking on invited room but no multiaccount broadcasting events
|
||||
- Sort accounts
|
||||
- Merge login page
|
||||
|
||||
- Refactoring
|
||||
|
@ -37,6 +36,7 @@
|
|||
- Status message and presence
|
||||
|
||||
- Client improvements
|
||||
- Direct chats category
|
||||
- On sync, check messages API, if a limited sync timeline was received
|
||||
- Markdown: don't turn #things into title (space), disable __ syntax
|
||||
- Push instead of replacing in stack view
|
||||
|
@ -47,6 +47,7 @@
|
|||
- Proper logoff when closing client
|
||||
- When inviting someone to direct chat, room is "Empty room" until accepted,
|
||||
it should be the peer's display name instead.
|
||||
- Keep an accounts order
|
||||
|
||||
- Missing nio support
|
||||
- Forget room
|
||||
|
|
|
@ -82,7 +82,7 @@ Rectangle {
|
|||
display: bannerButtons.displayMode
|
||||
|
||||
onClicked: {
|
||||
if (alreadyClicked) { console.log("all"); return }
|
||||
if (alreadyClicked) { return }
|
||||
|
||||
iconName = "hourglass"
|
||||
alreadyClicked = true
|
||||
|
|
Loading…
Reference in New Issue
Block a user