Skip to content

Commit

Permalink
add ci mode (#31108)
Browse files Browse the repository at this point in the history
  • Loading branch information
JudahSchwartz authored Nov 26, 2023
1 parent e1711e1 commit cb9cd91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
run: |
source .venv/bin/activate
demisto-sdk pre-commit -g --unit-test --validate --no-secrets --show-diff-on-failure --verbose --mode=nightly
demisto-sdk pre-commit -g --unit-test --validate --no-secrets --show-diff-on-failure --verbose --mode=ci
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
Expand Down
8 changes: 6 additions & 2 deletions .pre-commit-config_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ repos:
- id: ruff
args: [ "--fix" ]
args:nightly: [ "--config=nightly_ruff.toml" ]
args:ci: [ "--config=nightly_ruff.toml" ]

- repo: https://github.com/pre-commit/mirrors-autopep8
rev: "v2.0.4"
Expand All @@ -49,8 +50,10 @@ repos:
- id: pylint-in-docker
name: pylint-in-docker
description: Run pylint on the code in content packs
docker_image:nightly: from-yml
docker_image: native:ga,from-yml,native:dev,native:maintenance
docker_image:nightly: native:ga,native:maintenance,from-yml
docker_image:ci: native:ga,from-yml,native:dev,native:maintenance
docker_image:native: native:ga,from-yml,native:dev,native:maintenance
docker_image: from-yml
entry: pylint
files: Packs\/.*\.py$
exclude: (_test\.py)|(.vulture_whitelist\.py)$
Expand Down Expand Up @@ -102,6 +105,7 @@ repos:
- id: sourcery
args: [ --no-summary, --diff, "git diff HEAD", "--fix" ]
args:nightly: [ --no-summary, --diff, "git diff HEAD" ]
args:ci: [ --no-summary, --diff, "git diff HEAD" ]
skip: true

- repo: https://github.com/pre-commit/mirrors-mypy
Expand Down

0 comments on commit cb9cd91

Please sign in to comment.