Skip to content

Commit 52e184b

Browse files
committed
add condition for linting job in build workflow
1 parent f534857 commit 52e184b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

template/.github/workflows/{% if AddGitHubActions %}build.yml{% endif %}

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- name: Verify that we can build the package
3939
run: python -m build
4040

41+
{%- if AddLinting -%}
4142
lint:
4243
name: Linting build
4344
runs-on: ubuntu-latest
@@ -62,3 +63,4 @@ jobs:
6263
run: |
6364
ruff check
6465
ruff format --check
66+
{%- endif -%}

0 commit comments

Comments
 (0)