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 44extend = " .ruff-excludes.toml"
55
66line-length = 100
7- target-version = " py310 "
7+ target-version = " py312 "
88
99[lint ]
1010select = [
Original file line number Diff line number Diff line change 3333
3434from __future__ import annotations
3535
36- from datetime import datetime , timezone
36+ from datetime import datetime , UTC
3737import argparse
3838import os
3939import sys
@@ -163,7 +163,7 @@ def main():
163163 skipped = 0
164164 filtered = 0
165165
166- run_date = datetime .now (timezone . utc ).isoformat (timespec = 'seconds' )
166+ run_date = datetime .now (UTC ).isoformat (timespec = 'seconds' )
167167
168168 init_logs ()
169169
@@ -251,7 +251,7 @@ def main():
251251 res ['environment' ] = {
252252 'zephyr_version' : data_id ['version' ],
253253 'commit_date' :
254- git_commit .committed_datetime .astimezone (timezone . utc ).isoformat (timespec = 'seconds' ),
254+ git_commit .committed_datetime .astimezone (UTC ).isoformat (timespec = 'seconds' ),
255255 'run_date' : run_date ,
256256 'options' : {
257257 'testsuite_root' : [ plan [r_plan ]['application' ] ],
Original file line number Diff line number Diff line change 1616import subprocess
1717import sys
1818from collections .abc import Generator
19- from datetime import datetime , timezone
19+ from datetime import UTC , datetime
2020from importlib import metadata
2121from pathlib import Path
2222
@@ -1107,7 +1107,7 @@ def non_default_options(self) -> dict:
11071107 def discover (self ):
11081108 self .check_zephyr_version ()
11091109 self .get_toolchain ()
1110- self .run_date = datetime .now (timezone . utc ).isoformat (timespec = 'seconds' )
1110+ self .run_date = datetime .now (UTC ).isoformat (timespec = 'seconds' )
11111111
11121112 def check_zephyr_version (self ):
11131113 try :
You can’t perform that action at this time.
0 commit comments