mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
Streamline Python file headers somewhat
- Add coding statement
- Import all modules in one line where possible
- Order: __future__, typing, plain imports, from imports,
janware modules
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
862a5dbc95
commit
428692ea3a
21 changed files with 50 additions and 40 deletions
|
|
@ -1,7 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import io
|
||||
import os, re, textwrap, json, csv
|
||||
import io, os, re, textwrap, json, csv
|
||||
from tabulate import tabulate # type: ignore
|
||||
|
||||
from jwutils.log import *
|
||||
|
|
|
|||
|
|
@ -4,9 +4,8 @@ from typing import Optional, Any
|
|||
|
||||
import abc
|
||||
|
||||
from ...log import *
|
||||
|
||||
from .DataType import DataType
|
||||
from ...log import *
|
||||
|
||||
class Column(abc.ABC): # export
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from typing import Optional
|
||||
|
||||
from ...log import *
|
||||
from enum import Enum, auto
|
||||
from datetime import datetime
|
||||
|
||||
from ...log import *
|
||||
|
||||
class Id(Enum):
|
||||
Integer = auto()
|
||||
SmallInteger = auto()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue