-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
69 lines (58 loc) · 1.38 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
[tool.poetry]
name = "pylerplate"
version = "0.3.0"
description = ""
authors = ["Dima Doroshev <dima@doroshev.com>"]
[tool.poetry.dependencies]
python = "^3.12"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.3.3"
pytest = "*"
pytest-cov = "*"
[tool.poetry.group.local]
optional = true
[tool.poetry.group.local.dependencies]
ruff = "^0.8.0"
ipdb = "0.13.13"
ptipython = "^1.0.1"
pyright = "^1.1.358"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"E", "F", "W", "C", "I", "S", "N",
"UP", "FBT", "T", "DJ", "EXE", "ISC", "INP",
"PIE", "RSE", "RET", "SIM", "TID", "TCH",
"INT", "ERA", "FLY", "NPY", "PERF", "RUF"
]
ignore = [
"C901", "DJ001", "RUF012", "S320",
"F403", "F405", # `from foo import *` is fine
"RUF001", # non-ASCII is fine
"SIM108", # don't suggest ternary operator
"S311", # allow using `random` lib
]
ignore-init-module-imports = true
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["S101", "S105"]
"__init__.py" = ["F401"]
[tool.coverage.run]
branch = true
source = ["app"]
dynamic_context = "test_function"
omit = [
]
[tool.coverage.report]
exclude_lines = [
"@abstractmethod",
"@abc.abstractmethod",
"pragma: no cover",
"TYPE_CHECKING",
]
[tool.coverage.html]
directory = "htmlcov"
skip_covered = true
show_contexts = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"