|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2021 - 2023 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.21 |
|
12 # |
|
13 |
|
14 import enum |
|
15 |
|
16 |
|
17 class GroupEnum(enum.IntEnum): |
|
18 """ |
|
19 Class representing the various import groups. |
|
20 """ |
|
21 |
|
22 FUTURE = 1 |
|
23 STDLIB = 2 |
|
24 THIRDPARTY = 3 |
|
25 FIRSTPARTY = 4 |
|
26 LOCALPATH = 5 |
|
27 |
|
28 |
|
29 class NodeTypeEnum(enum.IntEnum): |
|
30 """ |
|
31 Class representing the import node types. |
|
32 """ |
|
33 |
|
34 IMPORT = 1 |
|
35 IMPORT_FROM = 2 |