-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
63 lines (53 loc) · 1.28 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
[project]
name = "sadel"
version = "0.1.0"
description = "Helper class for upserting records to database"
authors = [
{ name = "Daniël Tom", email = "d.e.tom89@gmail.com" }
]
dependencies = [
"sqlmodel~=0.0.21",
]
readme = "README.md"
requires-python = ">= 3.10"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.rye]
universal = true
managed = true
dev-dependencies = [
"pyright~=1.1.374",
"pytest~=8.3.2",
"setuptools~=72.1.0",
"pytest-asyncio~=0.23.8",
"aiosqlite~=0.20.0",
"greenlet~=3.0.3",
"pytest-cov~=5.0.0",
]
[tool.rye.scripts]
fmt = "rye fmt"
lint = "rye lint --fix"
check = "pyright"
test = "rye test -- --cov sadel --cov-report term-missing --cov-report xml:coverage.xml --junitxml=junit/report.xml"
all = { chain = ["fmt", "lint", "check", "test"] }
[tool.pyright]
venvPath = "."
venv = ".venv"
strict = ["**/*.py"]
pythonVersion = "3.9"
include = ["sadel/**/*.py"]
[tool.ruff]
target-version = "py39"
line-length = 100
[tool.ruff.lint]
select = [
"A", # warn about shadowing built-ins
"E", # style stuff, whitespaces
"F", # important pyflakes lints
"I", # import sorting
"N", # naming
"T100", # breakpoints (probably don't want these in prod!)
]
[tool.ruff.lint.isort]
known-first-party = ["sadel"]