-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
166 lines (148 loc) · 3.65 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
154
155
156
157
158
159
160
161
162
163
164
165
166
[tool.poetry]
name = "hissbytenotation"
version = "0.2.0"
description = "Serialize and deserialize data to python source notation (hbn)"
authors = ["Matthew Martin <[email protected]>"]
keywords = ["serializer", "deserializer", "hbn",]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
include = [
"hissbytenotation/**/*.py",
"hissbytenotation/**/*.md",
"hissbytenotation/**/*.txt",
"hissbytenotation/**/*.html",
"hissbytenotation/**/*.jinja",
]
exclude = [
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/matthewdeanmartin/hissbytenotation"
homepage = "https://github.com/matthewdeanmartin/hissbytenotation"
documentation ="https://github.com/matthewdeanmartin/hissbytenotation"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/matthewdeanmartin/hissbytenotation/issues"
"Change Log" = "https://github.com/matthewdeanmartin/hissbytenotation/blob/main/CHANGES.md"
[tool.poetry.dependencies]
python = ">=3.8"
[tool.poetry.dev-dependencies]
mdformat = "*"
vermin = "*"
hypothesis = {extras = ["cli"], version = "*"}
pre-commit = "*"
mypy = "*"
pytest = "*"
pytest-cov = "*"
ruff = "*"
tox = "*"
scriv = "*"
[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"]
# don't know how to do this in toml
#addopts = "--strict-markers"
#markers =
# slow: marks tests as slow (deselect with '-m "not slow"')
# fast: marks tests as fast (deselect with '-m "not fast"')
[tool.isort]
default_section = "THIRDPARTY"
force_grid_wrap = 0
include_trailing_comma = true
known_first_party = ["hissbytenotation"]
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 = [
"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 = "hissbytenotation/__init__.py"
output_file = "CHANGELOG.${config:format}"
#[tool.setuptools]
## find = {}
#py-modules = ["hissbytenotation",
# "hissbytenotation.deserialize",
# "hissbytenotation.python_to_tables",
# "hissbytenotation.serialize",
#]
[mypy]
warn_return_any = true
warn_unused_configs = true
strict = true
[[tool.mypy.overrides]]
module = ["mistune.*"]
ignore_missing_imports = true