-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
129 lines (115 loc) · 3.28 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
[build-system]
requires = ["setuptools>=42", "setuptools-scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "entitysdk"
dependencies = [
"httpx",
"pydantic",
"pydantic-settings",
]
authors = [
{name = "Open Brain Institute", email = "info@openbraininstitute.org"}
]
maintainers = [
{name = "Open Brain Institute", email = "info@openbraininstitute.org"}
]
description = "Python library for interacting with the entitycore service"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "Apache-2.0"}
classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = ["version"]
[project.urls]
documentation = "https://entitysdk.readthedocs.io/en/stable"
repository = "https://github.com/openbraininstitute/entitysdk"
changelog = "https://github.com/openbraininstitute/entitysdk/CHANGELOG.md"
[tool.setuptools_scm]
local_scheme = "no-local-version"
[tool.pytest.ini_options]
addopts = [
"-vv",
"-ra",
"--import-mode=importlib",
"--durations=10",
"--durations-min=1.0",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"B", # bugbear
"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"S", # bandit
"UP", # pyupgrade
]
ignore = [
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"ANN", # Missing type annotation
"D", # pydocstyle
"ERA001", # Found commented-out code
"INP001", # Missing `__init__.py`
"PLC2701", # Private name import from external module
"PLR2004", # magic value (constant) used in comparison (i.e. expected == 3)
"S101", # Use of `assert` detected
"S106", # Magic value
"SIM117", # Use a single `with` statement with multiple contexts
"SLF001", # private member access
]
[tool.ruff.lint.pylint]
# Maximum number of arguments for function / method
max-args = 12
# Maximum number of locals for function / method body
max-locals = 15
# Maximum number of return / yield for function / method body
max-returns = 6
# Maximum number of branch for function / method body
max-branches = 12
# Maximum number of statements in function / method body
max-statements = 50
# Maximum number of public methods for a class (see R0904).
max-public-methods = 60
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
docstring-code-format = true
# Set the line length limit used when formatting code snippets in
# docstrings.
docstring-code-line-length = 100
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
[tool.coverage.paths]
source = [
"src",
"*/site-packages",
]
[tool.coverage.run]
branch = true
parallel = false
[tool.coverage.report]
show_missing = true
precision = 0
fail_under = 80
[tool.mypy]
show_error_codes = true
ignore_missing_imports = true
allow_redefinition = true