-
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.
Merge pull request #63 from joecummings/refactor-logging
Update Makefile w/ new style checks; remove unnecessary logging info
- Loading branch information
Showing
20 changed files
with
238 additions
and
324 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,22 @@ | ||
[flake8] | ||
exclude = | ||
# __init__.py file imports raise warnings about unused imports | ||
__init__.py | ||
ignore = | ||
# False positives on imports used only in generic type annotations | ||
F401 | ||
# Black recommends disabling | ||
E203 | ||
W503 | ||
# the next two are hanging indent errors. We exclude these because pylint | ||
# already catches them and in a few places we need to manually suppress | ||
# them to avoid fighting with PyCharm. We'd rather just add one | ||
# suppression comment. | ||
E128 | ||
E131 | ||
# isort handles this now | ||
E402 | ||
# already covered by PyLint and gives false positives for typing.overload | ||
F811 | ||
# Let Black handle line length | ||
max-line-length = 300 |
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ __pycache__/ | |
.pytest_cache/ | ||
gitmine.key | ||
build/ | ||
dist/ | ||
dist/ | ||
.coverage |
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 was deleted.
Oops, something went wrong.
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,41 @@ | ||
default: | ||
@echo "an explicit target is required" | ||
|
||
SHELL=/usr/bin/env bash | ||
|
||
PYTHON_FILES=gitmine/*.py gitmine/commands/*.py | ||
|
||
install: | ||
pip install -r requirements.txt | ||
|
||
lint: | ||
pylint $(PYTHON_FILES) | ||
|
||
docstyle: | ||
pydocstyle --convention=google $(PYTHON_FILES) | ||
|
||
mypy: | ||
mypy $(PYTHON_FILES) | ||
|
||
flake8: | ||
flake8 $(PYTHON_FILES) | ||
|
||
SORT=LC_ALL=C sort --key=1,1 --key=3V --field-separator="=" | ||
|
||
reqs-fix: | ||
$(SORT) --output=requirements.txt requirements.txt | ||
$(SORT) --output=requirements-dev.txt requirements-dev.txt | ||
|
||
reqs-check: | ||
$(SORT) --check requirements.txt | ||
$(SORT) --check requirements-dev.txt | ||
|
||
black-fix: | ||
isort $(PYTHON_FILES) | ||
black --config pyproject.toml $(PYTHON_FILES) | ||
|
||
black-check: | ||
isort --check $(PYTHON_FILES) | ||
black --config pyproject.toml --check $(PYTHON_FILES) | ||
|
||
check: reqs-check black-check flake8 mypy lint |
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
Oops, something went wrong.