|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2021 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module implementing some enums for the import order checker. |
|
8 """ |
|
9 |
|
10 # |
|
11 # adapted from flake8-alphabetize v0.0.17 |
|
12 # |
|
13 |
|
14 import enum |
|
15 |
|
16 |
|
17 class GroupEnum(enum.IntEnum): |
|
18 """ |
|
19 Class representing the various import groups. |
|
20 """ |
|
21 FUTURE = 1 |
|
22 STDLIB = 2 |
|
23 THIRD_PARTY = 3 |
|
24 APPLICATION = 4 |
|
25 |
|
26 |
|
27 class NodeTypeEnum(enum.IntEnum): |
|
28 """ |
|
29 Class representing the import node types. |
|
30 """ |
|
31 IMPORT = 1 |
|
32 IMPORT_FROM = 2 |