Commit bf8fcaf7 authored by Samuel GAIST's avatar Samuel GAIST

[pre-commit] Add pre-commit and flake8 configuration file

parent fd77c14a
max-line-length = 80
select = B,C,E,F,W,T4,B9,B950
ignore = E501, W503
# See for more information
# See for more hooks
- repo:
rev: stable
- id: black
language_version: python3.6
- repo:
rev: v2.0.0
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- id: check-added-large-files
- id: check-docstring-first
- id: flake8
- id: check-yaml
exclude: conda/meta.yaml
- repo:
rev: 'master' # Update me!
- id: bandit
exclude: beat/editor/test
- repo: local
- id: sphinx-build
name: sphinx build
entry: python -m
args: [-a, -E, -W, doc, sphinx]
language: system
files: ^doc/
types: [file]
pass_filenames: false
- id: sphinx-doctest
name: sphinx doctest
entry: python -m
args: [-a, -E, -b, doctest, doc, sphinx]
language: system
files: ^doc/
types: [file]
pass_filenames: false
......@@ -67,6 +67,7 @@ class WorkerController(object):
# Status code
READY = b'rdy' #: The worker is ready to be used
EXIT = b'ext' #: The worker has exited
RECEIVED = b'rcv' #: The worker has received the task
DONE = b'don' #: The worker as successfully finished its task
JOB_ERROR = b'erj' #: The worker failed to finish its task
ERROR = b'err' #: The worker encountered an error
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment