unpin tox in requirements
for some reason bandit wasn't earlier catching the SubElement usage but now it is, but it's harmless anyway so we'll just suppress it. Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
parent
bf646db1e8
commit
713632fe7a
@ -4,7 +4,7 @@ SPDX-FileCopyrightText: © 2022 Brian S. Stephan <bss@incorporeal.org>
|
|||||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
"""
|
"""
|
||||||
import re
|
import re
|
||||||
from xml.etree.ElementTree import SubElement
|
from xml.etree.ElementTree import SubElement # nosec B405 - not parsing untrusted XML here
|
||||||
|
|
||||||
import markdown
|
import markdown
|
||||||
|
|
||||||
|
@ -27,12 +27,11 @@ classifiers = [
|
|||||||
"Bug Tracker" = "https://git.incorporeal.org/bss/incorporeal-cms/issues"
|
"Bug Tracker" = "https://git.incorporeal.org/bss/incorporeal-cms/issues"
|
||||||
|
|
||||||
|
|
||||||
# tox pinned to <4 to not conflict with safety
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
dev = ["bandit", "dlint", "flake8", "flake8-blind-except", "flake8-builtins", "flake8-docstrings",
|
dev = ["bandit", "dlint", "flake8", "flake8-blind-except", "flake8-builtins", "flake8-docstrings",
|
||||||
"flake8-executable", "flake8-fixme", "flake8-isort", "flake8-logging-format", "flake8-mutable",
|
"flake8-executable", "flake8-fixme", "flake8-isort", "flake8-logging-format", "flake8-mutable",
|
||||||
"flake8-pyproject", "mypy", "pip-tools", "pydot", "pytest", "pytest-cov", "safety",
|
"flake8-pyproject", "mypy", "pip-tools", "pydot", "pytest", "pytest-cov", "safety",
|
||||||
"setuptools-scm", "tox<4"]
|
"setuptools-scm", "tox"]
|
||||||
dot = ["pydot"]
|
dot = ["pydot"]
|
||||||
|
|
||||||
[tool.flake8]
|
[tool.flake8]
|
||||||
|
@ -10,8 +10,12 @@ blinker==1.7.0
|
|||||||
# via flask
|
# via flask
|
||||||
build==1.0.3
|
build==1.0.3
|
||||||
# via pip-tools
|
# via pip-tools
|
||||||
|
cachetools==5.3.2
|
||||||
|
# via tox
|
||||||
certifi==2023.11.17
|
certifi==2023.11.17
|
||||||
# via requests
|
# via requests
|
||||||
|
chardet==5.2.0
|
||||||
|
# via tox
|
||||||
charset-normalizer==3.3.2
|
charset-normalizer==3.3.2
|
||||||
# via requests
|
# via requests
|
||||||
click==8.1.7
|
click==8.1.7
|
||||||
@ -19,6 +23,8 @@ click==8.1.7
|
|||||||
# flask
|
# flask
|
||||||
# pip-tools
|
# pip-tools
|
||||||
# safety
|
# safety
|
||||||
|
colorama==0.4.6
|
||||||
|
# via tox
|
||||||
coverage[toml]==7.4.0
|
coverage[toml]==7.4.0
|
||||||
# via
|
# via
|
||||||
# coverage
|
# coverage
|
||||||
@ -97,6 +103,7 @@ packaging==21.3
|
|||||||
# via
|
# via
|
||||||
# build
|
# build
|
||||||
# dparse
|
# dparse
|
||||||
|
# pyproject-api
|
||||||
# pytest
|
# pytest
|
||||||
# safety
|
# safety
|
||||||
# setuptools-scm
|
# setuptools-scm
|
||||||
@ -106,13 +113,13 @@ pbr==6.0.0
|
|||||||
pip-tools==7.3.0
|
pip-tools==7.3.0
|
||||||
# via incorporeal-cms (pyproject.toml)
|
# via incorporeal-cms (pyproject.toml)
|
||||||
platformdirs==4.1.0
|
platformdirs==4.1.0
|
||||||
# via virtualenv
|
# via
|
||||||
|
# tox
|
||||||
|
# virtualenv
|
||||||
pluggy==1.3.0
|
pluggy==1.3.0
|
||||||
# via
|
# via
|
||||||
# pytest
|
# pytest
|
||||||
# tox
|
# tox
|
||||||
py==1.11.0
|
|
||||||
# via tox
|
|
||||||
pycodestyle==2.11.1
|
pycodestyle==2.11.1
|
||||||
# via flake8
|
# via flake8
|
||||||
pydocstyle==6.3.0
|
pydocstyle==6.3.0
|
||||||
@ -127,6 +134,8 @@ pyparsing==3.1.1
|
|||||||
# via
|
# via
|
||||||
# packaging
|
# packaging
|
||||||
# pydot
|
# pydot
|
||||||
|
pyproject-api==1.5.0
|
||||||
|
# via tox
|
||||||
pyproject-hooks==1.0.0
|
pyproject-hooks==1.0.0
|
||||||
# via build
|
# via build
|
||||||
pytest==7.4.3
|
pytest==7.4.3
|
||||||
@ -149,15 +158,13 @@ safety==2.3.5
|
|||||||
# via incorporeal-cms (pyproject.toml)
|
# via incorporeal-cms (pyproject.toml)
|
||||||
setuptools-scm==8.0.4
|
setuptools-scm==8.0.4
|
||||||
# via incorporeal-cms (pyproject.toml)
|
# via incorporeal-cms (pyproject.toml)
|
||||||
six==1.16.0
|
|
||||||
# via tox
|
|
||||||
smmap==5.0.1
|
smmap==5.0.1
|
||||||
# via gitdb
|
# via gitdb
|
||||||
snowballstemmer==2.2.0
|
snowballstemmer==2.2.0
|
||||||
# via pydocstyle
|
# via pydocstyle
|
||||||
stevedore==5.1.0
|
stevedore==5.1.0
|
||||||
# via bandit
|
# via bandit
|
||||||
tox==3.28.0
|
tox==4.0.0
|
||||||
# via incorporeal-cms (pyproject.toml)
|
# via incorporeal-cms (pyproject.toml)
|
||||||
typing-extensions==4.9.0
|
typing-extensions==4.9.0
|
||||||
# via
|
# via
|
||||||
|
3
tox.ini
3
tox.ini
@ -51,10 +51,9 @@ commands =
|
|||||||
# run security checks
|
# run security checks
|
||||||
#
|
#
|
||||||
# again it seems the most valuable here to run against the packaged code
|
# again it seems the most valuable here to run against the packaged code
|
||||||
# 51457 is nearly a red herring that I'm stuck with because tox is pinned, try removing occasionally
|
|
||||||
commands =
|
commands =
|
||||||
bandit {envsitepackagesdir}/incorporealcms/ -r
|
bandit {envsitepackagesdir}/incorporealcms/ -r
|
||||||
safety check -r requirements/requirements-dev.txt -i 51457
|
safety check -r requirements/requirements-dev.txt
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
# run style checks
|
# run style checks
|
||||||
|
Loading…
Reference in New Issue
Block a user