-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
executable file
·117 lines (95 loc) · 2.92 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project.entry-points.midgy]
md = "midgy.tangle:Markdown"
markdown = "midgy.tangle:Markdown"
py = "midgy.language.python:Python"
python = "midgy.language.python:Python"
# yml = "midgy.language.yaml:Yml"
# yaml = "midgy.language.yaml:Yaml"
# js = "midgy.language.js:Js"
# javascript = "midgy.language.js:Js"
# toml = "midgy.language.toml:Toml"
[tool.hatch.build.targets.sdist]
[tool.hatch.build.targets.wheel]
[project]
name = "midgy"
description = "run markdown as python code"
readme = "README.md"
requires-python = ">=3.7"
license-files = { paths = ["LICENSE"] }
keywords = []
authors = [{ name = "tonyfast", email = "tony.fast@gmail.com" }]
classifiers = [
"Development Status :: 4 - Beta",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: BSD License",
]
dependencies = [
"markdown-it-py[plugins,linkify]",
"importnb",
]
dynamic = ["version"]
[project.optional-dependencies]
test = ["pytest"]
black = ["black"]
rich = ["rich"]
[project.scripts]
midgy = "midgy.__main__:main"
[project.urls]
Documentation = "https://github.com/deathbeds/midgy#readme"
Issues = "https://github.com/deathbeds/midgy/issues"
Source = "https://github.com/deathbeds/midgy"
[project.entry-points.importnb]
md = "midgy.loader:Markdown"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/midgy/_version.py"
[tool.coverage.html]
directory = "docs/coverage"
[tool.hatch.envs.test]
description = "the testing environment"
dependencies = ["pytest", "pytest-cov", "ruamel.yaml"]
[tool.hatch.envs.test.scripts]
cov = "pytest"
[tool.pytest.ini_options]
addopts = "-pno:warnings -vv --cov=midgy --cov-report html:docs/coverage --ignore site"
[tool.coverage.run]
omit = ["*/__*__.py", "*/_version.py", "site/*"]
[tool.hatch.envs.docs]
description = "the docs environment"
dependencies = ["mkdocs", "mkdocs-material", "ruamel.yaml"]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build"
serve = "mkdocs serve"
# formatting cause linting sucks
[tool.isort]
profile = "black"
[tool.black]
line_length = 100
[tool.hatch.envs.format]
description = "the formatting environment"
skip-install = true
dependencies = ["black", "isort"]
[tool.hatch.envs.format.scripts]
code = """
isort .
black .
"""
[tool.doit]
verbosity = 2
loader = "doitoml"
backend = "json"
[tool.doitoml.tasks.dev]
doc = "install midgy (and eventually pidgy in dev mode)"
actions = ["pip install -e."]