Makefile, MyPy error fix
This commit is contained in:
parent
e2eb87994d
commit
467fbf6ef7
2 changed files with 18 additions and 1 deletions
16
Makefile
Normal file
16
Makefile
Normal file
|
@ -0,0 +1,16 @@
|
|||
build:
|
||||
python -m build
|
||||
|
||||
upload:
|
||||
python -m twine upload dist/*
|
||||
|
||||
clean:
|
||||
rm -rf dist/
|
||||
rm -rf showdialog/__pycache__/
|
||||
|
||||
check:
|
||||
python -m mypy .
|
||||
python -m pylint -j 4 ./showdialog
|
||||
|
||||
format:
|
||||
python -m autopep8 -r --in-place ./showdialog
|
|
@ -1,10 +1,11 @@
|
|||
"""Simple module for showing GTK dialog"""
|
||||
|
||||
from typing import Union, Optional, Tuple
|
||||
|
||||
import gi # type: ignore
|
||||
gi.require_version('Gtk', '3.0')
|
||||
|
||||
from gi.repository import Gtk # type: ignore
|
||||
from typing import Union, Optional, Tuple # type: ignore
|
||||
|
||||
TxtTuple = Tuple[Optional[str], bool]
|
||||
TxtType = Union[TxtTuple, Optional[str]]
|
||||
|
|
Loading…
Add table
Reference in a new issue