-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (62 loc) · 2.37 KB
/
Copy pathpyproject.toml
File metadata and controls
72 lines (62 loc) · 2.37 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "apimoex"
version = "1.5.0"
description = "MOEX ISS API"
authors = [{ name = "Mikhail Korotkov aka WLMike", email = "wlmike@gmail.com" }]
readme = "README.rst"
requires-python = ">=3.14"
license = { text = "http://unlicense.org" }
dependencies = ["requests>=2.31.0"]
[dependency-groups]
dev = [
"pandas>=2.1.4",
"pyright>=1.1.337",
"pytest>=7.4.3",
"pytest-cov>=4.1.0",
"ruff>=0.1.6",
"sphinx>=7.2.6",
"aiohttp_theme>=0.1.6",
]
[tool.pyright]
verboseOutput = true
pythonVersion = "3.14"
typeCheckingMode = "strict"
exclude = ["**/tests/*"]
[tool.pytest.ini_options]
addopts = "--cov-report=term-missing --setup-show --verbose"
[tool.coverage.run]
branch = true
[tool.ruff]
line-length = 120
fix = true
[tool.ruff.lint]
select = ["ALL"]
fixable = ["ALL"]
ignore = [
"COM812", # Missing-trailing-comma - ruff format recommendations
"D203", # One-blank-line-before-class (D203) and no-blank-line-before-class (D211) are incompatible
"D213", # Multi-line-summary-first-line (D212) and multi-line-summary-second-line (D213) are incompatible
"EM101", # Exception must not use a string literal, assign to variable first - don't like many exceptions
"EM102", # Exception must not use an f-string literal, assign to variable first - don't like many exceptions
"ISC001", # Single-line-implicit-string-concatenation - ruff format recommendations
"PLR0913", # Too many arguments in function definition - required in this library
"RUF001", # Ambiguous-unicode-character-string - russian
"RUF002", # Ambiguous-unicode-character-docstring - russian
"RUF003", # Ambiguous-unicode-character-comment - russian
"TRY003", # Avoid specifying long messages outside the exception class - don't like many exceptions
]
[tool.ruff.lint.per-file-ignores]
"tests/**.py" = [
"ANN001", # Missing type annotation for function argument
"ANN201", # Missing return type annotation for public function
"D100", # Missing docstring in public module
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"EXE002", # The file is executable but no shebang is present
"S101", # Use of `assert` detected
"SLF001", # Private member accessed
"PLR2004", # Magic value used in comparison
]