Skip to content

Commit

Permalink
testing write again
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahannali committed Dec 19, 2024
1 parent e31287f commit 65d5a21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 56 deletions.
2 changes: 1 addition & 1 deletion action.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def run_linters():
)

with open(save_file, "r") as tool_output:
with open(output_file, "w" if i == 0 else "a") as file:
with open(output_file, "w") as file:
file.write(f"LINTER OUTPUT: {linter}")
file.write("\n")
file.write(commit_hash)
Expand Down
56 changes: 1 addition & 55 deletions output.txt
Original file line number Diff line number Diff line change
@@ -1,59 +1,5 @@
LINTER OUTPUT: mypy
735b1a713b75192e6bb7c01b4f55f7ce16ceb249
signals-action
{
"$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json",
"runs": [
{
"results": [
{
"level": "error",
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "testing.py"
},
"region": {
"startLine": 1
}
}
}
],
"message": {
"text": "Name \"breakb\" is not defined [name-defined]"
}
},
{
"level": "error",
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "testing.py"
},
"region": {
"startLine": 2
}
}
}
],
"message": {
"text": "\"break\" outside loop"
}
}
],
"tool": {
"driver": {
"name": "mypy"
}
}
}
],
"version": "2.1.0"
}
LINTER OUTPUT: pylint
735b1a713b75192e6bb7c01b4f55f7ce16ceb249
e31287f86aa19dcebb1e1e9a6bcc2813a93b0b3c
signals-action
{
"$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json",
Expand Down

0 comments on commit 65d5a21

Please sign in to comment.