From a074c4485ef9586d64ccb0b1b062d37e9431f6ce Mon Sep 17 00:00:00 2001 From: Farid Zakaria Date: Sat, 6 Apr 2024 04:43:32 +0000 Subject: [PATCH] Add isort check to lint and make fixes for import --- Makefile | 1 + sqlelf/cli.py | 3 +-- sqlelf/elf.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 90fc9a9..68020eb 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,7 @@ fmt: ## Format code using black & isort. .PHONY: lint lint: ## Run pep8, black, mypy linters. flake8 sqlelf/ benchmarks/ tests/ tools/ + isort --check sqlelf/ benchmarks/ tests/ tools/ black --check sqlelf/ benchmarks/ tests/ tools/ pyright mypy --strict --install-types --non-interactive sqlelf tests tools diff --git a/sqlelf/cli.py b/sqlelf/cli.py index fff6ccd..c5c0e9c 100644 --- a/sqlelf/cli.py +++ b/sqlelf/cli.py @@ -1,4 +1,5 @@ import argparse +import logging import os import os.path import sys @@ -9,8 +10,6 @@ from sqlelf import elf from sqlelf import sql as api_sql -import logging - @dataclass class ProgramArguments: diff --git a/sqlelf/elf.py b/sqlelf/elf.py index f23ea5e..44404bc 100644 --- a/sqlelf/elf.py +++ b/sqlelf/elf.py @@ -1,5 +1,6 @@ from __future__ import annotations +import logging import os from dataclasses import dataclass from enum import Flag, auto @@ -21,8 +22,6 @@ from sqlelf._vendor.elftools.dwarf.die import DIE as DIE_t from sqlelf._vendor.elftools.elf.elffile import ELFFile -import logging - LOG = logging.getLogger(__name__)