-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (82 loc) · 2.49 KB
/
pyproject.toml
File metadata and controls
93 lines (82 loc) · 2.49 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
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["harmonizer*"]
[project]
name = "python-code-harmonizer"
version = "1.5.0"
description = "A semantic code analysis tool using the LJPW v4.0 Framework"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
authors = [
{name = "Python Code Harmonizer Contributors"}
]
keywords = ["code-analysis", "semantic-analysis", "ljpw", "code-quality"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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",
]
dependencies = [
"PyYAML>=6.0",
"numpy>=1.24",
"matplotlib>=3.7",
"tomli>=2.0; python_version < '3.11'",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"black>=24.4.2",
"astunparse>=1.6.3",
"flake8>=6.0",
"isort>=5.12",
"pre-commit>=3.0",
]
[project.scripts]
harmonizer = "harmonizer.main:run_cli"
[project.urls]
Homepage = "https://github.com/yourusername/python-code-harmonizer"
Documentation = "https://github.com/yourusername/python-code-harmonizer/tree/main/docs"
Repository = "https://github.com/yourusername/python-code-harmonizer"
Issues = "https://github.com/yourusername/python-code-harmonizer/issues"
[tool.harmonizer.thresholds]
# More realistic thresholds for real-world codebases
# The harmonizer itself demonstrates semantic patterns that deviate from ideal
max_disharmony = 2.5
max_imbalance = 1.2 # Increased from 0.8 - real code naturally deviates from NE
min_density = 0.02 # Decreased - utility/config code has low power naturally
[tool.harmonizer.paths]
exclude = ["venv", ".git", "__pycache__", "build", "dist", "tests", "examples"]
report = "harmonizer_report.html"
[tool.harmonizer.analysis]
complexity_weight = 0.2
[tool.black]
line-length = 100
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
extend-exclude = '''
/(
\.git
| \.venv
| __pycache__
| docs
| examples
| \.pytest_cache
)/
'''
[tool.isort]
profile = "black"
line_length = 100
skip_gitignore = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]