Skip to content

Commit

Permalink
Merge pull request #9935 from DefectDojo/release/2.33.3
Browse files Browse the repository at this point in the history
Release: Merge release into master from: release/2.33.3
  • Loading branch information
Maffooch authored Apr 16, 2024
2 parents 83fae48 + 2b7ac5b commit 7fe7670
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 49 deletions.
2 changes: 1 addition & 1 deletion components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "defectdojo",
"version": "2.33.2",
"version": "2.33.3",
"license" : "BSD-3-Clause",
"private": true,
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion dojo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
# Django starts so that shared_task will use this app.
from .celery import app as celery_app # noqa: F401

__version__ = '2.33.2'
__version__ = '2.33.3'
__url__ = 'https://github.com/DefectDojo/django-DefectDojo'
__docs__ = 'https://documentation.defectdojo.com'
5 changes: 3 additions & 2 deletions dojo/templatetags/display_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,10 @@ def percentage(fraction, value):

@register.filter
def format_epss(value):
if value is None:
try:
return f'{value:.2%}'
except (ValueError, TypeError):
return 'N.A.'
return f'{value:.2%}'


def asvs_calc_level(benchmark_score):
Expand Down
4 changes: 2 additions & 2 deletions helm/defectdojo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: "2.33.2"
appVersion: "2.33.3"
description: A Helm chart for Kubernetes to install DefectDojo
name: defectdojo
version: 1.6.120
version: 1.6.121
icon: https://www.defectdojo.org/img/favicon.ico
maintainers:
- name: madchap
Expand Down
43 changes: 0 additions & 43 deletions pyproject.toml

This file was deleted.

43 changes: 43 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Same as Black.
line-length = 120

exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
# Not for the dojo specific stuff
"dojo/db_migrations"
]

[lint]
# Enable the pycodestyle (`E`) and Pyflakes (`F`) rules by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E", "F", "FLY", "TRY004", "TRY2"]
ignore = ["E501", "E722", "F821"]

# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []

preview = true

per-file-ignores = {}

0 comments on commit 7fe7670

Please sign in to comment.