misc linter cleanup
This commit is contained in:
parent
5cd20f9751
commit
2512c83749
2 changed files with 1 additions and 6 deletions
|
|
@ -77,7 +77,7 @@ def parse_datetime(data: bytes) -> list[datetime]:
|
|||
year, *date_parts = parse_int2(data[ii:ii + 12])
|
||||
try:
|
||||
dt = datetime(year + 1900, *date_parts)
|
||||
except ValueError as err:
|
||||
except ValueError:
|
||||
dt = datetime(1900, 1, 1, 0, 0, 0)
|
||||
logger.info(f'Invalid date {[year] + date_parts}, setting {dt} instead')
|
||||
dts.append(dt)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "klamath"
|
||||
description = "GDSII format reader/writer"
|
||||
|
|
@ -84,7 +80,6 @@ lint.ignore = [
|
|||
"ANN002", # *args
|
||||
"ANN003", # **kwargs
|
||||
"ANN401", # Any
|
||||
"ANN101", # self: Self
|
||||
"SIM108", # single-line if / else assignment
|
||||
"RET504", # x=y+z; return x
|
||||
"PIE790", # unnecessary pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue