Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
- recent PR comes with long line linting error
- pipeline was using different pylint version, it gives error whereas my local does not
  • Loading branch information
serengil committed May 17, 2024
1 parent 676f279 commit 3a1a4a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install pylint==3.0.2
pip install black
pip install .
Expand Down
11 changes: 6 additions & 5 deletions deepface/modules/recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def find(
silent (boolean): Suppress or allow some log messages for a quieter analysis process.
refresh_database (boolean): Synchronizes the images representation (pkl) file with the
directory/db files, if set to false, it will ignore any file changes inside the db_path
refresh_database (boolean): Synchronizes the images representation (pkl) file with the
directory/db files, if set to false, it will ignore any file changes inside the db_path
directory (default is True).
Expand Down Expand Up @@ -157,8 +157,10 @@ def find(
replaced_images = []

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
if refresh_database:
Expand All @@ -180,7 +182,6 @@ def find(
logger.debug(f"Even though {identity} represented before, it's replaced later.")
replaced_images.append(identity)


if not silent and (len(new_images) > 0 or len(old_images) > 0 or len(replaced_images) > 0):
logger.info(
f"Found {len(new_images)} newly added image(s)"
Expand Down

0 comments on commit 3a1a4a0

Please sign in to comment.