-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
5,150 additions
and
3,710 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Recommended flake8 settings while editing crunch-cube, we use Black for the final linting/say in how code is formatted | ||
# | ||
# pip install flake8 flake8-bugbear | ||
# | ||
# This will warn/error on things that black does not fix, on purpose. | ||
|
||
[flake8] | ||
# max line length is set to 88 in black, here it is set to 80 and we enable bugbear's B950 warning, which is: | ||
# | ||
# B950: Line too long. This is a pragmatic equivalent of pycodestyle’s E501: it | ||
# considers “max-line-length” but only triggers when the value has been | ||
# exceeded by more than 10%. You will no longer be forced to reformat code due | ||
# to the closing parenthesis being one character too far to satisfy the linter. | ||
# At the same time, if you do significantly violate the line length, you will | ||
# receive a message that states what the actual limit is. This is inspired by | ||
# Raymond Hettinger’s “Beyond PEP 8” talk and highway patrol not stopping you | ||
# if you drive < 5mph too fast. Disable E501 to avoid duplicate warnings. | ||
max-line-length = 80 | ||
max-complexity = 12 | ||
select = E,F,W,C,B,B9 | ||
ignore = | ||
# E123 closing bracket does not match indentation of opening bracket’s line | ||
E123 | ||
# E203 whitespace before ‘:’ (Not PEP8 compliant, Python Black) | ||
E203 | ||
# E501 line too long (82 > 79 characters) (replaced by B950 from flake8-bugbear, https://github.com/PyCQA/flake8-bugbear) | ||
E501 | ||
# W503 line break before binary operator (Not PEP8 compliant, Python Black) | ||
W503 |
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,8 +1,14 @@ | ||
repos: | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v1.4.0-1 | ||
hooks: | ||
- id: flake8 | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: autopep8-wrapper | ||
|
||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
language_version: python3.6 |
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,6 +1,7 @@ | ||
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages | ||
try: # pragma: no cover | ||
__import__('pkg_resources').declare_namespace(__name__) | ||
__import__("pkg_resources").declare_namespace(__name__) | ||
except ImportError: # pragma: no cover | ||
from pkgutil import extend_path | ||
|
||
__path__ = extend_path(__path__, __name__) |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
"""Initialization module for crunch-cube package.""" | ||
|
||
__version__ = '1.8.6' | ||
__version__ = "1.8.6" |
Oops, something went wrong.