Skip to content

Commit

Permalink
Add isort check to lint and make fixes for import
Browse files Browse the repository at this point in the history
  • Loading branch information
fzakaria committed Apr 6, 2024
1 parent dade825 commit a074c44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions sqlelf/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import argparse
import logging
import os
import os.path
import sys
Expand All @@ -9,8 +10,6 @@
from sqlelf import elf
from sqlelf import sql as api_sql

import logging


@dataclass
class ProgramArguments:
Expand Down
3 changes: 1 addition & 2 deletions sqlelf/elf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import logging
import os
from dataclasses import dataclass
from enum import Flag, auto
Expand All @@ -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__)


Expand Down

0 comments on commit a074c44

Please sign in to comment.