-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (100 loc) · 3.18 KB
/
pyproject.toml
File metadata and controls
113 lines (100 loc) · 3.18 KB
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
[tool.poetry]
name = "pyproject"
version = "23.3.1.dev0"
description = "A template for your Python project. It uses Poetry as a dependency manager and Apache 2.0 as its license."
license = "Apache-2.0"
authors = [
"Omar Abel Rodríguez-López <oarodriguez.mx@gmail.com>"
]
readme = "README.md"
homepage = "https://github.com/oarodriguez/python-project"
repository = "https://github.com/oarodriguez/python-project"
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Version Control :: Git",
]
packages = [
{ include = "pyproject", from = "src" }
]
[tool.poetry.dependencies]
python = ">=3.8.1,<3.11"
click = ">=8.0.1"
attrs = ">=20.3.0"
importlib-metadata = { version = ">=3.3.0", python = "<3.8" }
jupyter = { version = ">=1.0.0", optional = true }
jupyterlab = { version = ">=3.0.12", optional = true }
jupyterlab-code-formatter = { version = ">=1.4.5", optional = true }
jupytext = { version = ">=1.11.1", optional = true }
# First, install python-lsp-server, and next, install jupyterlab-lsp.
# This installation order may remedy issues while installing these
# dependencies with Poetry.
python-lsp-server = { version = ">=1.4.1", optional = true }
jupyterlab-lsp = { version = ">=3.10.1", optional = true }
nbqa = { version = ">=1.6.4", optional = true }
[tool.poetry.group.dev.dependencies]
pytest = ">=6.2.2"
black = ">=20.8b1"
isort = ">=5.8.0"
flake8 = ">=3.9.0"
mypy = ">=0.812"
pydocstyle = ">=6.0.0"
Sphinx = ">=3.5.4"
sphinx-rtd-theme = ">=0.5.2"
hypothesis = ">=6.10.1"
coverage = ">=5.5"
pytest-cov = ">=2.12.0"
pre-commit = ">=2.13.0"
rope = ">=0.19.0"
mdformat = ">=0.7.14"
[tool.poetry.extras]
jupyter = ["jupyter", "jupyterlab"]
jupyter-enhancements = ["jupyterlab-code-formatter", "jupytext", "nbqa"]
jupyterlab-lsp = ["jupyterlab-lsp", "python-lsp-server"]
[tool.black]
line-length = 79
target-version = ["py38", "py39", "py310"]
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 79
src_paths = ["src"]
[tool.pydocstyle]
# Include all files, even tests.
match = ".*\\.py"
[tool.pytest.ini_options]
addopts = "-s -vv -ra"
testpaths = ["tests"]
[tool.coverage.paths]
source = ["src"]
[tool.coverage.run]
parallel = true
branch = true
source = ["pyproject"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
]
[tool.coverage.html]
directory = "htmlcov"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"