-
-
Notifications
You must be signed in to change notification settings - Fork 566
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (93 loc) Β· 2.3 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (93 loc) Β· 2.3 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[project]
name = "metadata-scrubber"
version = "0.3.0"
description = "A privacy-focused CLI tool that removes sensitive metadata from image files"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"typer>=0.21.1",
"rich>=14.3.1",
"pillow>=12.1.0",
"piexif>=1.1.3",
"pypdf>=6.6.2",
"openpyxl>=3.1.5",
"python-pptx>=1.0.2",
"python-docx>=1.2.0",
]
[project.optional-dependencies]
dev = []
[project.scripts]
mst = "src.main:app"
metadata-scrubber = "src.main:app"
# ============ THE BUILD SYSTEM ================
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# ============ PACKAGE DISCOVERY =================
[tool.hatch.build.targets.wheel]
packages = ["src"]
# ============== Ruff Configuration ==============
[tool.ruff]
line-length = 88
target-version = "py310"
extend-exclude = ["typings"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "C4"]
ignore = ["E501"] # Line too long (handled by formatter)
# ============== Pytest Configuration ==============
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
# ============== Coverage Configuration ==============
[tool.coverage.run]
source = ["src"]
branch = true
omit = ["*/__init__.py", "*/tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
show_missing = true
# ============== MyPy Configuration ==============
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_ignores = false
ignore_missing_imports = true
# pptx library doesn't have type stubs
[[tool.mypy.overrides]]
module = "pptx.*"
ignore_missing_imports = true
ignore_errors = true
[[tool.mypy.overrides]]
module = "src.services.powerpoint_handler"
ignore_errors = true
# docx library doesn't have type stubs
[[tool.mypy.overrides]]
module = "docx.*"
ignore_missing_imports = true
ignore_errors = true
[[tool.mypy.overrides]]
module = "src.services.worddoc_handler"
ignore_errors = true
[dependency-groups]
dev = [
"mypy>=1.19.1",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"ruff>=0.14.11",
"yapf>=0.43.0",
]
[tool.yapfignore]
ignore_patterns = [
"temp/**/*.py",
"temp2/*.py",
".venv/",
"venv/",
"typings/"
]