Skip to content

Commit

Permalink
style: add python reordering into pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Radek Tomšej committed Oct 29, 2022
1 parent b2f6ad8 commit 1b18110
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-case-conflict
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
- id: reorder-python-imports
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
Expand Down
17 changes: 9 additions & 8 deletions dbt/adapters/duckdb/connections.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
import atexit
import threading
from contextlib import contextmanager
from typing import Any, Dict, Optional, Tuple
from dataclasses import dataclass
from typing import Any
from typing import Dict
from typing import Optional
from typing import Tuple

import duckdb

import dbt.exceptions
from dbt.adapters.base import Credentials
from dbt.adapters.sql import SQLConnectionManager
from dbt.contracts.connection import (
AdapterRequiredConfig,
AdapterResponse,
Connection,
ConnectionState,
)
from dbt.contracts.connection import AdapterRequiredConfig
from dbt.contracts.connection import AdapterResponse
from dbt.contracts.connection import Connection
from dbt.contracts.connection import ConnectionState
from dbt.logger import GLOBAL_LOGGER as logger
from dataclasses import dataclass


@dataclass
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import os
import re

from setuptools import find_namespace_packages, setup
from setuptools import find_namespace_packages
from setuptools import setup

this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, "README.md")) as f:
Expand Down

0 comments on commit 1b18110

Please sign in to comment.