-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
98 lines (82 loc) · 1.96 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
[tool.poetry]
name = "salesforce-archivist"
version = "0.1.0"
description = "Salesforce files archiving tool"
authors = ["piotrekkr <piotrekkr@users.noreply.github.com>"]
readme = "README.md"
packages = [
{ include = "salesforce_archivist", from = "src" },
]
[tool.poetry.dependencies]
python = "^3.11"
simple-salesforce = "^1.12.5"
PyYAML = "^6.0.1"
click = "^8.1.7"
python-dateutil = "^2.8.2"
types-PyYAML = "^6.0.12.12"
humanize = "^4.9.0"
pydantic = "^2.7.0"
[tool.poetry.group.dev.dependencies]
pytest-mock = "^3.12.0"
mypy = "^1.7.1"
pytest = "^7.4.3"
ruff = "^0.1.15"
types-requests = "^2.31.0.20240106"
poethepoet = "^0.24.4"
[tool.poetry.scripts]
archivist = 'salesforce_archivist.cli:cli'
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q"
testpaths = [
"test",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
files = "src"
disallow_untyped_defs = true
ignore_missing_imports = true
show_error_codes = true
no_implicit_optional = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
warn_return_any = true
warn_unused_ignores = true
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]
ignore = []
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.poe.tasks.test]
help = "Run tests"
cmd = "pytest ."
[tool.poe.tasks.lint-check]
help = "Check if code is linted"
cmd = "ruff check"
[tool.poe.tasks.lint]
help = "Lint code"
cmd = "ruff check --fix"
[tool.poe.tasks.format]
help = "Format code"
cmd = "ruff format"
[tool.poe.tasks.format-check]
help = "Check code formating"
cmd = "ruff format --check"
[tool.poe.tasks.mypy]
help = "Run static analysis"
cmd = "mypy"
[tool.poe.tasks.qt]
help = "Run code quality tools"
sequence = ["format", "lint", "mypy"]