Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (76 loc) · 2.25 KB
/
Copy pathpyproject.toml
File metadata and controls
90 lines (76 loc) · 2.25 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"
[project]
name = "cascade-analysis"
version = "0.9.1"
description = "Contextual Analysis of Spread for Content Authenticity Detection and Evaluation"
requires-python = ">=3.11,<3.13"
license = {text = "MIT"}
dependencies = [
"scikit-learn==1.5.2",
"networkx==3.4.2",
"numpy==2.1.1",
"pandas==2.2.3",
"imagehash==4.3.1",
"Pillow==10.4.0",
"reportlab==4.2.5",
"matplotlib==3.9.2",
"rich==13.9.4",
"pyfiglet==1.0.2",
"joblib==1.4.2",
"scipy==1.17.1",
"pypdf>=4.0,<5",
]
[project.optional-dependencies]
dev = [
"pytest==8.3.3",
"pytest-cov==5.0.0",
"mypy==1.11.2",
"ruff==0.6.9",
"black==24.8.0",
]
[project.scripts]
cascade = "cascade.cli:main"
[tool.setuptools]
packages = ["cascade"]
[tool.setuptools.package-data]
cascade = ["models/*.joblib", "models/*.json"]
[tool.black]
line-length = 88
target-version = ["py311"]
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "D", "UP"]
ignore = [
"D203", # one-blank-line-before-class (conflicts with D211)
"D212", # multi-line-summary-first-line (conflicts with D213, Google style)
]
[tool.ruff.lint.per-file-ignores]
# report.py contains long prose string constants (feature narratives, sentinel
# descriptions) that cannot be wrapped without damaging readability. N802 is
# suppressed for the two ReportLab override methods whose names are mandated by
# the parent-class API (handle_pageBegin, afterFlowable).
"cascade/report.py" = ["E501", "N802"]
# collect.py contains long Rich markup console strings that cannot be wrapped
# without damaging readability.
"cascade/collect.py" = ["E501"]
# Test files contain long assertion messages for diagnostic clarity; wrapping
# them degrades readability without improving correctness.
"tests/test_*.py" = ["E501"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
python_version = "3.11"
strict = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["imagehash", "pyfiglet", "reportlab.*", "pypdf"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.coverage.run]
source = ["cascade"]
omit = ["cascade/cli.py"]