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

branch
eric7
changeset 9209
b99e7fd55fd3
parent 8881
54e42bc2437a
child 9221
bf71ee032bb4
equal deleted inserted replaced
9208:3fc8dfeb6ebe 9209:b99e7fd55fd3
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2021 - 2022 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

eric ide

mercurial