-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
100 lines (87 loc) · 2.06 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
[project]
name = "dune-sync"
dynamic = ['version', 'dependencies']
[tool.poetry]
package-mode = false
name = "dune-sync"
description = ""
authors = [
"Benjamin Smith <[email protected]>",
"mooster531 <[email protected]>",
"Felix Leupold <[email protected]>"
]
[tool.poetry.dependencies]
python = ">=3.12,<3.14"
dune-client = ">=1.7.7"
pandas = "*"
sqlalchemy = "*"
python-dotenv = "*"
psycopg2-binary = "*"
tomli = "*"
pyyaml = "*"
prometheus-client = "*"
[tool.poetry.dev-dependencies]
black = "*"
pylint = "*"
pre-commit = "*"
pytest = "*"
pytest-cov="*"
pytest-asyncio = "*"
pandas-stubs = "*"
sqlalchemy-stubs = "*"
coverage = "*"
ruff = "*"
mypy = "*"
mypy-extensions = "*"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py313"
line-length = 88
exclude = [
".git",
".ruff_cache",
".venv",
"venv",
"__pycache__",
"build",
"dist",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"N", # pep8-naming
"D", # pydocstring
"T20", # flake8-print
"RET", # flake8-return
"PL", # pylint
]
ignore = [
"D104", # Missing docstring in public package
"D203", # Remove to avoid conflict with D211
"D213", # Remove to avoid conflict with D212
"D107", # Missing docstring in __init__
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = [
"D", # Ignore all docstring rules in tests
"T20", # Allow print statements in tests
"N802", # Allow function names like "test_someFunction_does_something"
"B018", # Allow using mock objects without explicit assert
"RET", # Allow multiple returns in test functions
"E731", # Allow lambda assignments in tests
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.ruff.lint.isort]
known-first-party = ["src", "tests"]
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"