-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (109 loc) · 2.78 KB
/
Copy pathpyproject.toml
File metadata and controls
122 lines (109 loc) · 2.78 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
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
[tool.uv.workspace]
members = ["pkg/*"]
[project]
name = "perexchange-monorepo"
version = "1.0.0"
description = "Monorepo for perexchange project"
requires-python = ">=3.9"
maintainers = [
{ name = "David Duran", email = "dadch1404@gmail.com" },
]
dependencies = []
[project.optional-dependencies]
dev = [
"mypy>=1.11.0",
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
]
[tool.ruff]
fix = true
line-length = 88
target-version = "py310"
[tool.ruff.lint]
preview = true
extend-select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # mccabe
"COM", # flake8-commas
"CPY", # flake8-copyright
"DTZ", # flake8-datetimez
"EM", # flake8-errmsg
"ERA", # flake8-eradicate/eradicate
"EXE", # flake8-executable
"F", # pyflakes
"FA", # flake8-future-annotations
"FBT", # flake8-boolean-trap
"FIX", # flake8-fixme
"FLY", # flynt
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"PGH", # pygrep
"PIE", # flake8-pie
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # ruff checks
"SIM", # flake8-simplify
"T10", # flake8-debugger
# "T20", # flake8-print
"TC", # flake8-type-checking
"TD", # flake8-todos
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
]
ignore = ["COM812", "TRY300", "CPY001"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.isort]
force-single-line = false
lines-between-types = 1
lines-after-imports = 2
order-by-type = true
relative-imports-order = "closest-to-furthest"
extra-standard-library = ["typing"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.pytest.ini_options]
testpaths = ["pkg/core/tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
markers = [
"integration: marks tests that hit the actual website (deselect with '-m \"not integration\"')",
]
addopts = [
"-v",
"--strict-markers",
"-m", "not integration",
]
[tool.coverage.run]
source = ["pkg/core/perexchange"]
omit = ["pkg/core/tests/*", "**/__pycache__/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[tool.mypy]
files = ["pkg/core/perexchange"]
strict = true
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]