Skip to content

add flight.py and test #3

add flight.py and test

add flight.py and test #3

Triggered via push March 25, 2025 21:41
Status Failure
Total duration 15s
Artifacts

ci.yml

on: push
Matrix: quality
Fit to window
Zoom out
Zoom in

Annotations

34 errors
Ruff (D401): examples/flight.py#L68
examples/flight.py:68:5: D401 First line of docstring should be in imperative mood: "Example usage of the Flight class."
Ruff (EM101): examples/flight.py#L38
examples/flight.py:38:30: EM101 Exception must not use a string literal, assign to variable first
Ruff (TRY003): examples/flight.py#L38
examples/flight.py:38:19: TRY003 Avoid specifying long messages outside the exception class
Ruff (ANN001): examples/flight.py#L34
examples/flight.py:34:49: ANN001 Missing type annotation for function argument `info`
Ruff (EM102): examples/flight.py#L29
examples/flight.py:29:30: EM102 Exception must not use an f-string literal, assign to variable first
Ruff (TRY003): examples/flight.py#L29
examples/flight.py:29:19: TRY003 Avoid specifying long messages outside the exception class
Ruff (B904): examples/flight.py#L29
examples/flight.py:29:13: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
Ruff (UP007): examples/flight.py#L20
examples/flight.py:20:23: UP007 Use `X | Y` for type annotations
Ruff (I001): examples/flight.py#L3
examples/flight.py:3:1: I001 Import block is un-sorted or un-formatted
Ruff (INP001): examples/flight.py#L1
examples/flight.py:1:1: INP001 File `examples/flight.py` is part of an implicit namespace package. Add an `__init__.py`.
Ruff (D401): examples/flight.py#L68
examples/flight.py:68:5: D401 First line of docstring should be in imperative mood: "Example usage of the Flight class."
Ruff (EM101): examples/flight.py#L38
examples/flight.py:38:30: EM101 Exception must not use a string literal, assign to variable first
Ruff (TRY003): examples/flight.py#L38
examples/flight.py:38:19: TRY003 Avoid specifying long messages outside the exception class
Ruff (ANN001): examples/flight.py#L34
examples/flight.py:34:49: ANN001 Missing type annotation for function argument `info`
Ruff (EM102): examples/flight.py#L29
examples/flight.py:29:30: EM102 Exception must not use an f-string literal, assign to variable first
Ruff (TRY003): examples/flight.py#L29
examples/flight.py:29:19: TRY003 Avoid specifying long messages outside the exception class
Ruff (B904): examples/flight.py#L29
examples/flight.py:29:13: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
Ruff (UP007): examples/flight.py#L20
examples/flight.py:20:23: UP007 Use `X | Y` for type annotations
Ruff (I001): examples/flight.py#L3
examples/flight.py:3:1: I001 Import block is un-sorted or un-formatted
Ruff (INP001): examples/flight.py#L1
examples/flight.py:1:1: INP001 File `examples/flight.py` is part of an implicit namespace package. Add an `__init__.py`.
quality (3.10)
The strategy configuration was canceled because "quality._3_11" failed
Ruff (D401): examples/flight.py#L68
examples/flight.py:68:5: D401 First line of docstring should be in imperative mood: "Example usage of the Flight class."
Ruff (EM101): examples/flight.py#L38
examples/flight.py:38:30: EM101 Exception must not use a string literal, assign to variable first
Ruff (TRY003): examples/flight.py#L38
examples/flight.py:38:19: TRY003 Avoid specifying long messages outside the exception class
Ruff (ANN001): examples/flight.py#L34
examples/flight.py:34:49: ANN001 Missing type annotation for function argument `info`
Ruff (EM102): examples/flight.py#L29
examples/flight.py:29:30: EM102 Exception must not use an f-string literal, assign to variable first
Ruff (TRY003): examples/flight.py#L29
examples/flight.py:29:19: TRY003 Avoid specifying long messages outside the exception class
Ruff (B904): examples/flight.py#L29
examples/flight.py:29:13: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
Ruff (UP007): examples/flight.py#L20
examples/flight.py:20:23: UP007 Use `X | Y` for type annotations
Ruff (I001): examples/flight.py#L3
examples/flight.py:3:1: I001 Import block is un-sorted or un-formatted
Ruff (INP001): examples/flight.py#L1
examples/flight.py:1:1: INP001 File `examples/flight.py` is part of an implicit namespace package. Add an `__init__.py`.
quality (3.12)
The strategy configuration was canceled because "quality._3_11" failed
quality (3.9)
The operation was canceled.
quality (3.9)
The strategy configuration was canceled because "quality._3_11" failed