Skip to content

Commit

Permalink
chore+style: tune linters config.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfermigier committed Sep 7, 2017
1 parent 44b6b4b commit 135dce0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions abilian/services/indexing/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

#: A Whoosh analyzer that splits on word boundaries and folds accents and case.
accent_folder = (
RegexTokenizer(r'\w+') # defaults doesn't split on '.'
| LowercaseFilter() | CharsetFilter(accent_map)
RegexTokenizer(r'\w+') | # defaults doesn't split on '.'
LowercaseFilter() | CharsetFilter(accent_map)
)

#: Analyzer for edge-ngrams, from 2 to 6 characters long
Expand Down
1 change: 0 additions & 1 deletion etc/dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pytest-cov
# Static code analysis
flake8
flake8-tidy-imports
flake8-truveris
flake8-mutable
pylint
pre-commit
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"prettier": "^1.6.1",
"stylelint": "^8.1.0",
"stylelint": "^8.1.1",
"stylelint-config-standard": "^17.0.0"
},
"stylelint": {
Expand Down
7 changes: 5 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ python_files = test*.py
norecursedirs = .* env* _build *.egg *.egg-info tools deploy etc docs

[flake8]
# TODO: fix and unskip T568 & T812
ignore = F401,E501,W503,T568,E711,E712,T812
# F401: unused import (actually used by mypy)
# E501: line too long (needs some love)
# E711,E712: things that are actually correct for SQLAlchemy
# W503: should be files as autopep8 bugs :(
ignore = F401,E501,E711,E712,W503
max-line-length = 100
exclude=.tox,docs
; flake8-tidy-imports
Expand Down

0 comments on commit 135dce0

Please sign in to comment.