-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (89 loc) · 2.5 KB
/
pyproject.toml
File metadata and controls
103 lines (89 loc) · 2.5 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
[build-system]
requires = [
"setuptools",
"wheel"
]
build-backend = "setuptools.build_meta"
[project]
name = "britive"
authors = [{name = "Britive Inc.", email = "support@britive.com"}]
description = "A pure Python SDK for the Britive API"
readme = "README.md"
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Internet",
"Topic :: Security",
]
license = {file = "LICENSE"}
requires-python = ">=3.10"
dependencies = [
"requests>=2.32.5",
"jmespath>=1.1.0"
]
dynamic = ["version"]
keywords = ["britive", "cpam", "identity", "jit"]
[project.optional-dependencies]
azure = ["azure-identity"]
gcp = ["google-auth"]
[project.urls]
Homepage = "https://www.britive.com"
Documentation = "https://docs.britive.com/v1/docs/en/overview-britive-apis"
Repository = "https://github.com/britive/python-sdk.git"
Issues = "https://github.com/britive/python-sdk/issues"
Changelog = "https://github.com/britive/python-sdk/blob/main/CHANGELOG.md"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.dynamic]
version = {attr = "britive.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py311
isolated_build = True
[testenv]
# install dependencies virtualenv where commands will be executed
deps =
-rrequirements.txt
commands =
# NOTE: you can run any command line tool here - not just tests
pytest -v
passenv = BRITIVE_TENANT,BRITIVE_API_TOKEN,BRITIVE_TEST_ENV_ACCOUNT_ID,BRITIVE_TEST_IGNORE_SCAN,BRITIVE_GCP_TEST_APP_ID
"""
[tool.pymarkdown]
plugins.md013.line_length = 120
plugins.md013.code_block_line_length = 120
[tool.ruff]
include = ["pyproject.toml", "src/**/*.py", "tests/*.py"]
line-length = 120
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
indent-style = "space"
line-ending = "auto"
quote-style = "single"
skip-magic-trailing-comma = false
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"PL", #pylint
"SIM", # flake8-simplify
]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["F403", "F405"]
[tool.ruff.lint.pylint]
allow-magic-value-types = ["int", "str"]
max-args = 14
max-branches = 30
max-returns = 8
max-statements = 72