@@ -7,13 +7,21 @@ name = "socketsecurity"
77dynamic = [" version" ]
88requires-python = " >= 3.9"
99dependencies = [
10- ' requests' ,
11- ' mdutils' ,
10+ ' requests >= 2.32.0 ' ,
11+ ' mdutils ~= 1.6.0 ' ,
1212 ' prettytable' ,
1313 ' argparse' ,
14- ' GitPython' ,
15- ' packaging'
14+ ' GitPython >= 3.1.43' ,
15+ ' packaging >= 24.1' ,
16+ ' python-dotenv >= 1.0.1' ,
1617]
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+
1725readme = " README.md"
1826description = " Socket Security CLI for CI/CD"
1927keywords = [" socketsecurity" , " socket.dev" , " sca" , " oss" , " security" ]
@@ -45,4 +53,76 @@ include = [
4553]
4654
4755[tool .setuptools .dynamic ]
48- version = {attr = " socketsecurity.__version__" }
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"
0 commit comments