-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
133 lines (122 loc) · 2.93 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
[tool.poetry]
name = "nautilus_data"
version = "0.15.0"
description = ""
authors = ["Nautech Systems <[email protected]>"]
[tool.poetry.dependencies]
python = ">=3.11,<3.13"
nautilus_trader = ">=1.204.0"
requests = "^2.32"
[build-system]
requires = ["poetry-core>=1.9.1"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py311"
line-length = 100
select = [
"C4",
"E",
"F",
"W",
"C90",
"D",
# "DTZ",
"UP",
"S",
"T10",
"ICN",
"PIE",
# "PT",
"PYI",
"Q",
"I",
"RSE",
"TID",
# "SIM",
# "ARG",
# "ERA",
"PD",
# "PGH",
# "PLW",
"NPY",
"RUF",
]
ignore = [
"D100", # Missing docstring in public module **fix**
"D101",
"D102", # Missing docstring in public method **fix**
"D103", # Missing docstring in public function **fix**
"D104", # Missing docstring in public package **fix**
"D107",
"D105",
"D200", # One-line docstring should fit on one line with quotes (optional style)
"D203", # 1 blank line required before class docstring (optional style)
"D205", # 1 blank line required between summary line and description (optional style)
"D212", # Multi-line docstring summary should start at the first line (optional style)
"D400", # First line should end with a period (not always a first line)
"D413", # Missing blank line after last section ('Parameters')
"D415", # First line should end with a period, question mark, or exclamation point (not always a first line)
"D416", # Section name should end with a colon ('Warnings:', not 'Warnings') (incorrect?)
"E741", # Ambiguous variable name (single char)
"PD901", # `df` is a bad variable name. Be kinder to your future self
"S101", # Use of assert detected (OK in test suite)
"S105", # Use of hardcoded password (spurious)
"S106", # Use of hardcoded password (spurious)
"S113", # Probable use of requests call without timeout **fix**
]
# Allow autofix for all enabled rules (when `--fix`) is provided
fixable = [
"A",
"B",
"C",
"C4",
"D",
"DTZ",
"E",
"F",
"UP",
"S",
"W",
"I",
"PIE",
"PT",
"PYI",
"RSE",
"TID",
"ARG",
"PD",
"SIM",
# "PGH",
"NPY",
"RUF",
]
unfixable = []
exclude = [
".benchmarks",
".eggs",
".git",
".mypy_cache",
".pytest_cache",
".ruff_cache",
".venv",
"build",
"dist",
"venv",
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.isort]
force-single-line = true
single-line-exclusions = ["typing"]
lines-after-imports = 2
[tool.ruff.mccabe]
max-complexity = 10
[tool.mypy]
python_version = "3.11"
disallow_incomplete_defs = true
explicit_package_bases = true
ignore_missing_imports = true
namespace_packages = true
warn_no_return = true
warn_unused_configs = true
warn_unused_ignores = true