-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
110 lines (98 loc) · 1.84 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
[project]
name = "protocol-v1"
description = "Lending Protocol by Zharta"
classifiers = ["Private :: Do Not Upload"]
version = "0"
dependencies = [
"eth-ape",
"vyper==0.3.10",
"ape-vyper",
"ape-foundry",
"ape-alchemy",
]
[project.optional-dependencies]
dev = [
"titanoboa==0.1.10b1",
"boto3",
"click",
"coverage",
"hypothesis",
"ipython",
"mypy",
"pre-commit",
"pytest",
"pytest-bdd",
"pytest-xdist",
"python-lsp-server",
"rich",
"rope",
"ruff",
# "vyper-lsp",
]
[build-system]
requires = ["setuptools>=63", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["scripts"]
[tool.pytest.ini_options]
log_file = "pytest-logs.txt"
addopts = """
-p no:ape_test
-vv
--durations=10
"""
[tool.ruff]
lint.select = ["ALL"]
lint.ignore = ["ANN", "B905", "BLE", "COM812", "CPY", "D", "DTZ", "EM", "FIX", "ISC001", "PLR0913", "PLR2004", "S", "TCH", "TD", "TRY003"]
line-length = 127
lint.preview = true
target-version = "py311"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"ape_console_extras.py" = ["T201"]
"tests/*.py" = [
"ARG001",
"ERA001",
"F401",
"FBT003",
"N815",
"PLC1901",
"PLR0914",
"PLR0915",
"PLR0917",
"PT004",
"PT022",
"PTH",
"PYI024",
"RUF029",
"RUF100",
"SLF001",
"T201",
"TID252",
]
"scripts/*.py" = [
"A001",
"ERA001",
"FURB101",
"FURB103",
"ERA001",
"PLW1514",
"PTH123",
"T201",
"UP015"
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.coverage.run]
plugins = [ "boa.coverage" ]
relative_files = true
omit = [
"contracts/auxiliary/*",
"tests/stubs/*",
"None"
]
[tool.coverage.paths]
source = ["contracts"]
[tool.coverage.report]
show_missing = true