-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
135 lines (114 loc) · 2.54 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
132
133
134
135
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "obscura"
authors = [
{ name="Joakim Saario", email="[email protected]" },
]
description = "Symmetric file encryption with Argon2-based passphrases"
requires-python = ">=3.8"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Intended Audience :: End Users/Desktop",
"Topic :: Security :: Cryptography",
"Environment :: Console"
]
dependencies = [
"argon2-cffi",
"cryptography"
]
dynamic = ["version", "readme"]
[project.scripts]
obscura = "obscura:main"
[project.urls]
Homepage = "https://github.com/jocke-l/obscura"
"Bug Tracker" = "https://github.com/jocke-l/obscura/issues"
Source = "https://github.com/jocke-l/obscura"
[tool.hatch.version]
source = "vcs"
raw-options = { local_scheme = "no-local-version" }
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "README.md"
[tool.hatch.build]
sources = ["src"]
skip-excluded-dirs = true
[tool.hatch.build.targets.wheel]
sources = ["src"]
[tool.ruff]
src = ["src", "tests"]
line-length = 88
fix = true
select = [
"E",
"F",
"C90",
"UP",
"S",
"BLE",
"B",
"A",
"C4",
"RET",
"SIM",
"ARG",
"PTH",
"ERA",
"PL",
"RUF"
]
target-version = "py38"
[tool.ruff.per-file-ignores]
"tests/**/*.py" = ["S101"]
[tool.ruff.mccabe]
max-complexity = 4
[tool.ruff.isort]
known-first-party = ["src"]
combine-as-imports = true
[tool.mypy]
python_version = "3.8"
pretty = true
files = ["src", "tests"]
show_error_codes = true
no_implicit_reexport = true
strict_equality = true
strict_optional = true
check_untyped_defs = true
disallow_incomplete_defs = true
ignore_missing_imports = false
local_partial_types = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
[[tool.mypy.overrides]]
module = [
"argon2.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
python_files = "test_*.py tests.py"
addopts = "--cov --no-cov-on-fail"
pythonpath = "src"
testpaths = ["tests"]
[tool.coverage.run]
branch = true
source = ["src", "tests"]
omit = [
"*/__main__.py",
"venv/*",
]
[tool.coverage.report]
skip_covered = true
show_missing = true
exclude_lines = [
"pragma: no cover",
'^%s*\.\.\.',
]
fail_under = 100