forked from coddingtonbear/python-myfitnesspal
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
14eb894
commit 026ebe1
Showing
6 changed files
with
79 additions
and
2 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 |
---|---|---|
|
@@ -12,3 +12,6 @@ include/* | |
share/* | ||
.tox/* | ||
pip-selfcheck.json | ||
env/* | ||
.vscode/* | ||
.mypy_cache/* |
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,10 @@ | ||
[settings] | ||
multi_line_output=3 | ||
include_trailing_comma=True | ||
force_grid_wrap=0 | ||
use_parentheses=True | ||
line_length=88 | ||
import_heading_internal=Internal packages | ||
known_first_party=myfitnesspal | ||
default_section=THIRDPARTY | ||
sections=FUTURE,STDLIB,THIRDPARTY,INTERNAL,FIRSTPARTY,LOCALFOLDER |
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,38 @@ | ||
default_language_version: | ||
python: python3 | ||
repos: | ||
# Sort imports prior to black reformatting, to | ||
# ensure black always takes prescedence | ||
- repo: https://github.com/timothycrosley/isort | ||
rev: 4.3.21 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/ambv/black | ||
rev: 19.10b0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.4.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
files: '.*\.py$' | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-bugbear==19.3.0 | ||
- flake8-printf-formatting==1.1.0 | ||
- flake8-pytest==1.3 | ||
- flake8-pytest-style==0.1.3 | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v1.25.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: ["--py37-plus"] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.782 | ||
hooks: | ||
- id: mypy | ||
args: | ||
- --pretty | ||
- --show-error-codes | ||
- --show-error-context | ||
- --ignore-missing-imports |
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,10 @@ | ||
from typing import Callable, List | ||
|
||
from typing_extensions import TypedDict | ||
|
||
|
||
class CommandDefinition(TypedDict): | ||
function: Callable | ||
description: str | ||
is_alias: bool | ||
aliases: List[str] |
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,14 @@ | ||
[flake8] | ||
# https://github.com/ambv/black#line-length | ||
max-line-length = 88 | ||
ignore = | ||
E203, # E203: whitespace before ':' (defer to black) | ||
E231, # E231: missing whitespace after ',' (defer to black) | ||
E501, # E501: line length (defer to black) | ||
W503, # W503: break before binary operators (defer to black) | ||
A003, # A003: [builtins] allow class attributes to be named after builtins (e.g., `id`) | ||
|
||
[pep8] | ||
max-line-length = 88 | ||
ignore = | ||
E701, # E701: multiple statements on one line (flags py3 inline type hints) |