Skip to content

Commit

Permalink
chore: run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AlthausKonstantin authored and waynesun09 committed Mar 5, 2024
1 parent 99be864 commit d3a90fe
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
exclude: '^docs'
repos:
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
rev: v3.12.0
hooks:
- id: reorder-python-imports
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- id: detect-private-key
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.2.0
hooks:
- id: black
2 changes: 1 addition & 1 deletion doc/_build/docs
18 changes: 11 additions & 7 deletions src/pylero/base_polarion.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,17 @@ def _convert_obj_fields_to_polarion(cls, fields=[]):
p_fields = [
"%s%s"
% (
"customFields."
if isinstance(cls._cls_suds_map[x], dict)
and cls._cls_suds_map[x].get("is_custom", False)
else "",
cls._cls_suds_map[x]
if not isinstance(cls._cls_suds_map[x], dict)
else cls._cls_suds_map[x]["field_name"],
(
"customFields."
if isinstance(cls._cls_suds_map[x], dict)
and cls._cls_suds_map[x].get("is_custom", False)
else ""
),
(
cls._cls_suds_map[x]
if not isinstance(cls._cls_suds_map[x], dict)
else cls._cls_suds_map[x]["field_name"]
),
)
for x in fields
]
Expand Down
1 change: 1 addition & 0 deletions src/unit_tests/document_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@author: szacks
"""

import datetime
import os
import unittest
Expand Down
1 change: 1 addition & 0 deletions src/unit_tests/test_run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@author: szacks
"""

import datetime
import os
import unittest
Expand Down
1 change: 1 addition & 0 deletions src/unit_tests/work_item_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@author: szacks
"""

import os
import unittest

Expand Down

0 comments on commit d3a90fe

Please sign in to comment.