-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
165 lines (150 loc) · 4.38 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
[tool.poetry]
name = "censys-cloud-connectors"
version = "3.2.1"
description = "The Censys Unified Cloud Connector is a standalone connector that gathers assets from various cloud providers and stores them in Censys ASM."
authors = ["Censys, Inc. <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
packages = [{ include = "censys/cloud_connectors", from = "src" }]
keywords = ["censys", "cloud", "connector", "attack surface management"]
classifiers = [
"Typing :: Typed",
"Topic :: Internet",
"Topic :: Security",
"Topic :: System :: Monitoring",
"Topic :: System :: Networking",
"Topic :: System :: Networking :: Monitoring",
"Topic :: Utilities",
"Environment :: Console",
"Natural Language :: English",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
[tool.poetry.urls]
"Censys Homepage" = "https://censys.io/"
"Discussions" = "https://github.com/censys/censys-cloud-connector/discussions"
"Changelog" = "https://github.com/censys/censys-cloud-connector/releases"
"Tracker" = "https://github.com/censys/censys-cloud-connector/issues"
"Source" = "https://github.com/censys/censys-cloud-connector"
[tool.poetry.scripts]
censys-cc = "censys.cloud_connectors.common.cli:main"
[tool.poetry.dependencies]
python = "^3.9"
backoff = "^2.2.1"
censys = "^2.2.4"
inquirerpy = "^0.3.3"
pydantic = {extras = ["dotenv", "email"], version = "^1.9.0"}
requests = "^2.30.0"
rich = "^13.3.5"
protobuf = "^4.23.4"
[tool.poetry.group.dev.dependencies]
# Debug
ipython = "^8.11.0"
# Linting
black = "^22.1.0"
blacken-docs = "^1.12.1"
darglint = "^1.8.1"
flake8 = "^4.0.1"
flake8-black = "^0.3.2"
flake8-bugbear = "^22.3.23"
flake8-comprehensions = "^3.8.0"
flake8-docstrings = "^1.6.0"
flake8-isort = "^4.1.1"
flake8-pytest-style = "^1.6.0"
flake8-simplify = "^0.18.0"
isort = "^5.10.1"
pep8-naming = "^0.12.1"
pre-commit = "^2.17.0"
pyupgrade = "^2.31.1"
# Typing
mypy = "^0.942"
types-PyYAML = "^6.0.5"
types-requests = "^2.27.14"
# Testing
parameterized = "^0.8.1"
pytest = "^7.1.1"
pytest-cov = "^3.0.0"
pytest-datadir = "^1.3.1"
pytest-mock = "^3.7.0"
responses = "^0.21.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
furo = "^2022.6.21"
myst-parser = "^0.18.0"
Sphinx = "^5.1.1"
sphinx-copybutton = "^0.5.0"
sphinx-prompt = "^1.5.0"
sphinxcontrib-autoprogram = "^0.1.7"
sphinx-autobuild = "^2021.3.14"
sphinx-design = "^0.3.0"
sphinxcontrib-asciinema = "^0.3.6"
[tool.poetry.group.aws.dependencies]
boto3 = "^1.24.63"
boto3-stubs = {extras = ["apigateway", "apigatewayv2", "ec2", "ecs", "elb", "elbv2", "rds", "route53", "route53domains", "s3", "sts"], version = "^1.24.63"}
[tool.poetry.group.azure.dependencies]
azure-cli = "^2.48.1"
azure-identity = "^1.12.0"
azure-mgmt-network = "^23.0.1"
azure-storage-blob = "^12.16.0"
# Specified sys_platform to avoid issues with platform_system
pywin32 = {version = "^303", markers = "sys_platform == 'win32'"}
[tool.poetry.group.gcp.dependencies]
google-auth = "^2.6.0"
google-cloud-resource-manager = "^1.4.1"
google-cloud-asset = "^3.19.1"
[tool.black]
target-version = ["py39"]
[tool.isort]
profile = "black"
line_length = 88
src_paths = ["src", "tests"]
multi_line_output = 3
known_first_party = ["censys.cloud_connectors"]
known_censys = ["censys"]
sections = [
"FUTURE",
"STDLIB",
"THIRDPARTY",
"CENSYS",
"FIRSTPARTY",
"LOCALFOLDER"
]
[tool.mypy]
exclude = [".venv", ".git"]
files = ["src"]
namespace_packages = true
plugins = ["pydantic.mypy"]
pretty = true
python_version = "3.9"
strict_optional = true
warn_redundant_casts = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = [
# Common
"InquirerPy.*",
"importlib_metadata",
# Tests
"parameterized",
# GCP
"google.oauth2",
# Azure
"azure.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "azure.*"
ignore_errors = true
[build-system]
requires = ["poetry>=1.2.0", "poetry-core>=1.1.0"]
build-backend = "poetry.core.masonry.api"