-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
56 lines (48 loc) · 1.33 KB
/
pyproject.toml
File metadata and controls
56 lines (48 loc) · 1.33 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "cypulse"
version = "0.5.0"
description = "開源 EASM 資安曝險評級平台"
readme = {text = "CyPulse — 開源 EASM 資安曝險評級平台", content-type = "text/plain"}
requires-python = ">=3.10"
license = "MIT"
dependencies = [
"pyyaml>=6.0",
"requests>=2.31",
"structlog>=23.1",
"click>=8.1",
"jinja2>=3.1",
"weasyprint>=60.0",
"checkdmarc>=5.0",
"dnspython>=2.4", # checkdmarc 需要 dns.nameserver(2.4+)
"dnstwist>=20230918",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"flake8>=6.0",
"black>=23.0",
"mypy>=1.0",
]
[project.scripts]
cypulse = "cypulse.cli:main"
[tool.setuptools.packages.find]
include = ["cypulse*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
# 預設 -m "not sit" 排除較慢的端到端測試;用 `make test-sit` 或 `pytest -m sit` 單獨跑
addopts = "-v --tb=short -m 'not sit'"
markers = [
"sit: System Integration Test(端到端測試,較慢,預設 make test 不跑)",
]
[tool.black]
line-length = 100
target-version = ["py311"]
# flake8 config is in .flake8 (flake8 does not read pyproject.toml natively)
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true