update deps, add util config
This commit is contained in:
parent
53f09b72db
commit
8f0e420a8f
3 changed files with 248 additions and 11 deletions
|
@ -8,7 +8,9 @@ authors = [
|
|||
]
|
||||
requires-python = ">=3.12"
|
||||
dependencies = [
|
||||
"frontmatter>=3.0.8",
|
||||
"dacite>=1.9.2",
|
||||
"python-dateutil>=2.9.0.post0",
|
||||
"python-frontmatter>=1.1.0",
|
||||
"typer>=0.16.0",
|
||||
]
|
||||
|
||||
|
@ -18,3 +20,56 @@ zona = "zona.cli:main"
|
|||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.basedpyright]
|
||||
include = ["src"]
|
||||
exclude = [
|
||||
"**/node_modules",
|
||||
"**/__pycache__",
|
||||
"src/experimental",
|
||||
"src/typestubs",
|
||||
"src/typings",
|
||||
]
|
||||
executionEnvironments = [
|
||||
{ root = "src" },
|
||||
{ root = "tests", extraPaths = [
|
||||
"src",
|
||||
], reportPrivateUsage = false },
|
||||
]
|
||||
# off | basic | standard | strict | recommended | all
|
||||
typeCheckingMode = "recommended"
|
||||
reportExplicitAny = false
|
||||
allowedUntypedLibraries = ["frontmatter"]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 80
|
||||
indent-width = 4
|
||||
target-version = "py311"
|
||||
|
||||
[tool.ruff.lint]
|
||||
fixable = ["ALL"]
|
||||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
||||
select = ["E4", "E7", "E9", "F"]
|
||||
ignore = []
|
||||
|
||||
[tool.ruff.format]
|
||||
quote-style = "double"
|
||||
indent-style = "space"
|
||||
docstring-code-format = true
|
||||
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
pythonpath = "src"
|
||||
testpaths = ["tests"]
|
||||
filterwarnings = [
|
||||
"ignore::DeprecationWarning",
|
||||
"ignore::UserWarning",
|
||||
"ignore::FutureWarning",
|
||||
]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"basedpyright>=1.29.4",
|
||||
"pytest>=8.4.0",
|
||||
"ruff>=0.11.13",
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue