This repository was archived by the owner on Oct 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (108 loc) · 3.03 KB
/
pyproject.toml
File metadata and controls
123 lines (108 loc) · 3.03 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "cpk-lib-python-aws"
version = "1.0.0"
description = "CPK Python AWS Library - Collection of professional AWS tools and utilities"
authors = [
{name = "Your Name", email = "your.email@example.com"}
]
readme = "README.md"
license = {text = "GPL-3.0"}
requires-python = ">=3.8.1"
dependencies = [
"boto3>=1.26.0",
"botocore>=1.29.0",
"pyyaml>=6.0",
"certifi>=2023.7.22",
"urllib3>=1.25.4,<2.0.0", # Changed this line
]
[project.optional-dependencies]
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.10.0",
]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"flake8>=6.0.0", # This should work with Python 3.8+
"mypy>=1.0.0",
"pylint>=2.17.0",
"boto3-stubs[sso-admin,identitystore,organizations]>=1.26.0",
]
[project.scripts]
aws-access-auditor = "cpk_lib_python_aws.aws_access_auditor.cli:main"
[project.urls]
Homepage = "https://github.com/opencpk/cpk-lib-python-aws"
Repository = "https://github.com/opencpk/cpk-lib-python-aws"
Documentation = "https://github.com/opencpk/cpk-lib-python-aws#readme"
[tool.setuptools.packages.find]
where = ["."]
include = ["cpk_lib_python_aws*"]
[tool.black]
line-length = 100
target-version = ['py38']
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
# 🎯 PYLINT CONFIGURATION - This should fix your import issues
[tool.pylint.master]
# Add current directory to Python path for imports
init-hook = 'import sys; sys.path.append(".")'
# Don't cache results to avoid stale import issues
persistent = false
[tool.pylint.format]
max-line-length = 100
[tool.pylint.messages_control]
disable = [
"broad-exception-caught",
"too-many-arguments",
"too-many-locals",
"import-error", # This should fix your import issues
"no-name-in-module", # Also helps with module import issues
"wrong-import-order", # Less strict about import order
"ungrouped-imports", # Allow flexible import grouping
"too-few-public-methods",
"invalid-name",
]
[tool.pylint.design]
max-statements = 60
max-module-lines = 1200
max-attributes = 15 # Allow more class attributes
max-public-methods = 25 # Allow more public methods
[tool.pylint.typecheck]
# Don't complain about missing members in these modules
ignored-modules = [
"boto3",
"botocore",
"yaml",
"cpk_lib_python_aws",
]
[tool.pylint.imports]
# Allow relative imports within the package
allow-any-import-level = true
[tool.pytest.ini_options]
testpaths = [
"cpk_lib_python_aws/tests"
]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--verbose",
"--cov=cpk_lib_python_aws",
"--cov-report=term-missing",
"--cov-report=html"
]
markers = [
"unit: Unit tests with mocked responses",
"integration: Integration tests with real AWS API calls",
"slow: Slow running tests"
]