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

branch
eric7
changeset 8802
129a973fc33e
child 8881
54e42bc2437a
equal deleted inserted replaced
8801:8fbb21be8579 8802:129a973fc33e
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

eric ide

mercurial