Skip to content

Commit

Permalink
[#126]: Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Feb 19, 2025
1 parent 7af4f7e commit 6379f8a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ jobs:
extra-mypy-options: "--ignore-missing-imports --show-error-codes"
extra-flake8-options: "--max-line-length=120 --ignore=E203,E402"
extra-pycodestyle-options: "--max-line-length=120 --ignore=E203,E402"


2 changes: 1 addition & 1 deletion .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
ignore_names: llvm.sh # External file
ignore_names: llvm.sh # External file
1 change: 0 additions & 1 deletion .github/workflows/test_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,3 @@ jobs:
***
### [Result for pull_request_target (non CMake)](https://github.com/JacobDomagala/TestRepo/pull/7#issuecomment-1404101648)
2 changes: 0 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ jobs:
- name: Test with pytest
run: |
pytest
4 changes: 3 additions & 1 deletion src/sa_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ def create_or_edit_comment(comment_body):
pull_request.create_issue_comment(body=comment_body)


def generate_output(is_note, prefix_and_file_path, file_line_start, file_line_end, description):
def generate_output(
is_note, prefix_and_file_path, file_line_start, file_line_end, description
):
"""
Generate a formatted output string based on the details of a code issue.
Expand Down
6 changes: 5 additions & 1 deletion src/static_analysis_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ def create_comment_for_output(
)
was_note = is_note
new_line = utils.generate_output(
is_note, (prefix, file_path), file_line_start, file_line_end, description
is_note,
(prefix, file_path),
file_line_start,
file_line_end,
description,
)

if utils.check_for_char_limit(new_line):
Expand Down

0 comments on commit 6379f8a

Please sign in to comment.