Skip to content

Commit b3feaa0

Browse files
committed
chore(pyproject.toml): update exclude_lines to improve code quality checks by adding more exceptions and conditions to be excluded from analysis
1 parent dd1c12d commit b3feaa0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@ exclude_lines = [
9595
"pass",
9696
"raise ImportError",
9797
"__version__",
98+
"if TYPE_CHECKING:",
99+
"raise FileNotFoundError",
100+
"raise ValueError",
101+
"raise RuntimeError",
102+
"raise OSError",
103+
"except Exception as e:",
104+
"except ValueError:",
105+
"except FileNotFoundError:",
106+
"except OSError as e:",
107+
"except Exception:",
108+
"if not os.path.exists",
109+
"if os.path.exists",
110+
"def __init__",
98111
]
99112

100113
omit = [

0 commit comments

Comments
 (0)