@@ -52,8 +52,12 @@ Example `pyproject.toml` and `.flake8` files for linting this repository are inc
5252
5353#### Call the Action with a workflow
5454
55+ First check out the repository with ` github/checkout ` of a supported version, so the code is available to the workflow.
56+
57+ The simplest use is to use just one linter at a time:
58+
5559``` yaml
56- use : advanced-security/python-lint-code-scanning-action@v1
60+ uses : advanced-security/python-lint-code-scanning-action@v1
5761with :
5862 linter : flake8
5963` ` `
6872 matrix :
6973 linter : [flake8, pylint, ruff, mypy, pytype, pyright, fixit, pyre]
7074 steps :
71- - use : advanced-security/python-lint-code-scanning-action@v1
75+ - uses : advanced-security/python-lint-code-scanning-action@v1
7276 with :
7377 linter : ${{ matrix.linter }}
7478` ` `
8488 matrix :
8589 python-version : [3.7, 3.8, 3.9, 3.10, 3.11]
8690 steps :
87- - use : advanced-security/python-lint-code-scanning-action@v1
91+ - uses : advanced-security/python-lint-code-scanning-action@v1
8892 with :
8993 linter : flake8
9094 python-version : ${{ matrix.python-version }}
@@ -100,7 +104,7 @@ jobs:
100104 runs-on : ubuntu-latest
101105 steps :
102106 - run : python3 -mpip install flake8-bugbear
103- - use : advanced-security/python-lint-code-scanning-action@v1
107+ - uses : advanced-security/python-lint-code-scanning-action@v1
104108 with :
105109 linter : flake8
106110` ` `
@@ -114,7 +118,7 @@ jobs:
114118 lint :
115119 runs-on : ubuntu-latest
116120 steps :
117- - use : advanced-security/python-lint-code-scanning-action@v1
121+ - uses : advanced-security/python-lint-code-scanning-action@v1
118122 with :
119123 linter : ruff
120124 ruff-version : " 0.0.257"
0 commit comments