src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/NameOrder/ImportsEnums.py

branch
eric7
changeset 10046
35b27af462ef
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10045:f5c57f8d17a4 10046:35b27af462ef
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

eric ide

mercurial