-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
116 lines (100 loc) · 2.58 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
108
109
110
111
112
113
114
115
116
[tool.poetry]
name = "leveled-hotbackup-s3-sync"
version = "0.0.0"
description = "Tool to syncrhonise LevelEd hotbackup files to Amazon S3"
authors = ["yorkshire-steve"]
license = "Apache-2.0"
readme = "README.md"
packages = [{include = "leveled_hotbackup_s3_sync"}]
repository = 'https://github.com/yorkshire-steve/leveled-hotbackup-s3-sync'
keywords = ['riak', 'leveled', 'backup', 's3']
[tool.poetry.dependencies]
python = "^3.8"
boto3 = "1.34.22"
pure-cdb = "^4.0.0"
frozendict = "^2.4.0"
lz4 = { version = "^4.3.3", optional = true }
s3fs = { version = "^2023.12.2", optional = true }
tomli = {version = "^2.0.1", python = "<3.11"}
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.4"
black = "^23.12.1"
isort = "^5.13.2"
pylint = "^3.0.3"
coverage = "^7.4.0"
mypy = "^1.8.0"
moto = {version="^4.1.7", extras=["server"]}
urllib3 = "^1.26.18"
[tool.poetry.scripts]
s3sync = 'leveled_hotbackup_s3_sync.app:console_command'
s3retrieve = { callable = 'leveled_hotbackup_s3_sync.retrieve:console_command', extras = ["retrieve"] }
[tool.poetry.extras]
retrieve = ["lz4", "s3fs"]
[tool.black]
line-length = 120
target-version = ['py38', 'py39', 'py310']
[tool.pylint.main]
ignore-paths = [
'.venv/.*',
'.*/?\.git/.*',
'reports/.*',
]
py-version = "3.9"
recursive = true
[tool.pylint.messages_control]
max-line-length = 120
min-similarity-lines = 20
disable = [
"missing-class-docstring",
"missing-module-docstring",
"missing-function-docstring",
]
[tool.coverage.run]
branch = true
omit = [
".venv/*",
"leveled_hotbackup_s3_sync/__init__.py",
"leveled_hotbackup_s3_sync/__main__.py",
"leveled_hotbackup_s3_sync/erlang.py",
"leveled_hotbackup_s3_sync/tests/*",
]
source = [
"."
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
"pragma: no cover",
"from .*",
"import .*"
]
sort = "-cover"
ignore_errors = true
precision = 2
fail_under = 80
show_missing = true
[tool.coverage.xml]
output = "reports/coverage.xml"
[tool.mypy]
python_version = "3.8"
warn_unused_configs = true
show_error_codes = true
check_untyped_defs = true
ignore_missing_imports = true
[tool.isort]
profile = "black"
[tool.poetry-dynamic-versioning]
enable = true
metadata = false
vcs = "git"
style = "pep440"
format-jinja = """
{%- if distance == 0 -%}
{{ serialize_pep440(base, stage, revision) }}
{%- else -%}
{{ serialize_pep440(bump_version(base), stage, revision, dev=timestamp) }}
{%- endif -%}
"""
[build-system]
requires = ["poetry-core", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"