-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
97 lines (87 loc) · 1.86 KB
/
pyproject.toml
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
[tool.poetry]
authors = ["Gradient AI Support <[email protected]>"]
description = "Gradient AI API"
keywords = [
"Gradient AI API",
"ai",
"artificial intelligence",
"fine-tuning",
"large language model",
"llm",
"gradient",
"gradient ai",
]
license = "MIT"
name = "gradientai"
readme = "README.md"
repository = "https://github.com/Preemo-Inc/gradientai-python-sdk"
version = "1.13.1"
[tool.poetry.dependencies]
aenum = ">=3.1.11"
pydantic = ">=1.10.15, <3"
python = "^3.8.1"
python-dateutil = ">=2.8.2"
urllib3 = ">= 1.25.3"
[tool.poetry.dev-dependencies]
Flake8-pyproject = "1.2.3"
autoflake = "2.0.1"
black = "22.3.0"
build = "0.10.0"
flake8 = "6.0.0"
isort = "5.10.1"
mypy = "1.10.0"
pep8-naming = "0.13.0"
pytest = "7.2.1"
python-dotenv = "1.0.0"
twine = "4.0.2"
types-python-dateutil = "^2.9.0.20240316"
[tool.autoflake]
check = true
ignore-init-module-imports = true
in-place = true
recursive = true
remove-all-unused-imports = true
remove-unused-variables = true
[tool.black]
line-length = 80
# This configuration works thanks to Flake8-pyproject
[tool.flake8]
exclude = [
".git",
".mypy_cache",
".pytest_cache",
".venv",
"__pycache__",
"*.pyi",
]
# options copied from https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length
extend-ignore = [
"E203", # Whitespace before ':'
"E501", # Line too long
]
max-line-length = 88
select = [
"B",
"B950",
"C",
"E",
"F",
"W",
]
[tool.isort]
profile = "black"
[tool.mypy]
check_untyped_defs = true
disallow_any_unimported = true
disallow_untyped_defs = true
exclude = "openapi"
no_implicit_optional = true
plugins = ["pydantic.mypy", "pydantic.v1.mypy"]
show_error_codes = true
warn_return_any = true
warn_unused_ignores = true
[tool.pydantic-mypy]
warn_required_dynamic_aliases = false
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]