-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
144 lines (125 loc) · 4.1 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
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
[project]
name = "table2ascii"
version = "1.1.3"
authors = [{name = "Jonah Lawrence", email = "[email protected]"}]
description = "Convert 2D Python lists into Unicode/ASCII tables"
readme = "README.md"
requires-python = ">=3.7"
license = {file = "LICENSE"}
keywords = ["table", "ascii", "unicode", "formatter"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
"Topic :: Multimedia :: Graphics :: Presentation",
"Topic :: Utilities",
"Topic :: Text Processing :: General",
"Topic :: Printing",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"typing-extensions>=3.7.4; python_version<'3.8'",
"importlib-metadata<5,>=1; python_version<'3.8'",
"wcwidth<1",
]
[project.optional-dependencies]
docs = [
"enum-tools",
"sphinx>=4.0.0,<5",
"sphinx-autobuild",
"sphinx-toolbox",
"sphinxcontrib_trio",
"sphinxext-opengraph",
"sphinx-book-theme==0.3.3",
"sphinxcontrib-applehelp==1.0.4",
"sphinxcontrib-devhelp==1.0.2",
"sphinxcontrib-htmlhelp==2.0.1",
"sphinxcontrib-qthelp==1.0.3",
"sphinxcontrib-serializinghtml==1.1.5",
]
dev = [
"mypy>=0.982,<2",
"pre-commit>=2.0.0,<5",
"pyright>=1.0.0,<2",
"pytest>=6.0.0,<9",
"slotscheck>=0.1.0,<1",
"taskipy>=1.0.0,<2",
"tox>=3.0.0,<5",
]
[project.urls]
documentation = "https://table2ascii.rtfd.io"
issue-tracker = "https://github.com/DenverCoder1/table2ascii/issues"
repository = "https://github.com/DenverCoder1/table2ascii"
[tool.black]
line-length = 100
target-version = ["py37", "py38", "py39", "py310", "py311"]
[tool.isort]
profile = "black"
py_version = 38
line_length = 100
combine_as_imports = true
filter_files = true
[tool.taskipy.tasks]
black = { cmd = "task lint black", help = "Run black" }
docs = { cmd = "cd docs && sphinx-autobuild source _build/html --ignore _build --watch ../table2ascii --port 8888", help = "Build the documentation on an autoreloading server."}
isort = { cmd = "task lint isort", help = "Run isort" }
lint = { cmd = "pre-commit run --all-files", help = "Check all files for linting errors" }
precommit = { cmd = "pre-commit install --install-hooks", help = "Install the precommit hook" }
pyright = { cmd = "pyright", help = "Run pyright" }
slotscheck = { cmd = "python -m slotscheck --verbose -m table2ascii", help = "Run slotscheck" }
test = { cmd = "tox --skip-missing-interpreters", help = "Run tests" }
[tool.slotscheck]
strict-imports = true
require-superclass = true
require-subclass = false
[tool.pyright]
typeCheckingMode = "basic"
include = [
"table2ascii",
"tests",
"*.py",
]
pythonVersion = "3.7"
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md
reportInvalidStringEscapeSequence = false
reportPropertyTypeMismatch = true
reportDuplicateImport = true
reportUntypedFunctionDecorator = true
reportUntypedClassDecorator = true
reportUntypedBaseClass = true
reportUntypedNamedTuple = true
reportUnknownLambdaType = true
reportInvalidTypeVarUse = true
reportUnnecessaryCast = true
reportSelfClsParameterName = true
reportUnsupportedDunderAll = true
reportUnusedVariable = true
reportUnnecessaryComparison = true
reportUnnecessaryTypeIgnoreComment = true
[tool.mypy]
python_version = "3.11"
namespace_packages = true
[[tool.mypy.overrides]]
module = [
"setuptools.*",
"wcwidth"
]
ignore_missing_imports = true