https://github.com/jayvdb/flake8-format-ansi
ANSI error format plugin for flake8
https://github.com/jayvdb/flake8-format-ansi
Last synced: over 1 year ago
JSON representation
ANSI error format plugin for flake8
- Host: GitHub
- URL: https://github.com/jayvdb/flake8-format-ansi
- Owner: jayvdb
- License: mit
- Created: 2016-01-06T11:46:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-10-27T10:30:08.000Z (almost 5 years ago)
- Last Synced: 2024-10-15T20:43:18.704Z (almost 2 years ago)
- Language: Python
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flake8-format-ansi
ANSI error format plugin for flake8
`pep8` and `flake8` support a custom error format using `--format=..`. This flake8 plugin allows ANSI escape codes to be used in the custom error format.
e.g.
\e[31mERROR:\e[0m %(path)s:%(row)d:%(col)d: \e[31m%(code)s\e[0m %(text)s
This can be placed into the `[flake8]` section of the configuration file.
e.g.
[flake8]
format = \e[31mERROR:\e[0m %(path)s:%(row)d:%(col)d: \e[31m%(code)s\e[0m %(text)s
However note that will cause ANSI escape codes to be shown in CMD.EXE. See https://github.com/adoxa/ansicon for a way to add ANSI support to CMD.EXE on some MS Windows version.