We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 827884e + ef3852c commit 788de82Copy full SHA for 788de82
python-project-template/.github/workflows/{% if preferred_linter != 'none' %}linting.yml{% endif %}.jinja
@@ -30,11 +30,15 @@ jobs:
30
pip install .[dev]
31
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32
- name: Analyze code with linter
33
-{% if preferred_linter == 'pylint' %}
+{%- if preferred_linter == 'pylint' %}
34
run: |
35
pylint -rn -sn --recursive=y ./src --rcfile=./src/.pylintrc
36
-{% elif preferred_linter == 'black' %}
+ pylint -rn -sn --recursive=y ./tests --rcfile=./tests/.pylintrc
37
+{%- if include_benchmarks %}
38
+ pylint -rn -sn --recursive=y ./benchmarks --rcfile=./tests/.pylintrc
39
+{%- endif %}
40
+{%- elif preferred_linter == 'black' %}
41
uses: psf/black@stable
42
with:
43
src: ./src
-{% endif -%}
44
0 commit comments