Skip to content

Commit 1f2e436

Browse files
fix:references
1 parent 1300aac commit 1f2e436

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ jobs:
182182
Run-Tests:
183183
name: Run tests for talawa api
184184
runs-on: ubuntu-latest
185-
needs: [Code-Quality-Checks, check_code_coverage_disable]
185+
needs: [Code-Quality-Checks, python_checks]
186186
env:
187187
CODECOV_UNIQUE_NAME: ${{github.workflow}}-${{github.ref_name}}
188188
steps:

.github/workflows/scripts/detect_ts_ignore.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@ def check_ts_ignore(files: list[str]) -> int:
3333

3434
return 1 if ts_ignore_found else 0
3535

36-
37-
if __name__ == "__main__":
36+
def main():
37+
"""Main function to parse arguments and run the check."""
3838
parser = argparse.ArgumentParser(description="Check for @ts-ignore in changed files.")
3939
parser.add_argument("--files", nargs="+", help="List of changed files", required=True)
4040
args = parser.parse_args()
4141

4242
exit_code = check_ts_ignore(args.files)
4343
sys.exit(exit_code)
44+
45+
46+
47+
if __name__ == "__main__":
48+
main()
49+

0 commit comments

Comments
 (0)