-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
pyproject.toml
123 lines (108 loc) · 2.67 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "dj_notebook"
version = "0.7.0"
description = "Django + shell_plus + Jupyter notebooks made easy"
readme = "README.md"
authors = [
{name = "Daniel Roy Greenfeld", email = "[email protected]"},
{name = "Anna Zhydko", email = "[email protected]"}
]
maintainers = [
{name = "Daniel Roy Greenfeld", email = "[email protected]"},
{name = "Anna Zhydko", email = "[email protected]"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Jupyter",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
license = {text = "GNU General Public License v3"}
dependencies = [
"django",
"django-extensions",
"django-pandas",
"django-schema-graph",
"ipython",
"jupyter",
"pandas",
"rich",
"python-dotenv"
]
[project.optional-dependencies]
dev = [
"black", # code auto-formatting
"black[jupyter]",
"coverage", # testing
"griffe-typingdoc==0.2.2",
"mkdocs-material",
"mkdocs-jupyter",
"mkdocs-material[imaging]",
"mkdocs-include-markdown-plugin",
"mkdocstrings[python]>=0.18",
"mypy", # linting
"pytest", # testing
"ruff", # linting
"yamlfix" # fixing the YAML
]
[project.urls]
bugs = "https://github.com/pydanny/dj-notebook/issues"
changelog = "https://github.com/pydanny/dj-notebook/blob/master/CHANGELOG.md"
homepage = "https://github.com/pydanny/dj-notebook"
documentation = "https://dj-notebook.readthedocs.io/"
[tool.setuptools]
package-dir = {"" = "src"}
# Mypy
# ----
[tool.mypy]
files = "."
exclude = [
"tests/*"
]
# Use strict defaults
strict = true
warn_unreachable = true
warn_no_return = true
[[tool.mypy.overrides]]
# Don't require test functions to include types
module = "tests.*"
allow_untyped_defs = true
disable_error_code = "attr-defined"
# Ruff
# ----
[tool.ruff]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
]
ignore = [
"E501", # line too long - black takes care of this for us
]
[tool.ruff.per-file-ignores]
# Allow unused imports in __init__ files as these are convenience imports
"**/__init__.py" = [ "F401" ]
[tool.ruff.isort]
lines-after-imports = 2
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"project",
"local-folder",
]
[tool.ruff.isort.sections]
"project" = [
"src",
"tests",
]