-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
65 lines (59 loc) · 1.23 KB
/
Copy pathpyproject.toml
File metadata and controls
65 lines (59 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "cryptography-platform"
version = "1.0.0"
description = "密码学平台 - Fluent UI"
requires-python = ">=3.8"
dependencies = [
"PyQt5>=5.15.0",
"PyQt-Fluent-Widgets>=1.5.0",
"PyQtWebEngine>=5.15.0",
"cryptography>=41.0.0",
"pycryptodome>=3.19.0",
"gmpy2>=2.1.5",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"flake8>=6.0.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.coverage.run]
source = ["core", "ui", "infrastructure"]
omit = [
"*/tests/*",
"*/test_*.py",
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[tool.flake8]
max-line-length = 127
max-complexity = 10
exclude = [
".git",
"__pycache__",
"build",
"dist",
".venv",
"venv",
]
ignore = ["E203", "W503"]