File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 38
38
args : [--target-version, "3.2"]
39
39
40
40
- repo : https://github.com/astral-sh/ruff-pre-commit
41
- rev : v0.11.0
41
+ rev : v0.11.2
42
42
hooks : # Format before linting
43
43
# - id: ruff-format
44
44
- id : ruff
Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ def schedule(self):
395
395
def get_excluded_hours_for_crontab_tasks ():
396
396
# Generate the full list of allowed hours for crontabs
397
397
allowed_crontab_hours = [
398
- str ( hour ). zfill ( 2 ) for hour in range (24 )
398
+ f" { hour :02 } " for hour in range (24 )
399
399
] + [
400
400
str (hour ) for hour in range (10 )
401
401
]
@@ -408,9 +408,9 @@ def get_excluded_hours_for_crontab_tasks():
408
408
409
409
# Create a set of hours to remove (both padded and non-padded versions)
410
410
hours_to_remove = {
411
- str ( current_hour ). zfill ( 2 ) , str (current_hour ),
412
- str ( next_hour ). zfill ( 2 ) , str (next_hour ),
413
- str ( previous_hour ). zfill ( 2 ) , str (previous_hour ),
411
+ f" { current_hour :02 } " , str (current_hour ),
412
+ f" { next_hour :02 } " , str (next_hour ),
413
+ f" { previous_hour :02 } " , str (previous_hour ),
414
414
str (4 ), "04" , # celery's default cleanup task
415
415
}
416
416
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ lint.ignore = [
71
71
" N803" ,
72
72
" N806" ,
73
73
" PIE790" ,
74
- " PT004" ,
75
74
" PT009" ,
76
75
" PT027" ,
77
76
" UP031" ,
@@ -82,6 +81,7 @@ lint.per-file-ignores."*/migrations/*" = [
82
81
" D" ,
83
82
" E501" ,
84
83
" I" ,
84
+ " PGH004" ,
85
85
]
86
86
lint.per-file-ignores."django_celery_beat/models.py" = [
87
87
" ISC002" ,
You can’t perform that action at this time.
0 commit comments