-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
63 lines (52 loc) · 1.8 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
[tool.poetry]
name = "foundry-compute-modules"
version = "0.0.0"
description = "The official Python library for creating Compute Modules"
authors = ["Palantir Technologies, Inc."]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/palantir/python-compute-module"
keywords = ["Palantir", "Foundry", "Compute Modules"]
packages = [{ include = "compute_modules" }]
[tool.poetry.dependencies]
python = "^3.9"
requests = "^2.32.3"
[tool.poetry.group.dev.dependencies]
black = "24.1.1"
isort = "5.13.2"
mypy = "1.9.0"
ruff = "0.9.7"
pytest = "8.0.0"
pytest-html = "4.1.1"
poethepoet = "^0.29.0"
types-requests = "^2.32.0.20241016"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
test = "python -c 'from scripts.checks import test; test()'"
check_format = "python -c 'from scripts.checks import check_format; check_format()'"
check_mypy = "python -c 'from scripts.checks import check_mypy; check_mypy()'"
format = "python -c 'from scripts.checks import format; format()'"
check_license = "python -c 'from scripts.checks import check_license; check_license()'"
license = "python -c 'from scripts.checks import license; license()'"
set_version = "python -c 'from scripts.set_version import main; main()'"
[tool.poetry.scripts]
cm_ontology_metadata_config = "compute_modules.bin.ontology.generate_metadata_config:main"
cm_python_function_infer = "compute_modules.bin.static_inference.infer:main"
[tool.black]
line_length = 120
[tool.isort]
profile = "black"
line_length = 120
[tool.pytest.ini_options]
addopts = "--junitxml=./build/pytest-results/pytest-results.xml --html=./build/pytest-results/pytest-results.html"
cache_dir = "build/.pytest_cache"
testpaths = [
"tests",
]
[tool.ruff]
line-length = 120
cache-dir = "build/.ruff_cache"
[tool.mypy]
strict = true