mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-04 20:51:49 +02:00
Expand mypy compliance, ignore unsupported packages
This commit is contained in:
parent
1042c51974
commit
801d98fd05
7 changed files with 22 additions and 9 deletions
|
@ -2,7 +2,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
import click
|
import click
|
||||||
import colorama
|
import colorama # type: ignore
|
||||||
from colorama import Fore, Style # type: ignore
|
from colorama import Fore, Style # type: ignore
|
||||||
|
|
||||||
from dangerzone import container
|
from dangerzone import container
|
||||||
|
|
|
@ -7,7 +7,7 @@ from typing import Optional
|
||||||
import click
|
import click
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
import colorama
|
import colorama # type: ignore
|
||||||
|
|
||||||
from dangerzone.gui.application import Application
|
from dangerzone.gui.application import Application
|
||||||
from dangerzone.gui.gui_common import GuiCommon
|
from dangerzone.gui.gui_common import GuiCommon
|
||||||
|
|
|
@ -4,7 +4,7 @@ import subprocess
|
||||||
import shlex
|
import shlex
|
||||||
import pipes
|
import pipes
|
||||||
from PySide6 import QtGui
|
from PySide6 import QtGui
|
||||||
from colorama import Fore
|
from colorama import Fore # type: ignore
|
||||||
|
|
||||||
from dangerzone.common import Common
|
from dangerzone.common import Common
|
||||||
from dangerzone.gui import Application
|
from dangerzone.gui import Application
|
||||||
|
|
|
@ -6,7 +6,7 @@ import json
|
||||||
import shutil
|
import shutil
|
||||||
from PySide6 import QtCore, QtGui, QtWidgets
|
from PySide6 import QtCore, QtGui, QtWidgets
|
||||||
from PySide6.QtGui import QIcon
|
from PySide6.QtGui import QIcon
|
||||||
from colorama import Style, Fore
|
from colorama import Style, Fore # type: ignore
|
||||||
|
|
||||||
import dangerzone.util as dzutil
|
import dangerzone.util as dzutil
|
||||||
from dangerzone.gui import GuiCommon
|
from dangerzone.gui import GuiCommon
|
||||||
|
|
|
@ -11,7 +11,7 @@ import appdirs
|
||||||
|
|
||||||
# If a general-purpose function or constant doesn't depend on anything else in the dangerzone package,
|
# If a general-purpose function or constant doesn't depend on anything else in the dangerzone package,
|
||||||
# then it belongs here.
|
# then it belongs here.
|
||||||
from colorama import Back, Fore, Style
|
from colorama import Back, Fore, Style # type: ignore
|
||||||
|
|
||||||
SYSTEM = platform.system()
|
SYSTEM = platform.system()
|
||||||
|
|
||||||
|
|
20
poetry.lock
generated
20
poetry.lock
generated
|
@ -217,7 +217,7 @@ hook_testing = ["pytest (>=2.7.3)", "execnet (>=1.5.0)", "psutil"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pyinstaller-hooks-contrib"
|
name = "pyinstaller-hooks-contrib"
|
||||||
version = "2022.6"
|
version = "2022.7"
|
||||||
description = "Community maintained hooks for PyInstaller"
|
description = "Community maintained hooks for PyInstaller"
|
||||||
category = "main"
|
category = "main"
|
||||||
optional = false
|
optional = false
|
||||||
|
@ -319,6 +319,14 @@ category = "dev"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.6"
|
python-versions = ">=3.6"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "types-appdirs"
|
||||||
|
version = "1.4.2"
|
||||||
|
description = "Typing stubs for appdirs"
|
||||||
|
category = "dev"
|
||||||
|
optional = false
|
||||||
|
python-versions = "*"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "types-pillow"
|
name = "types-pillow"
|
||||||
version = "9.0.19"
|
version = "9.0.19"
|
||||||
|
@ -381,7 +389,7 @@ testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-
|
||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "1.1"
|
lock-version = "1.1"
|
||||||
python-versions = ">=3.7,<3.11"
|
python-versions = ">=3.7,<3.11"
|
||||||
content-hash = "8f1a0f817e5030647ef2e47b638bdd003766366faa248c3d0ffdd3962eb800d4"
|
content-hash = "5da26ad8f7fd76d25f1acda9cafcefa1409e1d16f23fb03030952b15f5880d10"
|
||||||
|
|
||||||
[metadata.files]
|
[metadata.files]
|
||||||
altgraph = [
|
altgraph = [
|
||||||
|
@ -577,8 +585,8 @@ pyinstaller = [
|
||||||
{file = "pyinstaller-5.1.tar.gz", hash = "sha256:9596c70c860cbce19537354db95b180351959b4cd14a70db6ab1d1432668c313"},
|
{file = "pyinstaller-5.1.tar.gz", hash = "sha256:9596c70c860cbce19537354db95b180351959b4cd14a70db6ab1d1432668c313"},
|
||||||
]
|
]
|
||||||
pyinstaller-hooks-contrib = [
|
pyinstaller-hooks-contrib = [
|
||||||
{file = "pyinstaller-hooks-contrib-2022.6.tar.gz", hash = "sha256:9dc611cf6667301e95384b4a0631b032bbffa16a0688f4cfa014d0c1e751d276"},
|
{file = "pyinstaller-hooks-contrib-2022.7.tar.gz", hash = "sha256:6675634279cfe9e475580fb310c3d557037baefb065e6cb5a69a124361b926fd"},
|
||||||
{file = "pyinstaller_hooks_contrib-2022.6-py2.py3-none-any.whl", hash = "sha256:e38bf9266c57be19647762ee63b012683beb6919c6bc2ecdc66ca174edec44a0"},
|
{file = "pyinstaller_hooks_contrib-2022.7-py2.py3-none-any.whl", hash = "sha256:5fdb97dcae177955db7ab27840cba97b89dc0c7f4fd9142bba0f9b8d8df85c48"},
|
||||||
]
|
]
|
||||||
pyparsing = [
|
pyparsing = [
|
||||||
{file = "pyparsing-3.0.9-py3-none-any.whl", hash = "sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc"},
|
{file = "pyparsing-3.0.9-py3-none-any.whl", hash = "sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc"},
|
||||||
|
@ -655,6 +663,10 @@ typed-ast = [
|
||||||
{file = "typed_ast-1.5.4-cp39-cp39-win_amd64.whl", hash = "sha256:0fdbcf2fef0ca421a3f5912555804296f0b0960f0418c440f5d6d3abb549f3e1"},
|
{file = "typed_ast-1.5.4-cp39-cp39-win_amd64.whl", hash = "sha256:0fdbcf2fef0ca421a3f5912555804296f0b0960f0418c440f5d6d3abb549f3e1"},
|
||||||
{file = "typed_ast-1.5.4.tar.gz", hash = "sha256:39e21ceb7388e4bb37f4c679d72707ed46c2fbf2a5609b8b8ebc4b067d977df2"},
|
{file = "typed_ast-1.5.4.tar.gz", hash = "sha256:39e21ceb7388e4bb37f4c679d72707ed46c2fbf2a5609b8b8ebc4b067d977df2"},
|
||||||
]
|
]
|
||||||
|
types-appdirs = [
|
||||||
|
{file = "types-appdirs-1.4.2.tar.gz", hash = "sha256:2edb1dca35db16eb4c1244ba8502eb046e637dc0e2857117fe148af927ac028f"},
|
||||||
|
{file = "types_appdirs-1.4.2-py3-none-any.whl", hash = "sha256:051a48c3db104d6836954bc17d9608c59a71caf2f7d9b65738225c5f6ed149ef"},
|
||||||
|
]
|
||||||
types-pillow = [
|
types-pillow = [
|
||||||
{file = "types-Pillow-9.0.19.tar.gz", hash = "sha256:bad0de01fd2b6cfdcfcab580fc4025db2b5068e6237707d8f2f4493cd4c4fe16"},
|
{file = "types-Pillow-9.0.19.tar.gz", hash = "sha256:bad0de01fd2b6cfdcfcab580fc4025db2b5068e6237707d8f2f4493cd4c4fe16"},
|
||||||
{file = "types_Pillow-9.0.19-py3-none-any.whl", hash = "sha256:34f8380d9e5367baa075e3ef2961c65908f6b69b9161c2b08feb8937200aa25c"},
|
{file = "types_Pillow-9.0.19-py3-none-any.whl", hash = "sha256:34f8380d9e5367baa075e3ef2961c65908f6b69b9161c2b08feb8937200aa25c"},
|
||||||
|
|
|
@ -27,6 +27,7 @@ setuptools = {version = "*", platform = "win32"}
|
||||||
black = "*"
|
black = "*"
|
||||||
typing-extensions = "*"
|
typing-extensions = "*"
|
||||||
types-Pillow = "*"
|
types-Pillow = "*"
|
||||||
|
types-appdirs = "*"
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
dangerzone = 'dangerzone:main'
|
dangerzone = 'dangerzone:main'
|
||||||
|
|
Loading…
Reference in a new issue