-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄 adding interrogate docstring check
- Loading branch information
1 parent
250e2a4
commit 4df24a5
Showing
10 changed files
with
113 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,3 +51,6 @@ jobs: | |
- name: Run maintainability | ||
run: | | ||
make maintainability | ||
- name: Run interrogate | ||
run: | | ||
make interrogate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"actual": "80.0%,", | ||
"RESULT": "PASSED" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Run the interrogate command and capture the output | ||
$output = poetry run interrogate pycvcqv | ||
|
||
# Extract the RESULT | ||
$result = $output | Select-String -Pattern 'RESULT:' | ForEach-Object { | ||
$_.Line -split ' ' | Select-Object -Index 1 | ||
} | ||
|
||
# Extract the actual percentage | ||
$actual = $output | Select-String -Pattern 'actual:' | ForEach-Object { | ||
$line = $_.Line -split ' ' | Select-Object -Index 3 | ||
$line.TrimEnd(')') | ||
} | ||
|
||
# Create an object to store the RESULT and actual percentage in JSON format | ||
$jsonOutput = @{ | ||
RESULT = $result | ||
actual = $actual | ||
} | ConvertTo-Json | ||
|
||
# Save the JSON output to a file | ||
$jsonOutput | Set-Content -Path ".logs/docstring.json" | ||
|
||
# Output for verification | ||
Write-Output "RESULT: $result, actual: $actual" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
find . -name 'docstring.txt' -delete | ||
interrogate -v lib/web/ >>.logs/docstring.txt | ||
poetry run interrogate pycvcqv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters