Skip to content

Commit

Permalink
added all required options to lintly
Browse files Browse the repository at this point in the history
  • Loading branch information
mnschmit committed May 9, 2023
1 parent 0ab649f commit e513b28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ runs:
python $GITHUB_ACTION_PATH/linting_orchestrator.py ${{ github.event_name == 'pull_request' }} flake8 ${{ steps.changes.outputs.addedOrModifiedPython_files }}
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
PR_NUMBER: ${{ github.event.number }}
REPOSITORY_NAME: ${{ github.repository }}

- name: mypy
uses: tsuyoshicho/action-mypy@v3.11.0
Expand All @@ -41,3 +43,5 @@ runs:
python $GITHUB_ACTION_PATH/linting_orchestrator.py ${{ github.event_name == 'pull_request' }} pylint ${{ steps.changes.outputs.addedOrModifiedPython_files }}
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
PR_NUMBER: ${{ github.event.number }}
REPOSITORY_NAME: ${{ github.repository }}
7 changes: 6 additions & 1 deletion linting_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,17 @@
"lintly",
"--api-key",
os.environ["GITHUB_TOKEN"],
"--pr",
os.environ["PR_NUMBER"],
"--repo",
os.environ["REPOSITORY_NAME"],
"--commit-sha",
os.environ["GITHUB_SHA"],
"--fail-on",
"any",
"--post-status",
"--request-changes",
"--use-checks",
"--no-exit-zero",
]


Expand Down

0 comments on commit e513b28

Please sign in to comment.