forked from psipred/Merizo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
177 lines (149 loc) · 3.75 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[project]
name = "Merizo"
version = "0.0.0"
description = " Merizo "
readme = "README.md"
requires-python = "==3.11.11"
maintainers = [{ name = "Hyeonsung Byeon", email = "[email protected]" }]
[project.urls]
repository = "https://github.com/seoklab/Merizo.git"
[project.optional-dependencies]
test = ["pytest"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 79
target-version = "py311"
src = ["src"]
extend-include = ["*.pyi", "*.ipynb"]
extend-exclude = [".github/**", "*.pyc"]
[tool.ruff.lint]
extend-select = [
"W6",
"I",
"N80",
"S102",
"S108",
"S306",
"S307",
"S60",
"B",
"A",
"PT",
"PTH",
"PLE",
"PLW",
"NPY",
"RUF",
]
ignore = [
"E74",
"F403",
"F405",
"N803",
"N806",
"S603",
"S607",
"B008",
"B905",
"PTH123",
"PLW2901",
]
dummy-variable-rgx = "^_$"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.lint.isort]
no-lines-before = ["local-folder"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = true
mark-parentheses = true
[tool.mypy]
files = ["src/model/", "scripts/"]
mypy_path = "$MYPY_CONFIG_FILE_DIR/src"
plugins = ["pydantic.mypy"]
check_untyped_defs = true
disallow_any_explicit = true
disallow_any_generics = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
allow_redefinition = true
local_partial_types = true
disable_error_code = ["import-untyped", "no-redef"]
show_error_context = true
show_column_numbers = true
[[tool.mypy.overrides]]
module = ["rdkit.*", "lightning.*", "Bio.*"]
follow_imports = "skip"
follow_imports_for_stubs = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.coverage.run]
command_line = "-m pytest -v -s"
branch = true
relative_files = true
dynamic_context = "test_function"
source = ["src"]
[tool.coverage.report]
skip_covered = true
skip_empty = true
sort = "-cover"
exclude_also = [
"def __repr__",
"@abstractmethod",
"if __name__ == ['\"]__main__['\"]:",
]
[tool.coverage.html]
show_contexts = true
skip_covered = false
skip_empty = true
[tool.pyright]
include = ["src", "tests", "scripts"]
pythonVersion = "3.11"
pythonPlatform = "Linux"
strictParameterNoneValue = false
reportGeneralTypeIssues = "information"
reportUnusedImport = "warning"
reportUnusedClass = "warning"
reportUnusedFunction = "warning"
reportUnusedVariable = "warning"
reportDuplicateImport = "warning"
reportWildcardImportFromLibrary = "none"
reportOptionalSubscript = "warning"
reportOptionalMemberAccess = "warning"
reportOptionalCall = "warning"
reportOptionalIterable = "warning"
reportOptionalContextManager = "warning"
reportOptionalOperand = "warning"
reportPrivateImportUsage = "none"
reportIncompatibleMethodOverride = "none"
reportIncompatibleVariableOverride = "warning"
reportInconsistentConstructor = "warning"
reportOverlappingOverload = "warning"
reportUninitializedInstanceVariable = "warning"
reportInvalidStringEscapeSequence = "error"
reportUnnecessaryIsInstance = "warning"
reportUnnecessaryCast = "warning"
reportUnnecessaryComparison = "warning"
reportUnnecessaryContains = "warning"
reportAssertAlwaysTrue = "warning"
reportSelfClsParameterName = "warning"
reportImplicitStringConcatenation = "information"
reportInvalidStubStatement = "warning"
reportIncompleteStub = "warning"
reportUnnecessaryTypeIgnoreComment = "none"
reportMatchNotExhaustive = "warning"
reportShadowedImports = "warning"
reportPossiblyUnboundVariable = "none"
# Covered by mypy
reportAssignmentType = "none"
reportAttributeAccessIssue = "none"
reportArgumentType = "none"
reportCallIssue = "none"
reportReturnType = "none"