-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (114 loc) · 2.82 KB
/
Copy pathpyproject.toml
File metadata and controls
130 lines (114 loc) · 2.82 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[project]
name = "prowler-studio"
version = "0.1.0"
description = "Prowler Studio is a framework for automating Prowler security check development using Claude Code agents."
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"typer>=0.20.0",
"gitpython>=3.1.0",
"jinja2>=3.1.0",
"claude-agent-sdk>=0.1.49",
"httpx>=0.27.0",
]
[project.optional-dependencies]
dev = [
"pre-commit>=4.0.0",
"ruff>=0.8.0",
"mypy>=1.13.0",
"bandit>=1.8.0",
"interrogate>=1.7.0",
"pytest>=8.0.0",
]
[project.scripts]
prowler-studio = "core.main:app"
[tool.uv]
package = true
# Ruff configuration - Modern Python linter and formatter
[tool.ruff]
line-length = 88
target-version = "py312"
# Enable pycodestyle (E, W), Pyflakes (F), isort (I), and more
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"RUF", # Ruff-specific rules
]
lint.ignore = [
"E501", # Line too long (handled by formatter)
]
# Exclude common directories
exclude = [
".git",
".venv",
"__pycache__",
"build",
"dist",
"*.egg-info",
"working",
]
# Allow autofix for all enabled rules
lint.fixable = ["ALL"]
lint.unfixable = []
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # Allow unused imports in __init__.py
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
# mypy configuration - Static type checking
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_any_unimported = false
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
check_untyped_defs = true
strict_equality = true
# Ignore missing imports for third-party packages without type stubs
[[tool.mypy.overrides]]
module = [
"git.*",
"typer.*",
"jinja2.*",
]
ignore_missing_imports = true
# Bandit configuration - Security linting
[tool.bandit]
exclude_dirs = [".venv", "tests", "working"]
skips = ["B101"] # Skip assert_used (commonly used in tests)
# Pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
# Interrogate configuration - Docstring coverage
[tool.interrogate]
ignore-init-method = true
ignore-init-module = false
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = false
ignore-nested-functions = false
ignore-nested-classes = true
ignore-setters = false
fail-under = 80
exclude = [".venv", "tests", "working"]
verbose = 1
quiet = false
color = true