Skip to content

Commit

Permalink
Fix pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Microwave-WYB committed May 21, 2024
1 parent c81f2dc commit 858cf27
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[MAIN]
load-plugins=pylint.extensions.docparams

[MESSAGES CONTROL]
disable=too-many-arguments
6 changes: 2 additions & 4 deletions phone_sensors/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ async def upload(
file_path = Path(tempfile.gettempdir()) / file_name
with open(file_path, "wb") as file:
file.write(audio_data)
audio = AudioSegment.from_wav(file_path)
audio.export(file_path, format="wav")
AudioSegment.from_wav(file_path).export(file_path, format="wav")

job_id = submit_analyze_audio_job(redis_conn, file_path, status)
return job_id
return submit_analyze_audio_job(redis_conn, file_path, status)
1 change: 1 addition & 0 deletions phone_sensors/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@


def main():
"""CLI entry point."""
settings = get_settings()
rich.print(settings)
engine = create_engine(str(settings.postgres_dsn))
Expand Down
2 changes: 2 additions & 0 deletions phone_sensors/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Utility functions"""

from geoalchemy2 import WKBElement
from geoalchemy2.shape import from_shape, to_shape
from shapely import Point
Expand Down

0 comments on commit 858cf27

Please sign in to comment.