Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment on some linter configs #7

Merged
merged 1 commit into from
Sep 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .stickler.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 9 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
[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
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
combine_as_imports = True
line_length = 88
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