File tree Expand file tree Collapse file tree 5 files changed +8
-43
lines changed
{{cookiecutter.project_name}} Expand file tree Collapse file tree 5 files changed +8
-43
lines changed Original file line number Diff line number Diff line change @@ -224,10 +224,8 @@ for a plugin to do this with pytest.
224224
225225You can also do this
226226[by supplying matchers](https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md),
227- which tell GitHub to look for certain patterns, such as
228- ` echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json"` . Do keep
229- in mind you can only see up to 10 matches per type per step, and a total of 50
230- matchers.
227+ which tell GitHub to look for certain patterns. Do keep in mind you can only see
228+ up to 10 matches per type per step, and a total of 50 matchers.
231229
232230# ## Common useful actions
233231
Original file line number Diff line number Diff line change @@ -862,12 +862,13 @@ And a noxfile entry:
862862@nox.session
863863def pylint(session: nox.Session) -> None:
864864 session.install("-e.")
865- session.install("pylint")
865+ session.install("pylint>=3.2 ")
866866 session.run("pylint", "<your package>", *session.posargs)
867867` ` `
868868
869- And you can add this to your GitHub Actions using `run : pipx run nox -s pylint`.
870- You can replace `src` with the module name.
869+ And you can add this to your GitHub Actions using
870+ `run : pipx run nox -s pylint -- --output-format=github`. You can replace
871+ ` <your package>` with the module name.
871872
872873# # Jupyter notebook support
873874
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3131 with :
3232 extra_args : --hook-stage manual --all-files
3333 - name : Run PyLint
34- run : |
35- echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json"
36- pipx run nox -s pylint
34+ run : pipx run nox -s pylint -- --output-format=github
3735
3836 checks :
3937 name : {% raw %}Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}{% endraw %}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def pylint(session: nox.Session) -> None:
3131 """
3232 # This needs to be installed into the package environment, and is slower
3333 # than a pre-commit check
34- session .install ("." , "pylint" )
34+ session .install ("." , "pylint>=3.2 " )
3535 session .run ("pylint" , "{{ cookiecutter.__project_slug }}" , * session .posargs )
3636
3737
You can’t perform that action at this time.
0 commit comments