-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
90 lines (78 loc) · 2.36 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
[tool.poetry]
name = "kittycad"
version = "0.7.2"
description = "A client library for accessing KittyCAD"
authors = []
readme = "README.md"
packages = [
{include = "kittycad"},
]
include = ["CHANGELOG.md", "kittycad/py.typed"]
[[tool.poetry.source]]
name = "pypi-public"
url = "https://pypi.org/simple/"
[tool.poetry.dependencies]
attrs = ">=20.1.0,<25.0.0"
httpx = "^0.27.2"
python = ">=3.9,<4.0"
python-dateutil = "^2.8.0"
websockets = ">=11.0.3,<14.0.0"
pymongo = "^4.6.0"
pydantic = "^2.9.1"
pydantic-extra-types = "^2.1.0"
[tool.poetry.dev-dependencies]
autoclasstoc = "^1.7.0"
black = "^24.10.0"
isort = "^5.12.0"
jinja2 = "^3.1.3"
jsonpatch = "^1.33"
mypy = "^1.13.0"
openapi-parser = "^0.2.6"
openapi-spec-validator = "^0.7.1"
prance = "^23.6.21"
pyenchant = "^3.2.2"
pytest = "^8.0.2"
pytest-asyncio = "^0.24.0"
pytest-cov = "^6.0.0"
ruff = "^0.8.0"
Sphinx = "^7.1.2"
sphinx-autoapi = "^3.3.3"
sphinx-autodoc-typehints = "^2.3.0"
sphinxcontrib-spelling = "^8.0.0"
sphinx-copybutton = "^0.5.2"
sphinxext-opengraph = "^0.9.1"
sphinx-rtd-theme = "^3.0.2"
toml = "^0.10.2"
types-python-dateutil = "^2.9.0"
types-toml = "^0.10.8"
[build-system]
requires = ["poetry>=1.0"]
build-backend = "poetry.masonry.api"
[tool.isort]
line_length = 88
profile = "black"
src_paths = ["generate", "kittycad", "docs"]
float_to_top = true
combine_as_imports = true
[tool.ruff]
line-length = 88
[tool.ruff.lint]
# Since we auto fix these, we don't want to warn about them. Since some doc strings are too long.
ignore = ["E501"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
# We exclude init files since otherwise ruff will delete all the unused imports.
# This code comes from here: https://beta.ruff.rs/docs/rules/#pyflakes-f
"__init__.py" = ["F401"]
"examples_test.py" = ["F841"]
[tool.mypy]
exclude = ["venv"]
show_error_codes = true
ignore_missing_imports = true
check_untyped_defs = true
[tool.pytest.ini_options]
addopts = "--doctest-modules"