Skip to content

Commit

Permalink
Fix SC2002 "useless use of cat" linter error when reading/setting pyt…
Browse files Browse the repository at this point in the history
…hon version from `.python-version` file. This should wrap up improved workaround for running super-linter with context of the project's Python dependenices based on super-linter/super-linter#157 (comment).
  • Loading branch information
tylermilner committed May 10, 2024
1 parent 94b272a commit 2f888cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
# Python folder name when setting PYTHONPATH for super-linter
- name: Get Python version from .python-version file
id: get-python-version
run: echo "python-version=$(cat .python-version | cut -d '.' -f 1,2)" >> "$GITHUB_OUTPUT"
run: echo "python-version=$(cut -d '.' -f 1,2 .python-version)" >> "$GITHUB_OUTPUT"

- name: Lint Codebase
id: super-linter
Expand Down

0 comments on commit 2f888cd

Please sign in to comment.