-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
162 lines (140 loc) · 4.03 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
#!/usr/bin/env python
# Tinta
# Copyright 2024 github.com/brandoncript
# This program is bound to the Hippocratic License 2.1
# Full text is available here:
# https://firstdonoharm.dev/version/2/1/license
# Further to adherence to the Hippocratic License, permission is hereby
# granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the "Software") under the terms of the
# MIT License to deal in the Software without restriction, including without
# limitation the rights to use, copy, modify, merge, publish, distribute,
# sublicense, and / or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the conditions layed
# out in the MIT License.
# Where a conflict or dispute would arise between these two licenses, HLv2.1
# shall take precedence.
[project]
name = "tinta"
version = "0.1.7b5-post1"
description = "Tinta, a magical console output tool."
authors = [{ name = "Brandon Shelley", email = "brandon@pacificaviator.co" }]
license = "MIT"
readme = "README.md"
dependencies = []
keywords = [
"console",
"colors",
"ansi",
"print",
"term",
"cli",
"terminal",
"development",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Environment :: Console",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"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 :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.urls]
homepage = "https://github.com/brandonscript/tinta"
repository = "https://github.com/brandonscript/tinta"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatchling.build]
packages = ["tinta"]
include = ["tinta/**/*.py", "tinta/**/*.pyi", "tinta/colors.ini", "/tests"]
exclude = [".*", "dist"]
[tool.hatchling.dependencies]
python = "^3.6"
[tool.hatchling.dev-dependencies]
pytest = "^6.2.4"
twine = "^3.4.2"
wheel = "^0.36.2"
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
explicit_package_bases = true
ignore_missing_imports = true
check_untyped_defs = true
[tool.mypy-applications]
ignore_missing_imports = false
[tool.mypy-common]
ignore_missing_imports = false
check_untyped_defs = true
[tool.black]
target-version = ['py311']
preview = true
[tool.isort]
profile = "black"
order_by_type = false
combine_as_imports = true
case_sensitive = false
skip_magic_trailing_comma = true
force_sort_within_sections = false
[tool.pyright]
# verboseOutput = true
pythonVersion = "3.11"
extraPaths = [".venv/lib/python3.11/site-packages", "tinta", "**/*.py"]
reportUnusedImport = "error"
reportUnusedClass = "error"
reportUnusedFunction = "error"
reportUnusedVariable = "error"
[tool.ruff]
target-version = "py311"
line-length = 100
indent-width = 4
preview = true
[tool.ruff.lint]
fixable = ["ALL"]
select = [
# PRAGMA: F401 is for unused imports, you may want to remove this when developing so you can comment/uncomment code.
"F401",
"W292",
"W293",
"W191",
"E101",
"E112",
"E117",
"I002",
"I001",
"I002",
# "UP035",
]
# To add, when supported by ruff: "W503", "E203"
# see: https://github.com/astral-sh/ruff/issues/2402
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"typ.py" = ["F401"]
[tool.ruff.lint.isort]
force-sort-within-sections = false
case-sensitive = false
combine-as-imports = true
force-wrap-aliases = true
order-by-type = false
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
skip-magic-trailing-comma = false
quote-style = "double"
[tool.pytest.ini_options]
pythonpath = ["."]
minversion = "7.0"
addopts = "-rP -vv --color=yes --capture=tee-sys"
testpaths = ["tests"]
python_files = ["*_test.py", "test_*.py"]
python_classes = ["test_", "_test", "Test*"]
python_functions = ["test_", "_test"]