-
Notifications
You must be signed in to change notification settings - Fork 71
/
pyproject.toml
153 lines (136 loc) · 3.46 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[tool.poetry]
name = "markdown_to_json"
version = "2.1.1"
description = "Markdown to dict and json deserializer"
authors = ["Nathan Vack <[email protected]>"]
keywords = ["serializer", "deserializer", "markdown",]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
include = [
"markdown_to_json/**/*.py",
"markdown_to_json/**/*.md",
"markdown_to_json/**/*.txt",
"markdown_to_json/**/*.html",
"markdown_to_json/**/*.jinja",
]
exclude = [
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/njvack/markdown_to_json"
homepage = "https://github.com/njvack/markdown_to_json"
documentation ="https://github.com/njvack/markdown_to_json"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/njvack/markdown_to_json/issues"
"Change Log" = "https://github.com/njvack/markdown_to_json/blob/main/CHANGELOG.md"
[tool.poetry.dependencies]
python = ">=3.8"
[tool.poetry.dev-dependencies]
pytest-cov = ">=5.0.0"
pytest = ">=8.2.0"
vermin = ">=1.6.0 "
tox = ">=4.15.0"
isort = ">=5.13.2"
bandit = ">=1.7.8"
black = ">=24.4.2"
pylint = ">=3.1.0 "
ruff = ">=0.4.3"
mypy = ">=1.10.0"
pre-commit = ">=2"
pytest-mock = "*"
[tool.poetry.scripts]
md_to_json = 'markdown_to_json.scripts.md_to_json:main'
[tool.black]
line-length = 120
target-version = ['py39']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests",
]
junit_family = "xunit1"
norecursedirs = ["vendor", "scripts"]
[tool.isort]
default_section = "THIRDPARTY"
force_grid_wrap = 0
include_trailing_comma = true
known_first_party = ["markdown_to_json"]
line_length = 88
multi_line_output = 3
use_parentheses = true
[tool.ruff]
line-length = 1000
# Enable Pyflakes `E` and `F` codes by default.
select = ["E", "F"]
ignore = [
"E722",
"E501",
]
# Exclude a variety of commonly ignored directories.
exclude = [
"markdown_to_json/vendor",
"dead_code",
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"hide"
]
per-file-ignores = { }
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.10.
target-version = "py311"
[tool.scriv]
format = "md"
version = "literal: pyproject.toml: project.version"
[tool.hatch.version]
path = "markdown_to_json/__init__.py"
output_file = "CHANGELOG.${config:format}"