Skip to content

Commit

Permalink
chore: debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BCerki committed Sep 15, 2023
1 parent 1dd24f4 commit b8f13df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .bin/pre-commit-pylint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ set -euxo pipefail

pushd bc_obps || exit 1

# Get the Poetry virtual environment path and save it in a variable
VENV_PATH=$(poetry env info --path)
export VIRTUAL_ENV_DISABLE_PROMPT=1
poetry shell

# Activate the virtual environment
source "$VENV_PATH/bin/activate"
# # Get the Poetry virtual environment path and save it in a variable
# VENV_PATH=$(poetry env info --path)

# # Activate the virtual environment
# source "$VENV_PATH/bin/activate"

# Run pylint on the bc_obps folder
poetry run pylint --rcfile=.pylintrc *.py
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ repos:
hooks:
- id: pylint
name: pylint
# entry: ./.bin/pre-commit-pylint.sh
entry: ./.bin/pre-commit-pylint.sh
language: script
types: [python]
args: [
Expand Down

0 comments on commit b8f13df

Please sign in to comment.