From 884840bbf5490883436a43be0bdf6ea4b6041548 Mon Sep 17 00:00:00 2001 From: Sargun Vohra Date: Sat, 8 Sep 2018 12:39:24 -0700 Subject: [PATCH] Comment on some linter configs --- .stickler.yml | 6 +++++- tox.ini | 14 +++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.stickler.yml b/.stickler.yml index 124689791..acbe742ff 100644 --- a/.stickler.yml +++ b/.stickler.yml @@ -1,13 +1,17 @@ linters: + black: config: ./pyproject.toml fixer: true + flake8: python: 3 fixer: true - # copied from tox.ini + + # Make sure to copy changes to tox.ini too max-complexity: 15 ignore: W,E exclude: .venv, .git, __pycache__, dist + fixers: enable: true diff --git a/tox.ini b/tox.ini index 816f72b28..052b132a0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,5 @@ -[flake8] -max-complexity = 15 -ignore = W,E # use black for formatting -exclude = .venv, .git, __pycache__, dist +# Not actually using tox, just have tox.ini to configure some tools that don't +# support pyproject.toml yet [isort] skip = .venv, .git, __pycache__, dist @@ -9,4 +7,10 @@ multi_line_output = 3 include_trailing_comma = True force_grid_wrap = 0 combine_as_imports = True -line_length = 88 \ No newline at end of file +line_length = 88 + +# Make sure to copy changes to .stickler.yml too +[flake8] +max-complexity = 15 +ignore = W,E # use black for formatting +exclude = .venv, .git, __pycache__, dist \ No newline at end of file