Skip to content

Rework models

Rework models #1779

Triggered via pull request January 10, 2024 13:24
Status Failure
Total duration 3m 13s
Artifacts

main.yml

on: pull_request
Matrix: check
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 11 warnings
Lint: api/db.py#L13
Unable to import 'kernelci.api.models'
Lint: api/main.py#L30
Unable to import 'kernelci.api.models'
Lint: tests/unit_tests/test_node_handler.py#L16
Unable to import 'kernelci.api.models'
check (3.10)
Process completed with exit code 8.
Lint: migrations/20231215122000_node_models.py#L1
Module name "20231215122000_node_models" doesn't conform to snake_case naming style
Lint: migrations/20231215122000_node_models.py#L16
Constant name "name" doesn't conform to UPPER_CASE naming style
Lint: migrations/20231215122000_node_models.py#L20
Argument name "db" doesn't conform to snake_case naming style
Lint: migrations/20231215122000_node_models.py#L20
Missing function or method docstring
Lint: migrations/20231215122000_node_models.py#L66
Argument name "db" doesn't conform to snake_case naming style
Lint: migrations/20231215122000_node_models.py#L66
Missing function or method docstring
Lint: tests/unit_tests/test_node_handler.py#L16
third party import "from kernelci.api.models import Node, Revision" should be placed before "from tests.unit_tests.conftest import BEARER_TOKEN"
Lint: tests/unit_tests/test_node_handler.py#L1
Similar lines in 2 files
Lint: tests/unit_tests/test_node_handler.py#L1
Similar lines in 2 files
Lint: tests/unit_tests/test_node_handler.py#L1
Similar lines in 2 files
check (3.10)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/