This repository was archived by the owner on Sep 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
96 lines (79 loc) · 2.44 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]
name = "datapane-components"
version = "2023.3.20"
description = "Reusable Datapane components and sample reports and apps"
authors = ["Datapane Team <dev@datapane.com>"]
license = "Apache 2.0"
readme = "README.md"
homepage = "https://www.datapane.com"
repository = "https://github.com/datapane/datapane"
documentation = "https://docs.datapane.com"
keywords = ["data", "analysis", "jupyter", "pandas", "altair"]
classifiers = [
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: Apache Software License",
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Environment :: Console",
"Natural Language :: English",
"Operating System :: OS Independent",
]
packages = [
{include = "datapane_components", from = "src"}
]
# extra files (allows overriding gitignore)
include = [
"NOTICE",
"README.md",
"LICENSE",
]
[tool.poetry.dependencies]
python = ">= 3.8.0, < 3.12.0"
datapane = "^0.16.2"
altair = "^4.0.0"
vega-datasets = ">=0.9.0,<1.0.0"
pooch = "^1.6.0"
duckdb = "^0.7.1"
openai = "^0.27.0"
# matplotlib = { version = "^3.2.0", optional = true }
# seaborn = "^0.12.2"
[tool.poetry.group.dev.dependencies]
jupyterlab = "^3.6.1"
pytest = "^7.0.0"
pytest-datadir = "^1.3.1"
# datapane = { path = "../datapane/python-client", develop = true }
poethepoet = "^0.18.1"
# workaround poetry trying to make a unified lockfile
# https://github.com/amoffat/sh/issues/659
sh = [
{version = "^1.14.3", python = "<3.8.1"},
{version = "^2.0.2", python = ">=3.8.1"}
]
black = "^23.1.0"
ruff = "^0.0.256"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py38']
# include = '\.pyi?$'
[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
#select = ["E", "F"]
ignore = ["E501"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
#fixable = ["A", "B", "C", "D", "E", "F", "..."]
#unfixable = []
line-length = 120
target-version = "py38"
[tool.poe.tasks]
bump-version = { "script" = "ci.bump_version:main" }
git-bump-version = { "script" = "ci.bump_version:main(git=True)" }
ruff-check = "ruff check . --diff"
black-check = "black . --check --diff"
ruff-fix = "ruff check . --fix --show-fixes"
black-fix = "black ."
lint = { sequence = ["ruff-check", "black-check"] }
fixlint = { sequence = ["ruff-fix", "black-fix"] }