-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
168 lines (151 loc) · 4.25 KB
/
pyproject.toml
File metadata and controls
168 lines (151 loc) · 4.25 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[build-system]
build-backend = "setuptools.build_meta"
requires = [ "setuptools>=78.1" ]
[project]
name = "gitmind"
version = "0.0.1"
description = "AI powered Git repository analysis and reporting"
readme = "README.md"
keywords = [ "ai", "analysis", "dev-tools", "git", "linting", "reporting", "repository" ]
license-files = [ "LICENSE" ]
authors = [ { name = "Na'aman Hirschfeld", email = "nhirschfeld@gmail.com" } ]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"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",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"anyio>=4.4.0",
"eval-type-backport>=0.2.0",
"httpx>=0.27.0",
"inflection>=0.5.1",
"jsonschema>=4.22.0",
"msgspec>=0.18.6",
"pydantic-settings>=2.3.4",
"pygit2>=1.15.1",
"python-magic>=0.4.27",
"structlog>=24.2.0",
"typing-extensions>=4.12.2",
]
optional-dependencies.cli = [
"click>=8.1.8",
"rich>=13.9.4",
"rich-click>=1.8.8",
]
optional-dependencies.groq = [ "groq>=0.20.0" ]
optional-dependencies.openai = [
"openai>=1.69.0",
]
urls.Repository = "https://github.com/Goldziher/gitmind"
scripts.gitmind = "gitmind.__main__:cli"
[dependency-groups]
dev = [
"covdefaults>=2.3.0",
"mypy>=1.15.0",
"polyfactory>=2.16.0",
"pre-commit>=4.2.0",
"pytest>=8.3.5",
"pytest-asyncio>=0.23.7",
"pytest-cov>=6.0.0",
"pytest-logger>=1.1.1",
"pytest-mock>=3.14.0",
"pytest-timeout>=2.3.1",
"python-dotenv>=1.0.1",
"ruff>=0.11.2",
"types-jsonschema>=4.22.0.20240501",
"types-pygit2>=1.15.0.20240714",
"uv-bump",
]
[tool.setuptools.packages.find]
include = [ "gitmind" ]
[tool.setuptools.package-data]
gitmind = [ "py.typed" ]
[tool.ruff]
target-version = "py39"
line-length = 120
src = [ "gitmind", "tests" ]
format.docstring-code-line-length = 120
format.docstring-code-format = true
lint.select = [ "ALL" ]
lint.ignore = [
"ANN401", # Dynamically typed ANY for kwargs
"COM812", # Conflicts with formatter
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D107", # Missing docstring in __init__
"D205", # 1 blank line required between summary line and description
"E501", # Line too long, handled by ruff format
"EM", # Exception messages,
"FBT", # Boolean-typed positional argument in function definition
"FIX", # We allow todo and fixme comments
"ISC001", # Conflicts with formatter
"TD", # We allow todo and fixme comments
"TRY", # Try except block, rules are too strict
]
lint.per-file-ignores."tests/**/*.*" = [
"ARG001",
"D",
"N815",
"PD",
"PGH003",
"PLR0915",
"PLR2004",
"PT006",
"PT007",
"PT011",
"PT013",
"RUF012",
"S",
"SLF001",
]
lint.isort.known-first-party = [ "gitmind", "tests" ]
lint.mccabe.max-complexity = 15
lint.pydocstyle.convention = "google"
lint.pylint.max-args = 10
lint.pylint.max-branches = 15
lint.pylint.max-returns = 10
[tool.pyproject-fmt]
keep_full_version = true
max_supported_python = "3.13"
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.coverage.run]
omit = [ "tests/*" ]
plugins = [ "covdefaults" ]
source = [ "gitmind" ]
[tool.coverage.report]
exclude_lines = [ 'if TYPE_CHECKING:', "except ImportError:" ]
fail_under = 100
[tool.mypy]
packages = [ "gitmind", "tests" ]
python_version = "3.9"
disable_error_code = 'import-untyped'
implicit_reexport = false
show_error_codes = true
strict = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_decorators = false
disallow_any_unimported = false
disable_error_code = "method-assign"
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.uv.sources]
uv-bump = { git = "https://github.com/Goldziher/uv-bump" }