-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (117 loc) · 3.19 KB
/
pyproject.toml
File metadata and controls
122 lines (117 loc) · 3.19 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
111
112
113
114
115
116
117
118
119
120
121
122
[build-system]
build-backend = "hatchling.build"
requires = [ "hatchling" ]
[project]
name = "exif-stripper"
version = "1.2.0"
description = "An easy-to-use tool to ensure image EXIF metadata is removed."
readme = "README.md"
keywords = [
"exif",
"image processing",
"metadata",
"pre-commit",
]
license = "Apache-2.0"
license-files = [ "LICENSE" ]
authors = [
{ name = "Stefanie Molin", email = "exif-stripper@stefaniemolin.com" },
]
requires-python = ">=3.11"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"pillow>=12.2.0", # Python 3.10 - 3.14 (https://pillow.readthedocs.io/en/stable/installation/python-support.html)
]
urls.Documentation = "https://github.com/stefmolin/exif-stripper"
urls.Homepage = "https://github.com/stefmolin/exif-stripper"
urls.Source = "https://github.com/stefmolin/exif-stripper"
scripts.exif-stripper = "exif_stripper.cli:main"
[dependency-groups]
dev = [ "pre-commit>=4.6.0", { include-group = "test" } ]
test = [
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"pytest-randomly>=4.1.0",
]
[tool.ruff]
line-length = 88
format.indent-style = "space"
format.quote-style = "single"
format.skip-magic-trailing-comma = false
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
"ICN", # flake8-import-conventions
"N", # pep8-naming
"PERF", # perflint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # ruff-specific rules
"SIM", # flake8-simplify
"TC", # flake8-type-checking (performance improvements)
"TD", # flake8-todos
"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",
]
lint.isort.split-on-trailing-comma = false
[tool.pytest]
ini_options.filterwarnings = [ "error" ]
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",
]
ini_options.xfail_strict = true
ini_options.testpaths = [
"tests",
]
[tool.numpydoc_validation]
checks = [
"all", # report on all checks
"GL08", # use Docstringify to test for docstring presence instead
"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
"^Unambiguous ",
]