-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
146 lines (125 loc) · 3.29 KB
/
pyproject.toml
File metadata and controls
146 lines (125 loc) · 3.29 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[build-system]
requires = ["setuptools>=77.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "codeclone"
version = "2.0.0b5"
description = "Structural code quality analysis for Python"
readme = { file = "README.md", content-type = "text/markdown" }
license = "MPL-2.0 AND MIT"
license-files = ["LICENSE", "LICENSE-docs"]
authors = [
{ name = "Den Rozhnovskiy", email = "pytelemonbot@mail.ru" }
]
maintainers = [
{ name = "Den Rozhnovskiy", email = "pytelemonbot@mail.ru" }
]
requires-python = ">=3.10"
dependencies = [
"orjson>=3.11.8",
"pygments>=2.20.0",
"rich>=15.0.0",
"tomli>=2.0.1; python_version < '3.11'",
]
keywords = [
"python",
"ast",
"cfg",
"code-clone",
"duplication",
"static-analysis",
"architecture",
"control-flow",
"ci",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Typing :: Typed",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.urls]
Homepage = "https://github.com/orenlab/codeclone"
Repository = "https://github.com/orenlab/codeclone"
Issues = "https://github.com/orenlab/codeclone/issues"
Changelog = "https://github.com/orenlab/codeclone/releases"
Documentation = "https://orenlab.github.io/codeclone/"
[project.optional-dependencies]
mcp = [
"mcp>=1.27.0,<2",
]
dev = [
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"build>=1.4.3",
"twine>=6.2.0",
"mypy>=1.20.1",
"ruff>=0.15.10",
"pre-commit>=4.5.1",
]
[project.scripts]
codeclone = "codeclone.cli:main"
codeclone-mcp = "codeclone.mcp_server:main"
[tool.setuptools]
packages = [
"codeclone",
"codeclone._html_report",
"codeclone._html_report._sections",
"codeclone.domain",
"codeclone.metrics",
"codeclone.report",
]
[tool.setuptools.package-data]
codeclone = ["py.typed"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
[tool.coverage.run]
branch = true
source = ["codeclone"]
[tool.codeclone]
baseline = "codeclone.baseline.json"
min_loc = 6
min_stmt = 4
fail_on_new = true
fail_cycles = true
fail_dead_code = true
fail_health = 87
fail_on_new_metrics = true
api_surface = false
golden_fixture_paths = ["tests/fixtures/golden_*"]
min_typing_coverage = 99
[tool.coverage.report]
show_missing = true
fail_under = 99
[tool.mypy]
python_version = "3.10"
strict = true
warn_unused_configs = true
warn_return_any = true
disallow_any_generics = true
disallow_untyped_defs = true
no_implicit_optional = true
files = ["codeclone", "tests"]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "SIM", "C4", "PIE", "PERF", "RUF"]
[tool.ruff.lint.per-file-ignores]
"codeclone/_html_css.py" = ["E501"]
"codeclone/_html_js.py" = ["E501"]
"codeclone/_html_report/_sections/*.py" = ["E501"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"