diff options
author | 2021-11-17 00:05:55 +0530 | |
---|---|---|
committer | 2021-11-17 00:05:55 +0530 | |
commit | 6b4bf603139560bac4272e8985eef3a8b6e88645 (patch) | |
tree | 593bea0910a4de39096bf1bfca197469967ac85d /.github/workflows | |
parent | Use HassanAbouelela/actions/setup-python@setup-python_v1.0.0 actions for inst... (diff) |
Remove env section and remove 'Add custom PYTHONUSERBASE to PATH' step.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/lint.yaml | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 270d1dc4..89297832 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -14,28 +14,13 @@ jobs: lint: name: Run pre-commit & flake8 runs-on: ubuntu-latest - env: - # Configure pip to cache dependencies and do a user install - PIP_NO_CACHE_DIR: false - PIP_USER: 1 - - # Make sure package manager does not use virtualenv - POETRY_VIRTUALENVS_CREATE: false - - # Specify explicit paths for python dependencies and the pre-commit - # environment so we know which directories to cache - POETRY_CACHE_DIR: ${{ github.workspace }}/.cache/py-user-base - PYTHONUSERBASE: ${{ github.workspace }}/.cache/py-user-base - PRE_COMMIT_HOME: ${{ github.workspace }}/.cache/pre-commit-cache steps: - - name: Add custom PYTHONUSERBASE to PATH - run: echo '${{ env.PYTHONUSERBASE }}/bin/' >> $GITHUB_PATH - - name: Install Python Dependencies uses: HassanAbouelela/actions/setup-python@setup-python_v1.0.0 with: - dev: false + # Set dev=true to run pre-commit which is a dev dependency + dev: true python_version: 3.9 # We will not run `flake8` here, as we will use a separate flake8 |