-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
131 lines (111 loc) · 3.01 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry]
name = "PyFLocker"
version = "0.0.0" # placeholder which is ultimately replaced by poetry-dynamic-versioning
description = "Python Cryptographic (File Locking) Library"
authors = ["Arunanshu Biswas <[email protected]>"]
license = "MIT"
readme = "README.md"
include = [
# include generated version file in the wheel
{ path = "src/pyflocker/_version.py", format = ["sdist", "wheel"] },
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/arunanshub/pyflocker/issues"
Changelog = "https://github.com/arunanshub/pyflocker/blob/master/CHANGELOG.md"
documentation = "https://pyflocker.readthedocs.io"
repository = "https://github.com/arunanshub/pyflocker"
[tool.poetry.dependencies]
python = ">=3.9"
pycryptodomex = ">=3.9.8"
cryptography = { version = ">=35.0.0, <37.0.0 || >37.0.0", extras = ["ssh"] }
[tool.poetry.group.dev.dependencies]
pre-commit = "^4.0.0"
commitizen = "^3.25.0"
mypy = "^1.10.0"
ruff = "^0.8.0"
[tool.poetry.group.debugging.dependencies]
pdbpp = "^0.10.3"
[tool.poetry.group.docs.dependencies]
furo = "^2024.5.6"
sphinx = { version = "^8.0.0", python = ">=3.10" }
sphinx-copybutton = "^0.5.2"
[tool.poetry.group.test.dependencies]
pytest = "^8.2.0"
pytest-cov = "^5.0.0"
pytest-xdist = "^3.6.1"
pytest-randomly = "^3.15.0"
pytest-sugar = "^1.0.0"
hypothesis = "^6.100.5"
# ======================= Other tools ================================
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"
bump = true
[tool.poetry-dynamic-versioning.substitution]
# the package is located inside `src/`
folders = [{ path = "src" }]
[tool.poetry-dynamic-versioning.files."src/pyflocker/_version.py"]
persistent-substitution = true
initial-content = """
# this file is auto @generated
__version__ = "0.0.0"
"""
[tool.commitizen]
annotated_tag = true
changelog_incremental = true
changelog_start_rev = "v0.3.0"
name = "cz_conventional_commits"
tag_format = "v$version"
update_changelog_on_bump = true
version = "0.4.2"
# testing and coverage
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING",
"if typing.TYPE_CHECKING",
]
[tool.pytest.ini_options]
addopts = "--strict-config --strict-markers"
[tool.mypy]
python_version = "3.9"
warn_unused_configs = true
warn_unused_ignores = true
pretty = true
show_error_codes = true
warn_redundant_casts = true
# warn_return_any = true
check_untyped_defs = true
disallow_any_unimported = true
disallow_untyped_defs = true
no_implicit_optional = true
[tool.ruff.lint]
exclude = ["docs/*", "tests/*", "src/pyflocker/_version.py"]
select = [
"ANN",
"B",
"E",
"F",
"W",
"I",
"RET",
"EM",
"UP",
"C90",
"TCH",
"SIM",
"PIE",
"TID",
]
ignore = ["ANN101", "ANN102", "ANN401", "B024"]
[tool.ruff]
line-length = 80
target-version = "py39"
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
required-imports = ["from __future__ import annotations"]