Skip to content

Commit

Permalink
nit-picking
Browse files Browse the repository at this point in the history
  • Loading branch information
athiruma committed May 29, 2024
1 parent 5a1a688 commit 8944668
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
pip install flake8 pytest pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f tests_requirements.txt ]; then pip install -r tests_requirements.txt; fi
- name: Run pre-commit hooks
env:
LEAKTK_PATTERN_SERVER_AUTH_TOKEN: ${{ secrets.LEAKTK_PATTERN_SERVER_AUTH_TOKEN }}
run: |
pre-commit run --all-files
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
pip install flake8 pytest pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f tests_requirements.txt ]; then pip install -r tests_requirements.txt; fi
- name: Run pre-commit hooks
env:
LEAKTK_PATTERN_SERVER_AUTH_TOKEN: ${{ secrets.LEAKTK_PATTERN_SERVER_AUTH_TOKEN }}
run: |
pre-commit run --all-files
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
repos:
- repo: https://gitlab.corp.redhat.com/infosec-public/developer-workbench/tools.git
rev: rh-pre-commit-2.2.0
hooks:
# If you have not run this hook on your system before, it may prompt you to
# log in for patterns, and you will need to try again.
#
# Docs: https://source.redhat.com/departments/it/it-information-security/leaktk/leaktk_components/rh_pre_commit
- id: rh-pre-commit
# - id: rh-pre-commit.commit-msg # Optional for commit-msg attestation

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-json
- id: check-yaml
1 change: 1 addition & 0 deletions tests_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ elasticsearch-dsl==7.4.0
moto==2.3.2
oauthlib~=3.1.1
pandas
pre-commit==3.7.1
pytest
python-ldap==3.4.2
requests==2.32.2
Expand Down

0 comments on commit 8944668

Please sign in to comment.