Skip to content

Commit

Permalink
pre-commit Enable ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Nov 3, 2024
1 parent 7004819 commit 4484194
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ repos:
additional_dependencies:
- tomli

# - repo: https://github.com/astral-sh/ruff-pre-commit
# rev: v0.7.2
# hooks: # Format before linting
# - id: ruff-format
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.2
hooks: # Format before linting
- id: ruff-format
# - id: ruff
2 changes: 1 addition & 1 deletion pyttsx3/drivers/sapi5.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _ISpeechVoiceEvents_EndStream(self, stream_number, stream_position):
d.endLoop() # hangs if you dont have this

def _ISpeechVoiceEvents_Word(self, stream_number, stream_position, char, length):
if (current_text := self._driver._current_text):
if current_text := self._driver._current_text:
current_word = current_text[char : char + length]
else:
current_word = "Unknown"
Expand Down

0 comments on commit 4484194

Please sign in to comment.