diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..5c3fab3 --- /dev/null +++ b/.flake8 @@ -0,0 +1,10 @@ +[flake8] + +max-line-length = 99 +select = C,E,F,W,B,B950 +ignore = E203, E266, E731, E501, W503, F401, F403, F405 +exclude = + .git + .github + __pycache__ + docs diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..5ac36da --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +repos: +- repo: https://github.com/pre-commit/mirrors-yapf + rev: v0.30.0 + hooks: + - id: yapf +- repo: https://gitlab.com/pycqa/flake8 + rev: 3.8.0 + hooks: + - id: flake8 diff --git a/.style.yapf b/.style.yapf new file mode 100644 index 0000000..a3a5528 --- /dev/null +++ b/.style.yapf @@ -0,0 +1,5 @@ +[style] + +based_on_style = pep8 +column_limit = 99 +split_before_arithmetic_operator=true