-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
82 lines (63 loc) · 1.89 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
# Common config file for python tools.
# Poetry
[tool.poetry]
name = "surrogate_modeling"
version = "0.1.0"
description = "Surrogate modeling."
authors = ["Miki Verma <[email protected]>"]
readme = "README.md"
package-mode = false
# The priorities of these are backwards relative to what they should
# actually be. See
# https://www.notion.so/rewiringamerica/Poetry-performance-regression-when-using-private-artifact-repository-21cf6e7c7b4c496ab3526a86e7d7d641?pvs=4
# for details.
[[tool.poetry.source]]
name = "rewiring-america-python-repo"
url = "https://us-central1-python.pkg.dev/cube-machine-learning/rewiring-america-python-repo/simple/"
priority = "supplemental"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[tool.poetry.dependencies]
python = ">=3.10, <3.11"
google-cloud-bigquery = "^3.26"
google-cloud-bigquery-storage = "^2.26.0"
# These are RA projects in an internal repo.
dmlutils = "^0.8.0"
dmlbootstrap = "^0.2.0"
# This is to depend on essentially all the pinned
# versions of things found in the Databricks 14.3
# runtime. This means this project should only be
# run on 14.3 runtimes, possibly including the ML
# version. The minor .Z version tacked on the end
# is our internal revision number of the cluster
# libraries.
radbcluster = "==14.3.1"
# These are from PyPi
usingversion = "^0.1.2"
[tool.poetry.group.dev.dependencies]
black = "^22.6.0"
ruff = "^0.5.5"
isort = "^5.13.2"
flake8 = "^6.1.0"
keyrings-google-artifactregistry-auth = "^1.1.2"
[tool.poetry.group.test.dependencies]
pytest = "^7.4.4"
coverage = {extras = ["toml"], version = "^7.6.0"}
pytest-cov = "^5.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# Linting tools
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
[tool.ruff.lint]
select = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.pytest.ini_options]
pythonpath = [
"src"
]