-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
134 lines (118 loc) · 2.91 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
[build-system]
requires = ["hatchling", "hatch-regex-commit"]
build-backend = "hatchling.build"
[project]
name = "nextline-graphql"
dynamic = ["version"]
description = "A GraphQL API for Nextline"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [
{ name = "Simons Observatory", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"nextline>=0.7.15",
"apluggy>=1.0",
"dynaconf>=3.2",
"starlette>=0.31",
"strawberry-graphql>=0.241",
"websockets>=12.0",
"rich>=13.6",
"async-asgi-testclient>=1.4",
]
[project.optional-dependencies]
dev = ["black", "flake8", "logging_tree", "mypy", "tox", "twine", "uvicorn"]
tests = [
"pytest-asyncio>=0.21",
"pytest-cov>=4.1",
"pytest-timeout>=2.2",
"pytest>=7.4",
"syrupy>=4.6",
]
[project.urls]
Homepage = "https://github.com/simonsobs/nextline"
[tool.hatch.version]
source = "regex_commit"
path = "nextlinegraphql/__about__.py"
tag_sign = false
[tool.hatch.build]
include = ["/nextlinegraphql"]
[tool.hatch.build.targets.sdist]
include = ["/nextlinegraphql"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
timeout = 60
addopts = "--doctest-modules"
# doctest_optionflags = ["ELLIPSIS", "NORMALIZE_WHITESPACE",]
doctest_optionflags = ["ELLIPSIS"]
norecursedirs = "nextlinegraphql/plugins/db/alembic build"
log_cli = false
log_cli_level = "INFO"
[tool.coverage.run]
branch = true
source = ["nextlinegraphql", "tests"]
concurrency = ["multiprocessing"]
omit = [
"nextlinegraphql/plugins/ctrl/example_script/*",
"venv/*",
"*/site-packages/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self\\.debug",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
'if __name__ == "__main__":',
"if TYPE_CHECKING:",
]
ignore_errors = true
[tool.ruff]
line-length = 88
extend-exclude = ["example_script"]
[tool.ruff.format]
quote-style = "preserve"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
]
ignore = [
"E203", # Whitespace before '{symbol}'
"E265", # Block comment should start with #
"E266", # Too many leading # before block comment
"E501", # Line too long ({width} > {limit})
"E741", # Ambiguous variable name '{name}'
]
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.ruff.lint.isort]
known-first-party = ["nextline"]
[tool.mypy]
plugins = "strawberry.ext.mypy_plugin"
exclude = '''(?x)(
example_script/.*\.py$
)'''
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"dynaconf.*",
"async_asgi_testclient.*",
"snapshottest.*",
"apluggy.*",
]
ignore_missing_imports = true