-
-
Notifications
You must be signed in to change notification settings - Fork 969
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 #209 from bukosabino/feature/clean-code
Refactor folder structure and update the clean code tools
- Loading branch information
Showing
90 changed files
with
4,303 additions
and
9,519 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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
[run] | ||
branch = True | ||
source = ta | ||
omit = | ||
ta/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
output-format: grouped | ||
|
||
strictness: veryhigh | ||
doc-warnings: true | ||
test-warnings: true | ||
max-line-length: 120 | ||
|
||
mypy: | ||
run: true | ||
options: | ||
ignore-missing-imports: true | ||
|
||
bandit: | ||
run: true | ||
|
||
pep8: | ||
disable: | ||
- E203 | ||
|
||
pep257: | ||
run: false | ||
disable: | ||
- D213 |
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,13 +1,19 @@ | ||
init: | ||
pip install -r requirements.txt | ||
|
||
lint: | ||
pycodestyle --max-line-length=119 ta && isort --check-only --recursive ta | ||
isort: | ||
isort --check-only --recursive ta test | ||
|
||
format: isort | ||
black --target-version py36 ta test | ||
|
||
isort-fix: | ||
isort --recursive ta | ||
isort --recursive ta test | ||
|
||
lint: isort | ||
prospector test/ | ||
prospector ta/ | ||
|
||
test: lint | ||
# python -m unittest discover | ||
coverage run tests.py | ||
coverage run -m unittest discover | ||
coverage report -m |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.