2023-06-27 16:01:18 +02:00
|
|
|
[build-system]
|
|
|
|
requires = ["hatchling"]
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
2023-07-25 02:40:28 +02:00
|
|
|
|
2023-06-27 16:01:18 +02:00
|
|
|
[project]
|
2023-07-28 03:56:10 +02:00
|
|
|
name = "hexdoc"
|
2023-06-27 16:01:18 +02:00
|
|
|
version = "0.1.0"
|
|
|
|
authors = [
|
|
|
|
{ name="Alwinfy" },
|
|
|
|
{ name="object-Object", email="object@objectobject.ca" },
|
|
|
|
]
|
|
|
|
readme = "README.md"
|
|
|
|
requires-python = ">=3.11"
|
|
|
|
dependencies = [
|
2023-07-04 03:18:36 +02:00
|
|
|
"typing_extensions~=4.7.0",
|
2023-08-04 05:09:31 +02:00
|
|
|
"pydantic~=2.1.1",
|
2023-07-25 02:40:28 +02:00
|
|
|
"Jinja2~=3.1.2",
|
2023-08-07 01:27:52 +02:00
|
|
|
"pyjson5~=1.6.3",
|
2023-07-25 02:40:28 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
|
|
|
dev = [
|
|
|
|
"black==23.7.0",
|
|
|
|
"isort==5.12.0",
|
2023-07-28 03:56:10 +02:00
|
|
|
"pytest~=7.3.1",
|
|
|
|
"syrupy~=4.0.2",
|
2023-08-04 05:09:31 +02:00
|
|
|
"pyright==1.1.318",
|
2023-07-28 03:56:10 +02:00
|
|
|
"hatchling",
|
2023-06-27 16:01:18 +02:00
|
|
|
]
|
|
|
|
|
2023-07-25 02:40:28 +02:00
|
|
|
[project.scripts]
|
2023-07-25 14:42:26 +02:00
|
|
|
hexdoc = "hexdoc.hexdoc:main"
|
2023-07-25 02:40:28 +02:00
|
|
|
|
2023-07-28 03:56:10 +02:00
|
|
|
[project.entry-points."hexdoc.book_data"]
|
|
|
|
"hexcasting:thehexbook" = "hexdoc._book_data"
|
|
|
|
|
2023-06-28 04:08:10 +02:00
|
|
|
[project.entry-points."hexdoc.Page"]
|
2023-07-25 02:40:28 +02:00
|
|
|
hexdoc-patchouli = "hexdoc.patchouli.page.pages"
|
|
|
|
hexdoc-hexcasting = "hexdoc.hexcasting.page.hex_pages"
|
2023-06-27 16:01:18 +02:00
|
|
|
|
2023-06-28 04:08:10 +02:00
|
|
|
[project.entry-points."hexdoc.Recipe"]
|
2023-07-25 02:40:28 +02:00
|
|
|
hexdoc-minecraft = "hexdoc.minecraft.recipe.recipes"
|
|
|
|
hexdoc-hexcasting = "hexdoc.hexcasting.hex_recipes"
|
2023-06-27 16:01:18 +02:00
|
|
|
|
2023-06-28 04:08:10 +02:00
|
|
|
[project.entry-points."hexdoc.ItemIngredient"]
|
2023-07-25 02:40:28 +02:00
|
|
|
hexdoc-minecraft = "hexdoc.minecraft.recipe.ingredients"
|
|
|
|
hexdoc-hexcasting = "hexdoc.hexcasting.hex_recipes"
|
2023-06-27 16:01:18 +02:00
|
|
|
|
2023-08-07 01:27:52 +02:00
|
|
|
[project.entry-points."hexdoc.BrainsweepeeIngredient"]
|
|
|
|
hexdoc-hexcasting = "hexdoc.hexcasting.hex_recipes"
|
|
|
|
|
2023-06-27 16:01:18 +02:00
|
|
|
|
2023-07-28 03:56:10 +02:00
|
|
|
[tool.hatch.build]
|
|
|
|
packages = ["src/hexdoc"]
|
|
|
|
|
|
|
|
|
2023-06-06 14:13:56 +02:00
|
|
|
[tool.pytest.ini_options]
|
2023-07-25 02:40:28 +02:00
|
|
|
addopts = ["--import-mode=importlib"]
|
2023-06-06 14:13:56 +02:00
|
|
|
markers = [
|
|
|
|
"filename: name of file for fixtures to create",
|
|
|
|
"file_contents: data for fixtures to write to files",
|
|
|
|
"fixture_data: other misc data",
|
|
|
|
]
|
|
|
|
|
2023-07-25 02:40:28 +02:00
|
|
|
|
2023-06-06 14:13:56 +02:00
|
|
|
[tool.coverage.report]
|
|
|
|
include_namespace_packages = true
|
2023-06-21 01:03:02 +02:00
|
|
|
|
2023-07-25 02:40:28 +02:00
|
|
|
|
2023-06-21 01:03:02 +02:00
|
|
|
[tool.isort]
|
|
|
|
profile = "black"
|
|
|
|
combine_as_imports = true
|
2023-07-25 02:40:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
[tool.pyright]
|
|
|
|
pythonVersion = "3.11"
|
|
|
|
pythonPlatform = "All"
|
|
|
|
|
2023-08-04 05:09:31 +02:00
|
|
|
include = ["src"]
|
|
|
|
|
2023-07-25 02:40:28 +02:00
|
|
|
# mostly we use strict mode
|
|
|
|
# but pyright doesn't allow decreasing error severity in strict mode
|
|
|
|
# so we need to manually specify all of the strict mode overrides so we can do that :/
|
|
|
|
typeCheckingMode = "basic"
|
|
|
|
|
|
|
|
strictDictionaryInference = true
|
|
|
|
strictListInference = true
|
|
|
|
strictSetInference = true
|
|
|
|
|
|
|
|
reportAssertAlwaysTrue = "error"
|
|
|
|
reportConstantRedefinition = "error"
|
|
|
|
reportDeprecated = "error"
|
|
|
|
reportDuplicateImport = "error"
|
|
|
|
reportFunctionMemberAccess = "error"
|
|
|
|
reportIncompatibleMethodOverride = "error"
|
|
|
|
reportIncompatibleVariableOverride = "error"
|
|
|
|
reportIncompleteStub = "error"
|
|
|
|
reportInconsistentConstructor = "error"
|
|
|
|
reportInvalidStringEscapeSequence = "error"
|
|
|
|
reportInvalidStubStatement = "error"
|
|
|
|
reportInvalidTypeVarUse = "error"
|
|
|
|
reportMatchNotExhaustive = "error"
|
|
|
|
reportMissingParameterType = "error"
|
|
|
|
reportMissingTypeStubs = "error"
|
|
|
|
reportOverlappingOverload = "error"
|
|
|
|
reportSelfClsParameterName = "error"
|
|
|
|
reportTypeCommentUsage = "error"
|
|
|
|
reportUnknownParameterType = "error"
|
|
|
|
reportUnnecessaryCast = "error"
|
|
|
|
reportUnnecessaryContains = "error"
|
|
|
|
reportUnsupportedDunderAll = "error"
|
|
|
|
reportUntypedBaseClass = "error"
|
|
|
|
reportUntypedClassDecorator = "error"
|
|
|
|
reportUntypedFunctionDecorator = "error"
|
|
|
|
reportUntypedNamedTuple = "error"
|
|
|
|
reportWildcardImportFromLibrary = "error"
|
|
|
|
|
|
|
|
reportMissingTypeArgument = "warning"
|
|
|
|
reportPrivateUsage = "warning"
|
|
|
|
reportUnknownArgumentType = "warning"
|
|
|
|
reportUnknownLambdaType = "warning"
|
|
|
|
reportUnknownMemberType = "warning"
|
|
|
|
reportUnnecessaryComparison = "warning"
|
|
|
|
reportUnnecessaryIsInstance = "warning"
|
2023-07-28 03:56:10 +02:00
|
|
|
reportUnusedClass = "warning"
|
|
|
|
reportUnusedExpression = "warning"
|
|
|
|
reportUnusedFunction = "warning"
|
2023-07-25 02:40:28 +02:00
|
|
|
reportUnusedImport = "warning"
|
2023-07-28 03:56:10 +02:00
|
|
|
reportUnusedVariable = "warning"
|
2023-07-25 02:40:28 +02:00
|
|
|
|
|
|
|
reportUnknownVariableType = "none"
|