2021-12-06 12:43:34 -08:00
|
|
|
[tool.poetry]
|
|
|
|
name = "kittycad"
|
2025-03-12 09:35:09 -07:00
|
|
|
version = "0.7.6"
|
2021-12-06 12:43:34 -08:00
|
|
|
description = "A client library for accessing KittyCAD"
|
|
|
|
|
|
|
|
authors = []
|
|
|
|
|
|
|
|
readme = "README.md"
|
2024-11-29 16:02:11 -05:00
|
|
|
packages = [{ include = "kittycad" }]
|
2021-12-06 12:43:34 -08:00
|
|
|
include = ["CHANGELOG.md", "kittycad/py.typed"]
|
|
|
|
|
2024-04-10 18:36:19 -07:00
|
|
|
[[tool.poetry.source]]
|
|
|
|
name = "pypi-public"
|
|
|
|
url = "https://pypi.org/simple/"
|
|
|
|
|
2021-12-06 12:43:34 -08:00
|
|
|
[tool.poetry.dependencies]
|
2025-01-27 10:23:04 -05:00
|
|
|
attrs = ">=20.1.0,<26.0.0"
|
2024-11-29 11:23:48 -05:00
|
|
|
httpx = ">=0.27.2,<0.29.0"
|
2024-07-28 15:20:05 -07:00
|
|
|
python = ">=3.9,<4.0"
|
2021-12-06 12:43:34 -08:00
|
|
|
python-dateutil = "^2.8.0"
|
2025-02-17 10:39:35 -08:00
|
|
|
websockets = ">=14.1.0,<16.0.0"
|
2023-11-28 23:50:50 -08:00
|
|
|
pymongo = "^4.6.0"
|
2024-09-10 12:52:57 -07:00
|
|
|
pydantic = "^2.9.1"
|
2023-11-28 23:50:50 -08:00
|
|
|
pydantic-extra-types = "^2.1.0"
|
2021-12-06 12:43:34 -08:00
|
|
|
|
2021-12-15 03:03:01 -08:00
|
|
|
[tool.poetry.dev-dependencies]
|
2024-10-16 10:01:48 -07:00
|
|
|
autoclasstoc = "^1.7.0"
|
2025-01-29 10:03:38 -05:00
|
|
|
black = "^25.1.0"
|
2025-02-27 08:43:41 -05:00
|
|
|
isort = "^6.0.1"
|
2025-03-06 08:14:56 -05:00
|
|
|
jinja2 = "^3.1.6"
|
2023-09-06 11:01:18 -07:00
|
|
|
jsonpatch = "^1.33"
|
2025-02-05 16:34:37 -05:00
|
|
|
mypy = "^1.15.0"
|
2023-05-04 00:58:06 -07:00
|
|
|
openapi-parser = "^0.2.6"
|
2024-09-10 12:52:57 -07:00
|
|
|
openapi-spec-validator = "^0.7.1"
|
2023-07-07 17:57:44 -07:00
|
|
|
prance = "^23.6.21"
|
2023-05-04 00:58:06 -07:00
|
|
|
pyenchant = "^3.2.2"
|
2025-03-03 09:33:54 -05:00
|
|
|
pytest = "^8.3.5"
|
2025-03-25 09:27:12 -04:00
|
|
|
pytest-asyncio = "^0.26.0"
|
2025-04-07 10:12:32 -04:00
|
|
|
pytest-cov = "^6.1.1"
|
2025-04-14 10:12:16 -04:00
|
|
|
ruff = "^0.11.5"
|
2023-08-16 13:02:22 -07:00
|
|
|
Sphinx = "^7.1.2"
|
2025-02-18 09:39:36 -05:00
|
|
|
sphinx-autoapi = "^3.6.0"
|
2024-09-10 15:29:30 -07:00
|
|
|
sphinx-autodoc-typehints = "^2.3.0"
|
2023-04-06 15:20:24 -07:00
|
|
|
sphinxcontrib-spelling = "^8.0.0"
|
2023-05-04 00:58:06 -07:00
|
|
|
sphinx-copybutton = "^0.5.2"
|
2025-04-07 10:59:34 -04:00
|
|
|
sphinxext-opengraph = "^0.10.0"
|
2024-11-13 09:05:45 -05:00
|
|
|
sphinx-rtd-theme = "^3.0.2"
|
2023-05-04 00:58:06 -07:00
|
|
|
toml = "^0.10.2"
|
2024-10-03 11:31:54 -07:00
|
|
|
types-python-dateutil = "^2.9.0"
|
2023-09-29 15:14:19 -07:00
|
|
|
types-toml = "^0.10.8"
|
2021-12-15 03:03:01 -08:00
|
|
|
|
2021-12-06 12:43:34 -08:00
|
|
|
[build-system]
|
|
|
|
requires = ["poetry>=1.0"]
|
|
|
|
build-backend = "poetry.masonry.api"
|
|
|
|
|
|
|
|
[tool.isort]
|
2023-05-04 00:58:06 -07:00
|
|
|
line_length = 88
|
2021-12-08 13:45:55 -08:00
|
|
|
profile = "black"
|
2023-05-04 00:58:06 -07:00
|
|
|
src_paths = ["generate", "kittycad", "docs"]
|
|
|
|
float_to_top = true
|
|
|
|
combine_as_imports = true
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
line-length = 88
|
2024-02-24 17:03:55 -08:00
|
|
|
|
|
|
|
[tool.ruff.lint]
|
2023-05-04 00:58:06 -07:00
|
|
|
# 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.
|
2024-11-29 16:02:11 -05:00
|
|
|
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",
|
|
|
|
]
|
2023-05-04 00:58:06 -07:00
|
|
|
unfixable = []
|
|
|
|
# Allow unused variables when underscore-prefixed.
|
|
|
|
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
|
|
|
|
2024-02-24 17:03:55 -08:00
|
|
|
[tool.ruff.lint.per-file-ignores]
|
2023-05-04 00:58:06 -07:00
|
|
|
# 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"]
|
2023-05-08 12:58:35 -07:00
|
|
|
"examples_test.py" = ["F841"]
|
2023-05-04 00:58:06 -07:00
|
|
|
|
|
|
|
[tool.mypy]
|
2024-09-10 14:35:25 -07:00
|
|
|
exclude = ["venv"]
|
2023-05-04 00:58:06 -07:00
|
|
|
show_error_codes = true
|
|
|
|
ignore_missing_imports = true
|
2023-05-05 12:19:19 -07:00
|
|
|
check_untyped_defs = true
|
2023-05-04 00:58:06 -07:00
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
addopts = "--doctest-modules"
|