Added a button to frame player to copy filename #13616
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
name: Pylint | |
on: pull_request | |
jobs: | |
Linter: | |
runs-on: ubuntu-22.04 # TODO: update pylint to 3.x and change this back to ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- id: files | |
uses: tj-actions/[email protected] | |
with: | |
files: | | |
**/*.py | |
- name: Run checks | |
env: | |
PR_FILES_AM: ${{ steps.files.outputs.added_modified }} | |
PR_FILES_RENAMED: ${{ steps.files.outputs.renamed }} | |
run: | | |
CHANGED_FILES="${{steps.files.outputs.all_changed_files}}" | |
if [[ ! -z $CHANGED_FILES ]]; then | |
pipx install $(grep "^pylint==" ./dev/requirements.txt) | |
pipx inject pylint \ | |
$(grep "^pylint-.\+==" ./dev/requirements.txt) \ | |
$(grep "^django==" ./cvat/requirements/base.txt) | |
echo "Pylint version: "$(pylint --version | head -1) | |
echo "The files will be checked: "$(echo $CHANGED_FILES) | |
pylint $CHANGED_FILES | |
else | |
echo "No files with the \"py\" extension found" | |
fi |