-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(scripts): move checks and corrections to files
- Loading branch information
Showing
12 changed files
with
335 additions
and
318 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 |
---|---|---|
|
@@ -81,6 +81,7 @@ | |
"LTRB", | ||
"maxdepth", | ||
"MedlinePlus", | ||
"metabolization", | ||
"Metabolizer", | ||
"metabolizers", | ||
"mirabegron", | ||
|
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
def check_brand_name_whitespace(_, annotations): | ||
check_applies = True | ||
for brand_name in annotations['brand_names']: | ||
trimmed_name = brand_name.strip() | ||
if trimmed_name != brand_name: | ||
check_applies = False | ||
break | ||
return check_applies |
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 @@ | ||
CONSULT_TEXT = 'consult your pharmacist or doctor' |
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 @@ | ||
from analyze.checks.constants import CONSULT_TEXT | ||
|
||
def has_consult(_, annotations): | ||
return CONSULT_TEXT in annotations['recommendation'] |
Oops, something went wrong.