Skip to content

Commit cf17c92

Browse files
authored
Revert "migrate from direct API usage to SDK (#29)" (#31)
This reverts commit 978ea47.
1 parent 978ea47 commit cf17c92

File tree

7 files changed

+159
-251
lines changed

7 files changed

+159
-251
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ markdown_security_temp.md
1919
*.pyc
2020
test.py
2121
*.cpython-312.pyc`
22-
file_generator.py
23-
.env.local
22+
file_generator.py

pyproject.toml

+5-85
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,13 @@ name = "socketsecurity"
77
dynamic = ["version"]
88
requires-python = ">= 3.9"
99
dependencies = [
10-
'requests >= 2.32.0',
11-
'mdutils ~= 1.6.0',
10+
'requests',
11+
'mdutils',
1212
'prettytable',
1313
'argparse',
14-
'GitPython >= 3.1.43',
15-
'packaging >= 24.1',
16-
'python-dotenv >= 1.0.1',
14+
'GitPython',
15+
'packaging'
1716
]
18-
19-
# modern, faster linter and language server. install with `pip install -e ".[dev]"`
20-
[project.optional-dependencies]
21-
dev = [
22-
"ruff>=0.3.0",
23-
]
24-
2517
readme = "README.md"
2618
description = "Socket Security CLI for CI/CD"
2719
keywords = ["socketsecurity", "socket.dev", "sca", "oss", "security"]
@@ -53,76 +45,4 @@ include = [
5345
]
5446

5547
[tool.setuptools.dynamic]
56-
version = {attr = "socketsecurity.__version__"}
57-
58-
[tool.ruff]
59-
# Exclude a variety of commonly ignored directories.
60-
exclude = [
61-
".bzr",
62-
".direnv",
63-
".eggs",
64-
".git",
65-
".git-rewrite",
66-
".hg",
67-
".ipynb_checkpoints",
68-
".mypy_cache",
69-
".nox",
70-
".pants.d",
71-
".pyenv",
72-
".pytest_cache",
73-
".pytype",
74-
".ruff_cache",
75-
".svn",
76-
".tox",
77-
".venv",
78-
".vscode",
79-
"__pypackages__",
80-
"_build",
81-
"buck-out",
82-
"build",
83-
"dist",
84-
"node_modules",
85-
"site-packages",
86-
"venv",
87-
]
88-
89-
[tool.ruff.lint]
90-
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
91-
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
92-
# McCabe complexity (`C901`) by default.
93-
select = ["E4", "E7", "E9", "F"]
94-
ignore = []
95-
96-
# Allow fix for all enabled rules (when `--fix`) is provided.
97-
fixable = ["ALL"]
98-
unfixable = []
99-
100-
# Allow unused variables when underscore-prefixed.
101-
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
102-
103-
[tool.ruff.format]
104-
# Like Black, use double quotes for strings.
105-
quote-style = "double"
106-
107-
# Like Black, indent with spaces, rather than tabs.
108-
indent-style = "space"
109-
110-
# Like Black, respect magic trailing commas.
111-
skip-magic-trailing-comma = false
112-
113-
# Like Black, automatically detect the appropriate line ending.
114-
line-ending = "auto"
115-
116-
# Enable auto-formatting of code examples in docstrings. Markdown,
117-
# reStructuredText code/literal blocks and doctests are all supported.
118-
#
119-
# This is currently disabled by default, but it is planned for this
120-
# to be opt-out in the future.
121-
docstring-code-format = false
122-
123-
# Set the line length limit used when formatting code snippets in
124-
# docstrings.
125-
#
126-
# This only has an effect when the `docstring-code-format` setting is
127-
# enabled.
128-
docstring-code-line-length = "dynamic"
48+
version = {attr = "socketsecurity.__version__"}

requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ mdutils~=1.6.0
33
prettytable
44
argparse
55
gitpython>=3.1.43
6-
packaging>=24.1
7-
python-dotenv>=1.0.1
6+
packaging>=24.1

socketsecurity/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__author__ = 'socket.dev'
2-
__version__ = '1.0.33'
2+
__version__ = '1.0.32'

0 commit comments

Comments
 (0)