-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
81 lines (69 loc) · 1.71 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
[tool.poetry]
authors = ["bkm <bk-m@example.com>"]
description = "temp"
documentation = "https://example.com/docs/"
homepage = "https://example.com/"
keywords = ["keyword1", "keyword2"]
license = "NOLICENSE"
name = "temp"
packages = [{ include = "app" }]
readme = "README.md"
repository = "https://example.com/user/repo"
version = "0.1.0"
[tool.poetry.dependencies]
python = "^3.11"
[tool.poetry.group.dev.dependencies]
black = "^24.1.1"
invoke = "^2.2.0"
mypy = "^1.8.0"
pytest = "^8.0.0"
ruff = "^0.2.0"
[tool.poetry.scripts]
my-app = "app.main:main"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.black]
check = true
include = '\.pyi?$'
line-length = 88
target-version = ['py311']
[tool.mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
exclude = ["tasks.py"]
follow_imports = "skip"
ignore_missing_imports = true
no_implicit_optional = true
python_version = "3.11"
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
disallow_untyped_defs = false
module = "tests.*"
[tool.pytest.ini_options]
addopts = "-ra -q"
minversion = "6.0"
testpaths = ["tests"]
[tool.ruff]
exclude = ["__init__.py"]
line-length = 88
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
lint.ignore = ["D212", "D200"]
lint.select = ["ALL"]
lint.task-tags = ["TODO", "FIXME"]
respect-gitignore = true
target-version = "py311"
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "double"
multiline-quotes = "double"
[tool.ruff.lint.isort]
known-first-party = ["app"]
[tool.ruff.lint.pydocstyle]
convention = "google"