src/eric7/CodeFormatting/BlackFormattingAction.py

Mon, 31 Oct 2022 15:29:18 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 31 Oct 2022 15:29:18 +0100
branch
eric7
changeset 9453
e5065dde905d
parent 9221
bf71ee032bb4
child 9653
e67609152c5e
permissions
-rw-r--r--

Code Formatting
- added an interface to resort the import statements of Python source files with the 'isort' utility

# -*- coding: utf-8 -*-

# Copyright (c) 2022 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module implementing an enum defining the various Black code formatting actions.
"""

import enum


class BlackFormattingAction(enum.Enum):
    """
    Class defining the various Black code formatting actions.
    """

    Format = 0
    Check = 1
    Diff = 2

eric ide

mercurial