-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (100 loc) · 3.06 KB
/
Copy pathpyproject.toml
File metadata and controls
122 lines (100 loc) · 3.06 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]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "folderdiff"
dynamic = ["version"]
description = "FolderDiff is a tool to compare unzipped archives (e.g. Wordpress installations) with their original zip archive or a clean source folder."
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [
{ name = "Manfred Kaiser", email = "manfred.kaiser@ssh-mitm.at" }
]
keywords = ["folder", "compare", "diff"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Utilities",
]
[project.urls]
Changelog = "https://github.com/manfred-kaiser/folderdiff/blob/main/CHANGELOG.md"
Source = "https://github.com/manfred-kaiser/folderdiff"
Tracker = "https://github.com/manfred-kaiser/folderdiff/issues"
[project.scripts]
folderdiff = "folderdiff.cli:main"
[tool.hatch.version]
path = "folderdiff/__version__.py"
[tool.hatch.build.targets.wheel]
packages = ["folderdiff"]
[tool.hatch.envs.hatch-test]
dependencies = ["pytest"]
[tool.hatch.envs.hatch-test.scripts]
run = "pytest{env:HATCH_TEST_ARGS:} {args:tests/}"
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.11", "3.12", "3.13"]
[tool.hatch.envs.lint]
detached = false
dependencies = [
"bandit",
"black~=26.0",
"Flake8-pyproject",
"flake8",
"mypy",
"pylint",
"pytest",
"ruff",
]
[tool.hatch.envs.lint.scripts]
check = [
"pytest",
"black --check folderdiff",
"bandit -r folderdiff",
"ruff check folderdiff",
"flake8 folderdiff",
"pylint folderdiff",
"mypy folderdiff",
]
[[tool.hatch.envs.lint.matrix]]
python = ["3.11", "3.12", "3.13"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.flake8]
ignore = ["E203", "E501", "W503"]
[tool.mypy]
strict = true
install_types = true
non_interactive = true
[tool.pylint.MASTER]
load-plugins = "pylint.extensions.docparams"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D203", # one-blank-line-before-class
"D213", # multi-line-summary-second-line
"E501", # Line too long
"T201", # `print` used - this is a CLI tool that prints its result to stdout
]
[tool.black]
target-version = ["py311"]
[tool.bumpversion]
current_version = "1.0.0"
[[tool.bumpversion.files]]
filename = "folderdiff/__version__.py"
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
search = "[Unreleased]: https://github.com/manfred-kaiser/folderdiff/compare/{current_version}...main"
replace = """[Unreleased]: https://github.com/manfred-kaiser/folderdiff/compare/{new_version}...main
[{new_version}]: https://github.com/manfred-kaiser/folderdiff/compare/{current_version}...{new_version}"""
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
search = "## [Unreleased]"
replace = """## [Unreleased]
## [{new_version}] - {now:%Y-%m-%d}"""