Skip to content

include filepath as __file__ in global scope #1317

include filepath as __file__ in global scope

include filepath as __file__ in global scope #1317

Workflow file for this run

name: flake8
on:
pull_request:
paths:
- 'src/rez/**.py'
- 'src/rezplugins/**.py'
- '.github/workflows/flake8.yaml'
- '!src/rez/utils/_version.py'
- '!src/rez/data/**'
- '!src/rez/vendor/**'
- '!src/rez/backport/**'
push:
paths:
- 'src/rez/**.py'
- 'src/rezplugins/**.py'
- '.github/workflows/flake8.yaml'
- '!src/rez/utils/_version.py'
- '!src/rez/data/**'
- '!src/rez/vendor/**'
- '!src/rez/backport/**'
permissions:
contents: read
jobs:
lint:
name: Run Linter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: 3.7
- name: Install Dependencies
run: |
pip install flake8
- name: Run flake8
run: >-
find -name '*.py'
-not -path './rez/vendor/*'
-not -path './rez/data/*'
-not -path './rez/backport/*'
-not -path './build_utils/*'
-not -path './support/*'
-not -path './rezgui/*'
| xargs flake8
working-directory: src