Skip to content

Commit

Permalink
Merge pull request #14 from ARYAN-NIKNEZHAD/chore/pyproject.toml-config
Browse files Browse the repository at this point in the history
🔧 Update pyproject.toml config
  • Loading branch information
sepehr-akbarzadeh authored Aug 29, 2024
2 parents 0f2815a + 3a0e008 commit ed6c5b2
Show file tree
Hide file tree
Showing 3 changed files with 208 additions and 12 deletions.
14 changes: 12 additions & 2 deletions packages/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
alabaster==0.7.13 ; python_version >= "3.8" and python_version < "4.0"
appdirs==1.4.4 ; python_version >= "3.8" and python_version < "4.0"
argcomplete==3.5.0 ; python_version >= "3.8" and python_version < "4.0"
arichuvadi==0.0.6 ; python_version >= "3.8" and python_version < "4.0"
asgiref==3.8.1 ; python_version >= "3.8" and python_version < "4.0"
astroid==3.2.4 ; python_version >= "3.8" and python_version < "4.0"
babel==2.16.0 ; python_version >= "3.8" and python_version < "4.0"
backports-zoneinfo==0.2.1 ; python_version >= "3.8" and python_version < "3.9"
bandit[toml]==1.7.9 ; python_version >= "3.8" and python_version < "4.0"
black==24.8.0 ; python_version >= "3.8" and python_version < "4.0"
cachetools==5.5.0 ; python_version >= "3.8" and python_version < "4.0"
certifi==2024.7.4 ; python_version >= "3.8" and python_version < "4.0"
Expand All @@ -20,29 +22,34 @@ decli==0.6.2 ; python_version >= "3.8" and python_version < "4.0"
dill==0.3.8 ; python_version >= "3.8" and python_version < "4.0"
distlib==0.3.8 ; python_version >= "3.8" and python_version < "4.0"
django-colorfield==0.11.0 ; python_version >= "3.8" and python_version < "4.0"
django-debug-toolbar==4.4.6 ; python_version >= "3.8" and python_version < "4.0"
django-migration-linter==5.1.0 ; python_version >= "3.8" and python_version < "4.0"
django-polymorphic==3.1.0 ; python_version >= "3.8" and python_version < "4.0"
django==4.2.15 ; python_version >= "3.8" and python_version < "4.0"
djangorestframework==3.15.2 ; python_version >= "3.8" and python_version < "4.0"
docutils==0.19 ; python_version >= "3.8" and python_version < "4.0"
exceptiongroup==1.2.2 ; python_version >= "3.8" and python_version < "3.11"
filelock==3.15.4 ; python_version >= "3.8" and python_version < "4.0"
identify==2.6.0 ; python_version >= "3.8" and python_version < "4.0"
idna==3.7 ; python_version >= "3.8" and python_version < "4.0"
idna==3.8 ; python_version >= "3.8" and python_version < "4.0"
imagesize==1.4.1 ; python_version >= "3.8" and python_version < "4.0"
importlib-metadata==8.4.0 ; python_version >= "3.8" and python_version < "3.10"
iniconfig==2.0.0 ; python_version >= "3.8" and python_version < "4.0"
isort==5.13.2 ; python_version >= "3.8" and python_version < "4.0"
jinja2==3.1.4 ; python_version >= "3.8" and python_version < "4.0"
libusb1==3.1.0 ; python_version >= "3.8" and python_version < "4.0"
markdown-it-py==3.0.0 ; python_version >= "3.8" and python_version < "4.0"
markupsafe==2.1.5 ; python_version >= "3.8" and python_version < "4.0"
mccabe==0.7.0 ; python_version >= "3.8" and python_version < "4.0"
mdurl==0.1.2 ; python_version >= "3.8" and python_version < "4.0"
mypy-extensions==1.0.0 ; python_version >= "3.8" and python_version < "4.0"
ndef==0.2 ; python_version >= "3.8" and python_version < "4.0"
ndeflib==0.3.3 ; python_version >= "3.8" and python_version < "4.0"
nfcpy==1.0.4 ; python_version >= "3.8" and python_version < "4.0"
nodeenv==1.9.1 ; python_version >= "3.8" and python_version < "4.0"
packaging==24.1 ; python_version >= "3.8" and python_version < "4.0"
pathspec==0.12.1 ; python_version >= "3.8" and python_version < "4.0"
pbr==6.1.0 ; python_version >= "3.8" and python_version < "4.0"
pillow==10.4.0 ; python_version >= "3.8" and python_version < "4.0"
platformdirs==4.2.2 ; python_version >= "3.8" and python_version < "4.0"
pluggy==1.5.0 ; python_version >= "3.8" and python_version < "4.0"
Expand All @@ -64,6 +71,7 @@ pyyaml==6.0.2 ; python_version >= "3.8" and python_version < "4.0"
qrcode-artistic==3.0.2 ; python_version >= "3.8" and python_version < "4.0"
questionary==2.0.1 ; python_version >= "3.8" and python_version < "4.0"
requests==2.32.3 ; python_version >= "3.8" and python_version < "4.0"
rich==13.8.0 ; python_version >= "3.8" and python_version < "4.0"
ruff==0.5.7 ; python_version >= "3.8" and python_version < "4.0"
segno==1.6.1 ; python_version >= "3.8" and python_version < "4.0"
sengo==0.0.2 ; python_version >= "3.8" and python_version < "4.0"
Expand All @@ -79,7 +87,9 @@ sphinxcontrib-jsmath==1.0.1 ; python_version >= "3.8" and python_version < "4.0"
sphinxcontrib-qthelp==1.0.3 ; python_version >= "3.8" and python_version < "4.0"
sphinxcontrib-serializinghtml==1.1.5 ; python_version >= "3.8" and python_version < "4.0"
sqlparse==0.5.1 ; python_version >= "3.8" and python_version < "4.0"
stevedore==5.3.0 ; python_version >= "3.8" and python_version < "4.0"
termcolor==2.4.0 ; python_version >= "3.8" and python_version < "4.0"
toml==0.10.2 ; python_version >= "3.8" and python_version < "4.0"
tomli==2.0.1 ; python_version >= "3.8" and python_full_version <= "3.11.0a6"
tomlkit==0.13.2 ; python_version >= "3.8" and python_version < "4.0"
tox==4.18.0 ; python_version >= "3.8" and python_version < "4.0"
Expand All @@ -88,4 +98,4 @@ tzdata==2024.1 ; python_version >= "3.8" and python_version < "4.0" and sys_plat
urllib3==2.2.2 ; python_version >= "3.8" and python_version < "4.0"
virtualenv==20.26.3 ; python_version >= "3.8" and python_version < "4.0"
wcwidth==0.2.13 ; python_version >= "3.8" and python_version < "4.0"
zipp==3.20.0 ; python_version >= "3.8" and python_version < "3.10"
zipp==3.20.1 ; python_version >= "3.8" and python_version < "3.10"
182 changes: 173 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 23 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@ pytest = "^8.3.2"
pytest-cov = "^5.0.0"
ruff = "^0.5.7"
commitizen = "^3.29.0"
bandit = {extras = ["toml"], version = "^1.7.9"}
django-debug-toolbar = "^4.4.6"
django-migration-linter = "^5.1.0"

[tool.poetry.extras]
docs = ["sphinx", "sphinx-rtd-theme"]

[tool.pytest.ini_options]
addopts = "--cov=. --cov-report=term-missing --cov-report=html"
addopts = "--cov --cov-report=term-missing --cov-report=html --cov-fail-under=90"
DJANGO_SETTINGS_MODULE = "kernel.settings"
python_files = ["tests.py", "test_*.py"]
testpaths = ["tests"]
Expand All @@ -59,6 +62,25 @@ norecursedirs = [
"kernel"
]

[tool.bandit]
targets = ["./sage_qrcode"]
exclude_dirs = [
"tests",
"migrations",
]
severity = "medium"
confidence = "medium"
max_lines = 500
progress = true
reports = true
output_format = "screen"
output_file = "bandit_report.txt"
include = ["B101", "B102"]
exclude_tests = ["B301", "B302"]

[tool.bandit.plugins]
B104 = { check_typed_list = true }

[tool.coverage.run]
omit = [
"*/migrations/*",
Expand Down

0 comments on commit ed6c5b2

Please sign in to comment.