This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify travis file and lint target (#107)
* Simplify travis file and lint target * Debug crictl * Revert minikube version * Upload codecov for unittests * Revert Kubernetes version
- Loading branch information
1 parent
086d2eb
commit a67aade
Showing
5 changed files
with
49 additions
and
96 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 |
---|---|---|
|
@@ -50,3 +50,4 @@ docs/_build/* | |
cover/* | ||
MANIFEST | ||
kubeconfig | ||
public |
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,8 +1,13 @@ | ||
lint: | ||
pip3 install flake8==3.7.7 pycodestyle==2.5.0 black==19.10b0 | ||
@rm -rf ./public | ||
pip3 install flake8==3.7.7 pycodestyle==2.5.0 black==19.10b0 anybadge==1.1.1 pylint==2.5.3 pylint-exit==1.2.0 | ||
flake8 --max-line-length 120 src tests | ||
pycodestyle --max-line-length=120 --exclude=conf.py ./**/*.py | ||
black --check --diff ./src ./tests | ||
pylint --rcfile=.pylintrc --output-format=text src | tee pylint.txt | ||
mkdir -p public | ||
anybadge --value=$$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' pylint.txt) --file=public/pylint.svg pylint | ||
mv pylint.txt public/pylint.txt | ||
|
||
fmt: | ||
black --diff ./src ./tests |
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