-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (69 loc) · 2.18 KB
/
Copy pathpyproject.toml
File metadata and controls
81 lines (69 loc) · 2.18 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "chaveiro"
version = "0.5.0"
description = "Auditor de segurança de tokens JWT/JWS — alg:none, confusão de algoritmo, brute de segredo HMAC, kid/jku SSRF e validação de claims."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [{ name = "Paulo Marcos Lucio" }]
keywords = ["security", "jwt", "jws", "jose", "appsec", "oauth", "fapi", "owasp"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Security",
]
dependencies = [
"typer>=0.15",
"rich>=13.9",
"cryptography>=44.0",
]
[project.optional-dependencies]
# Pisos elevados para as versões efetivamente instaladas e testadas nos portões
# — o CI roda estas; um piso baixo só deixaria o Dependabot abrir PR redundante.
dev = [
"pytest>=8.3",
"pytest-cov>=6.0",
"ruff>=0.14",
"mypy>=1.14",
"hypothesis>=6.100",
"pyjwt>=2.0",
]
[project.urls]
Homepage = "https://github.com/Paulo-Marcos-Lucio/chaveiro"
Repository = "https://github.com/Paulo-Marcos-Lucio/chaveiro"
[project.scripts]
chaveiro = "chaveiro.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["src/chaveiro"]
[tool.ruff]
line-length = 100
target-version = "py310"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "C4", "RUF"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"src/chaveiro/cli.py" = ["B008"]
[tool.ruff.lint.isort]
# Deixa a categorização determinística entre ambientes (local e CI).
known-first-party = ["chaveiro", "tests"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_unused_ignores = true
disallow_untyped_decorators = false
files = ["src"]
[[tool.mypy.overrides]]
module = ["typer.*", "rich.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
# Portão de cobertura no valor medido, arredondado para baixo (94% hoje). É
# anti-regressão, não aspiração: um detector novo sem teste derruba o CI.
addopts = "-q --cov=chaveiro --cov-report=term-missing --cov-fail-under=90"