diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e412f0d..983e416 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,15 +3,15 @@ default_language_version: repos: - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 24.3.0 hooks: - id: black - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 + rev: 7.0.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-yaml - id: end-of-file-fixer diff --git a/network_manager/alembic/versions/242f91dc05ae_create_nodes_table.py b/network_manager/alembic/versions/242f91dc05ae_create_nodes_table.py index 8d6bef3..e162043 100644 --- a/network_manager/alembic/versions/242f91dc05ae_create_nodes_table.py +++ b/network_manager/alembic/versions/242f91dc05ae_create_nodes_table.py @@ -5,6 +5,7 @@ Create Date: 2023-04-21 08:47:13.216912 """ + from alembic import op import sqlalchemy as sa diff --git a/network_manager/db.py b/network_manager/db.py index ef4dee7..fa25296 100644 --- a/network_manager/db.py +++ b/network_manager/db.py @@ -10,7 +10,6 @@ class DB: - """ Contains functions for performing database operations """ diff --git a/network_manager/node_registry.py b/network_manager/node_registry.py index 4598f9d..fe031a4 100644 --- a/network_manager/node_registry.py +++ b/network_manager/node_registry.py @@ -3,7 +3,6 @@ class NodeRegistry: - """ Contains functions for retrieving information from the github node registry """ @@ -26,7 +25,6 @@ def get_node_registry(): @staticmethod def get_node_info(): - """ Gets information from the node info repository at the given url. Returns the information in json format diff --git a/tests/conftest.py b/tests/conftest.py index 13619b4..d52623b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -44,7 +44,6 @@ def get_session_factory(engine): def get_tm_session(session_factory, transaction_manager, request=None): - """ Get a ``sqlalchemy.orm.Session`` instance backed by a transaction.