-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (75 loc) · 2.14 KB
/
pyproject.toml
File metadata and controls
87 lines (75 loc) · 2.14 KB
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
[project]
name = "pystapi"
version = "0.0.0" # This package should never be released, only the workspace members should be
description = "Monorepo for Satellite Tasking API (STAPI) Specification Python packages"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"pystapi-client",
"pystapi-validator",
"stapi-pydantic",
"stapi-fastapi",
]
[dependency-groups]
dev = [
"mypy>=1.15.0",
"ruff>=0.11.2",
"pymarkdownlnt>=0.9.25",
"pre-commit>=4.2.0",
"pre-commit-hooks>=5.0.0",
"pygithub>=2.6.1",
]
docs = [
"mkdocs-material>=9.6.11",
"mkdocstrings-python>=1.16.8",
]
[tool.uv]
default-groups = ["dev", "docs"]
[tool.uv.workspace]
members = ["pystapi-validator", "stapi-pydantic", "pystapi-client", "stapi-fastapi"]
[tool.uv.sources]
pystapi-client.workspace = true
pystapi-validator.workspace = true
stapi-pydantic.workspace = true
stapi-fastapi.workspace = true
[tool.ruff]
line-length = 120
[tool.ruff.format]
quote-style = 'double'
[tool.ruff.lint]
select = [
"E", # pydocstyle error
"W", # pydocstyle warning
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade
"C9" # mccabe complexity
]
[tool.ruff.lint.mccabe]
max-complexity = 8 # default 10
[tool.mypy]
strict = true
files = [
"pystapi-client/src/pystapi_client/**/*.py",
"pystapi-validator/src/pystapi_validator/**/*.py",
"stapi-pydantic/src/stapi_pydantic/**/*.py",
"stapi-fastapi/src/stapi_fastapi/**/*.py"
]
[[tool.mypy.overrides]]
module = "pygeofilter.parsers.*"
ignore_missing_imports = true
[tool.pymarkdown]
plugins.md013.enabled = false # @gadomski likes to do one-line-per-sentence in markdown
plugins.md024.enabled = false # duplicate headers in changelog
plugins.md041.enabled = false # github templates don't start with an h1
plugins.md046.enabled = false # code block style (we use both for mkdocs)
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore:The 'app' shortcut is now deprecated.:DeprecationWarning",
"ignore:Pydantic serializer warnings:UserWarning",
"ignore:jsonschema.exceptions.RefResolutionError is deprecated:DeprecationWarning",
]
markers = [
"mock_products",
]