-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (146 loc) · 3.93 KB
/
Copy pathpyproject.toml
File metadata and controls
158 lines (146 loc) · 3.93 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
[project]
name = "dibbs-text-to-code-root"
version = "0.2.5"
description = ""
authors = [
{ name = "Brady Fausett", email = "bradyfausett@skylight.digital" },
{ name = "Brandon Mader", email = "brandon@skylight.digital" },
{ name = "Eric Buckley", email = "ericbuckley@skylight.digital" },
{ name = "Joshua Nygaard", email = "jnygaard@skylight.digital" },
{ name = "Marcelle Goggins", email = "marcelle@skylight.digital" },
{ name = "Nick Clyde", email = "nclyde@skylight.digital" },
{ name = "Rob Mitchell", email = "robert.a.mitchell@skylight.digital" },
]
license-files = ["LICENSE"]
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = "==3.14.*"
dependencies = []
[dependency-groups]
dev = [
"pre-commit>=4.6.0",
"pytest-cov>=7.0.0",
"pytest-env>=1.6.0",
"pytest>=9.0.3",
"requests>=2.34.2",
"ruff>=0.15.19",
"ty>=0.0.39",
]
[tool.coverage.run]
source = ["packages"]
omit = ["*/__pycache__/*", "*/archived/*", "*/test_*.py", "*/tests/*"]
[tool.pytest.ini_options]
markers = ["e2e"]
testpaths = ["e2e", "packages"]
pythonpath = ["."]
[tool.pytest_env]
env_files = [".env.test"]
env_files_skip_if_set = false
[tool.ty.src]
exclude = ["**/archived/**", "azure_scripts/", "docs/"]
[tool.ruff]
# Wholesale ignoring several directories as I do not want to have to resolve everything in one PR,
# but I would highly recommend enabling directories as we work on them, and enabling/disabling
# rules at a more granular level as needed.
exclude = [
".git",
".pytest_cache",
"__pycache__",
"azure_scripts",
"data",
"docs",
"model-tuning",
]
line-length = 100
indent-width = 4
target-version = "py314"
show-fixes = true
fix = true
[tool.ruff.lint]
select = [
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"DOC", # pydoclint
"E", # pycodestyle error
"F", # Pyflakes
"FURB", # refurb
"I", # isort
"N", # pep8-naming
"PL", # Pylint
"PT", # flake8-pytest-style
"RET", # flake8-return
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"W", # pycodestyle warning
]
ignore = [
"D100", # undocumented-public-module
"E501", # line-too-long - Handled by formatter
"RET504", # unnecessary-assign
"S314", # recommend `defusedxml` over `xml` and `lxml`
]
[tool.ruff.lint.flake8-annotations]
# Relax typing requirements for certain situations
allow-star-arg-any = true
mypy-init-return = true
suppress-dummy-args = true
suppress-none-returning = true
[tool.ruff.lint.isort]
known-first-party = [
"augmentation",
"augmentation_lambda",
"index_lambda",
"lambda_handler",
"shared_models",
"text_to_code",
"text_to_code_lambda",
"utils",
"validation",
]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["D"]
# ignore scripts/ folder
"scripts/*.py" = [
"T201", # print
]
# CLI entry points legitimately write to stdout/stderr
"**/__main__.py" = [
"T201", # print
]
".github/scripts/*.py" = [
"S607", # `git` resolved from PATH is fine on GitHub-hosted runners
"T201", # prints surface as CI run logs intentionally
]
# Ignore the following rules in test files
"**/test_*.py" = [
"ANN001", # missing type annotation for arguments from fixtures
"ANN201", # missing-return-type-annotation
"D101", # undocumented-public-class
"D102", # undocumented-public-method
"D103", # undocumented-public-function
"PLR0913", # too many arguments
"S101", # assert,
"T201", # print
]
"**/conftest.py" = [
"PT003", # pytest-extraneous-scope-function"
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.uv.workspace]
members = [
"packages/augmentation",
"packages/augmentation-lambda",
"packages/data-curation",
"packages/index-lambda",
"packages/lambda-handler",
"packages/shared-models",
"packages/text-to-code",
"packages/text-to-code-lambda",
"packages/utils",
"packages/validation",
]