-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
78 lines (64 loc) · 1.55 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "currency_exchange"
version = "0.1.0"
authors = [
{name = "Ageev Maxim", email = "[email protected]"},
]
description = "Currency Exchange"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "MIT License"}
classifiers = [
"Programming Language :: Python :: 3",
]
[project.optional-dependencies]
test = [
"pytest==8.3.3"
]
dev = [
"mypy==1.11.2",
"ruff==0.6.8",
]
[project.scripts]
currency-exchange-run = "currency_exchange.main:main"
currency-exchange-migrations-up = "currency_exchange.infrastructure.database.migrations.create_tables_currency_exchange:up"
currency-exchange-migrations-down = "currency_exchange.infrastructure.database.migrations.create_tables_currency_exchange:down"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.pytest.ini_options]
addopts = "--doctest-modules"
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL"
[tool.mypy]
strict = true
warn_unreachable = true
show_column_numbers = true
show_error_context = true
check_untyped_defs = true
enable_error_code = "explicit-override"
enable_incomplete_feature = 'NewGenericSyntax'
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"TRY002",
"RUF001",
"D",
"S",
"ANN",
"TRY003",
"EM",
"RSE102",
"RET504",
"ISC001",
"COM812",
"TCH003",
"TCH001",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"src/simple_server/app.py" = ["N802"]
"src/currency_exchange/application/models.py" = ["N815"]