-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add linter hooks and update the requirements as well as the readme. (#62
) * Add linter hooks and update the requirements as well as the readme. * Fix Circle CI. * Fix the ci build. * Fix the ci build. * Format and fix the styles. (#63) * Fix the wildcard linting error. * Fix the config of flake8 so it won't check the site-packages in venv dir.
- Loading branch information
Showing
32 changed files
with
2,320 additions
and
1,000 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# We ignore the following PEP-8 styles: | ||
|
||
# E203 whitespace before ‘:’ | ||
# E266 too many leading ‘#’ for block comment | ||
# E501 line too long (82 > 79 characters) (^) | ||
# W503 line break occurred before a binary operator | ||
# F841 local variable is assigned to but never used | ||
# W605 invalid escape sequence (causes false alarms around regex) | ||
|
||
# Note: (^) These checks can be disabled at the | ||
# line level using the # noqa special comment. | ||
# This possibility should be reserved for special cases. | ||
|
||
[flake8] | ||
ignore = E203, E266, E501, W503, F841, W605 | ||
max-complexity = 18 | ||
select = B,C,E,F,W,T4,B9 | ||
exclude = | ||
# No need to traverse the virtualenv directory, which'll be created by Circle CI | ||
venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: 19.3b0 | ||
hooks: | ||
- id: black | ||
language_version: python3.6 | ||
# Using args here is not recommended by Black: | ||
# https://black.readthedocs.io/en/stable/version_control_integration.html | ||
# But since we only have one argument here, and | ||
# we don't force developers to use editor plugins, | ||
# putting the args here seems to be fine | ||
args: [./, --skip-string-normalization] | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.7.7 | ||
hooks: | ||
- id: flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flake8: noqa | ||
from . import bam | ||
from . import encodings | ||
from . import barcode | ||
|
Oops, something went wrong.