-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
107 lines (94 loc) · 2.51 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
101
102
103
104
105
106
107
[tool.poetry]
name = "todoist-habitica-sync"
version = "3.2.0"
description = "One way synchronisation from Todoist to Habitica."
authors = ["Radek Lát <[email protected]>"]
homepage = "https://github.com/radeklat/todoist-habitica-sync"
license = "MIT License"
[tool.poetry.dependencies]
python = "==3.12.0"
tinydb = "^4.5.2"
ujson = "^5.1.0"
dotmap = "^1.3"
requests = "^2.22"
python-dateutil = "^2.8"
pydantic = "^2.0"
pydantic-settings = "^2.0"
[tool.poetry.group.dev.dependencies]
poetry = "^1.6"
types-toml = "*"
types-requests = "*"
types-python-dateutil = "*"
settings-doc = "^3.0" # https://github.com/radeklat/settings-doc/blob/main/CHANGELOG.md
psutil = "^5.9.3"
pytest-dotenv = "^0.5.2"
delfino-core = {extras = ["verify", "dependencies-update"], version = "^7.0"} # https://github.com/radeklat/delfino-core/blob/main/CHANGELOG.md
toml = "^0.10.2"
delfino-docker = "^4.0" # https://github.com/radeklat/delfino-docker/blob/main/CHANGELOG.md
ruff = "^0.1.3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
# Setting compatible with black. See https://black.readthedocs.io/en/stable/compatible_configs.html
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
[tool.black]
line-length = 120
target-version = ['py312']
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.pytest.ini_options]
testpaths = "tests/unit tests/integration"
python_functions = "should_*"
junit_family = "xunit2"
# pytest-dotenv settings
env_override_existing_values = 1
env_files = ".env.test"
# Structure: https://docs.pytest.org/en/stable/warnings.html
# Values: https://docs.python.org/3/library/warnings.html#describing-warning-filters
# action:message:category:module:line
filterwarnings = [
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
[tool.mypy]
show_column_numbers = true
show_error_codes = true
color_output = true
warn_unused_configs = true
warn_unused_ignores = true
check_untyped_defs = true
follow_imports = "silent"
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
# Source code dependencies
module = [
"delfino.*",
]
ignore_missing_imports = true
[tool.delfino.plugins.delfino-core]
[tool.delfino.plugins.delfino-docker.docker_build]
dockerhub_username = "radeklat"
build_for_platforms = [
"linux/arm/v7",
"linux/arm64",
"linux/amd64",
]