-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (98 loc) · 2.95 KB
/
Copy pathpyproject.toml
File metadata and controls
116 lines (98 loc) · 2.95 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
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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "riskops"
version = "0.2.0"
description = "Healthcare IoMT Risk Assessment Framework - Open-source toolkit for SMEs"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
keywords = ["healthcare", "iomt", "risk-assessment", "cybersecurity", "iso27001", "ebios"]
authors = [
{name = "Kamilia Meliani"},
{name = "Lazreg Meliani"}
]
maintainers = [
{name = "Kamilia Meliani"},
{name = "Lazreg Meliani"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Healthcare Industry",
"Topic :: Security",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"pandas>=2.3.3",
"openpyxl>=3.1.5",
"requests>=2.32.0",
"typer>=0.9.0",
"rich>=13.0.0",
]
[project.optional-dependencies]
dev = [
"black>=24.8.0",
"ruff>=0.6.0",
"mypy>=1.11.0",
"pytest>=8.0.0",
"pytest-cov>=5.0.0",
"pytest-mock>=3.12.0",
"pip-audit>=2.7.0",
"types-requests",
]
[project.urls]
Homepage = "https://github.com/mak3r-cyber/healthcare-iomt-risk"
Documentation = "https://github.com/mak3r-cyber/healthcare-iomt-risk#readme"
Repository = "https://github.com/mak3r-cyber/healthcare-iomt-risk.git"
Issues = "https://github.com/mak3r-cyber/healthcare-iomt-risk/issues"
[project.scripts]
riskops = "riskops.cli.main:app"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
riskops = ["reporters/templates/*.py"]
[tool.black]
line-length = 100
target-version = ["py38", "py39", "py310", "py311"]
[tool.ruff]
line-length = 100
target-version = "py38"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W"]
ignore = ["E501"]
[tool.mypy]
python_version = "3.9"
mypy_path = "src"
strict = true
warn_unused_configs = true
ignore_missing_imports = true
# On garde un mode strict, mais on coupe juste les warnings sur les stubs manquants
# pour certaines libs tierces (requests, etc.).
disable_error_code = ["import-untyped"]
# Legacy converter CSV→XLSX : on accepte temporairement les fonctions non typées.
[[tool.mypy.overrides]]
module = "riskops.converters.*"
ignore_errors = true
# Commandes CLI Typer : points d’entrée, on n’impose pas encore 100 % d’annotations.
[[tool.mypy.overrides]]
module = "riskops.cli.*"
ignore_errors = true
# Validators : on désactive temporairement le check "no-any-return"
[[tool.mypy.overrides]]
module = "riskops.validators.link_validator"
disable_error_code = ["no-any-return"]
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-v --cov=src/riskops/grc --cov-report=term-missing --cov-fail-under=70"
[tool.coverage.run]
source = ["src"]
[tool.coverage.report]
precision = 2
skip_covered = false