chore: migrating to ruff and updating pre-commit hooks

This commit is contained in:
Karim shoair
2025-04-13 17:32:00 +02:00
parent f34b42ea33
commit 0c8dd63f87
35 changed files with 2324 additions and 1182 deletions
+8 -8
View File
@@ -9,12 +9,12 @@ def clean():
# Directories and patterns to clean
cleanup_patterns = [
'build',
'dist',
'*.egg-info',
'__pycache__',
'.eggs',
'.pytest_cache'
"build",
"dist",
"*.egg-info",
"__pycache__",
".eggs",
".pytest_cache",
]
# Clean directories
@@ -30,7 +30,7 @@ def clean():
print(f"Could not remove {path}: {e}")
# Remove compiled Python files
for path in base_dir.rglob('*.py[co]'):
for path in base_dir.rglob("*.py[co]"):
try:
path.unlink()
print(f"Removed compiled file: {path}")
@@ -38,5 +38,5 @@ def clean():
print(f"Could not remove {path}: {e}")
if __name__ == '__main__':
if __name__ == "__main__":
clean()