-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
128 lines (119 loc) · 2.82 KB
/
pyproject.toml
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools",
"setuptools-scm",
]
[project]
name = "exif-stripper"
description = "An easy-to-use tool to ensure image EXIF metadata is removed."
readme = "README.md"
keywords = [
"exif",
"image processing",
"metadata",
"pre-commit",
]
license = { file = "LICENSE" }
authors = [
{ name = "Stefanie Molin", email = "[email protected]" },
]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = [
"version",
]
dependencies = [
"pillow>=10.3.0",
]
optional-dependencies.dev = [
"pre-commit",
"pytest",
"pytest-cov",
"pytest-randomly",
]
urls.Documentation = "https://github.com/stefmolin/exif-stripper"
urls.Homepage = "https://github.com/stefmolin/exif-stripper"
scripts.exif-stripper = "exif_stripper.cli:main"
[tool.setuptools.packages.find]
where = [
"src",
]
[tool.setuptools.dynamic]
version = { attr = "exif_stripper.__version__" }
[tool.ruff]
line-length = 88
format.indent-style = "space"
format.quote-style = "single"
format.docstring-code-format = true
lint.select = [
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle error
"ERA", # eradicate (commented out code)
"F", # pyflakes
"FA", # flake8-future-annotations
"I", # isort
"N", # pep8-naming
"PTH", # flake8-use-pathlib
"RUF", # ruff-specific rules
"SIM", # flake8-simplify
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle warning
]
lint.ignore = [
"E501", # line-too-long
]
lint.extend-per-file-ignores."tests/*" = [ "ANN" ] # don't require annotations for tests
lint.isort.known-first-party = [
"exif_stripper",
]
[tool.pytest.ini_options]
addopts = [
"-ra",
"-l",
"-v",
"--tb=short",
"--import-mode=importlib",
"--strict-markers",
"--strict-config",
"--cov=exif_stripper",
"--cov=tests",
"--no-cov-on-fail",
"--cov-report=term-missing",
]
xfail_strict = true
testpaths = [
"tests",
]
[tool.numpydoc_validation]
checks = [
"all", # report on all checks
"ES01", # but don't require an extended summary
"EX01", # or examples
"SA01", # or a see also section
"SS06", # and don't require the summary to fit on one line
]
exclude = [ # don't report on checks for these
'\.__init__$',
'\.__repr__$',
'\.__str__$',
]
override_SS05 = [ # allow docstrings to start with these words
'^Process ',
'^Assess ',
'^Access ',
]