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 4
4
extend = " .ruff-excludes.toml"
5
5
6
6
line-length = 100
7
- target-version = " py310 "
7
+ target-version = " py312 "
8
8
9
9
[lint ]
10
10
select = [
Original file line number Diff line number Diff line change 33
33
34
34
from __future__ import annotations
35
35
36
- from datetime import datetime , timezone
36
+ from datetime import datetime , UTC
37
37
import argparse
38
38
import os
39
39
import sys
@@ -163,7 +163,7 @@ def main():
163
163
skipped = 0
164
164
filtered = 0
165
165
166
- run_date = datetime .now (timezone . utc ).isoformat (timespec = 'seconds' )
166
+ run_date = datetime .now (UTC ).isoformat (timespec = 'seconds' )
167
167
168
168
init_logs ()
169
169
@@ -251,7 +251,7 @@ def main():
251
251
res ['environment' ] = {
252
252
'zephyr_version' : data_id ['version' ],
253
253
'commit_date' :
254
- git_commit .committed_datetime .astimezone (timezone . utc ).isoformat (timespec = 'seconds' ),
254
+ git_commit .committed_datetime .astimezone (UTC ).isoformat (timespec = 'seconds' ),
255
255
'run_date' : run_date ,
256
256
'options' : {
257
257
'testsuite_root' : [ plan [r_plan ]['application' ] ],
Original file line number Diff line number Diff line change 16
16
import subprocess
17
17
import sys
18
18
from collections .abc import Generator
19
- from datetime import datetime , timezone
19
+ from datetime import UTC , datetime
20
20
from importlib import metadata
21
21
from pathlib import Path
22
22
@@ -1107,7 +1107,7 @@ def non_default_options(self) -> dict:
1107
1107
def discover (self ):
1108
1108
self .check_zephyr_version ()
1109
1109
self .get_toolchain ()
1110
- self .run_date = datetime .now (timezone . utc ).isoformat (timespec = 'seconds' )
1110
+ self .run_date = datetime .now (UTC ).isoformat (timespec = 'seconds' )
1111
1111
1112
1112
def check_zephyr_version (self ):
1113
1113
try :
You can’t perform that action at this time.
0 commit comments