- recent PR comes with long line linting error
- pipeline was using different pylint version, it gives error whereas my local does not
This commit is contained in:
Sefik Ilkin Serengil 2024-05-17 22:02:58 +01:00
parent 676f2793d7
commit 3a1a4a06e3
2 changed files with 7 additions and 6 deletions

View File

@ -60,7 +60,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pylint pip install pylint==3.0.2
pip install black pip install black
pip install . pip install .

View File

@ -157,8 +157,10 @@ def find(
replaced_images = [] replaced_images = []
if not refresh_database: if not refresh_database:
logger.info(f"There could be changes in {db_path} not tracked. Set refresh_database to true to assure that any changes will be tracked.") logger.info(
f"Could be some changes in {db_path} not tracked."
"Set refresh_database to true to assure that any changes will be tracked."
)
# Enforce data consistency amongst on disk images and pickle file # Enforce data consistency amongst on disk images and pickle file
if refresh_database: if refresh_database:
@ -180,7 +182,6 @@ def find(
logger.debug(f"Even though {identity} represented before, it's replaced later.") logger.debug(f"Even though {identity} represented before, it's replaced later.")
replaced_images.append(identity) replaced_images.append(identity)
if not silent and (len(new_images) > 0 or len(old_images) > 0 or len(replaced_images) > 0): if not silent and (len(new_images) > 0 or len(old_images) > 0 or len(replaced_images) > 0):
logger.info( logger.info(
f"Found {len(new_images)} newly added image(s)" f"Found {len(new_images)} newly added image(s)"