Skip to content

Commit d86261c

Browse files
bjoernricksgreenbonebot
authored andcommitted
Change: Update formatting for ruff usage
1 parent 670dc79 commit d86261c

5 files changed

Lines changed: 7 additions & 3 deletions

File tree

manage.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
#!/usr/bin/env python
1919
"""Django's command-line utility for administrative tasks."""
20+
2021
import os
2122
import sys
2223

@@ -26,7 +27,7 @@ def main():
2627
sys.setrecursionlimit(15000)
2728
# needed for weasyprint on huge pages
2829
print(f"recursion limit is: {sys.getrecursionlimit()}")
29-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pheme.settings')
30+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pheme.settings")
3031
try:
3132
# pylint: disable=import-outside-toplevel
3233
from django.core.management import execute_from_command_line
@@ -39,5 +40,5 @@ def main():
3940
execute_from_command_line(sys.argv)
4041

4142

42-
if __name__ == '__main__':
43+
if __name__ == "__main__":
4344
main()

pheme/parser/xml.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
reliable for our usecase.
2424
2525
"""
26+
2627
import xmltodict
2728
from rest_framework.parsers import BaseParser
2829

pheme/templatetags/readable_timeformat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
Adds the possibility to print iso_8601 strings as %a, %b %d, %Y %I %p %Z', e.g.:
2222
2001-07-22T09:15:37Z -> Sun, Jul 22, 2001 09 AM UTC
2323
"""
24+
2425
from datetime import datetime
2526

2627
from django import template

pheme/transformation/scanreport/gvmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
2626
it is a specialized module for gvmd scanreports.
2727
"""
28+
2829
import logging
2930
import time
3031
from typing import Dict, List, Optional

tests/test_report_generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def test_html_report_contains_user_paramater(user_information):
318318
url = reverse(
319319
"put_parameter",
320320
)
321-
html_template = "<html><body><p>{{ main_color }}</p></body></html>" ""
321+
html_template = "<html><body><p>{{ main_color }}</p></body></html>"
322322
response = client.put(
323323
url,
324324
data={

0 commit comments

Comments
 (0)