-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tooling] Apply Python lint & formatting to entire repo (#272)
* Apply Python lint & formatting to entire repo * Remove null monitorlib test * Remove dependency * Remove reference to removed target
- Loading branch information
1 parent
9753ad1
commit 929197c
Showing
8 changed files
with
6 additions
and
71 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
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,31 +1,17 @@ | ||
.PHONY: lint | ||
lint: | ||
cd uss_qualifier && make lint | ||
cd mock_uss && make lint | ||
cd monitorlib && make lint | ||
cd prober && make lint | ||
|
||
.PHONY: python-lint | ||
python-lint: | ||
cd uss_qualifier && make python-lint | ||
cd mock_uss && make python-lint | ||
cd monitorlib && make python-lint | ||
cd prober && make python-lint | ||
|
||
.PHONY: format | ||
format: | ||
cd uss_qualifier && make format | ||
cd mock_uss && make format | ||
cd monitorlib && make format | ||
cd prober && make format | ||
|
||
.PHONY: build | ||
build: | ||
./build.sh | ||
|
||
.PHONY: test | ||
test: | ||
cd monitorlib && make test | ||
cd mock_uss && make test | ||
cd uss_qualifier && make test | ||
cd prober && make test |
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,15 +1,3 @@ | ||
.PHONY: lint | ||
lint: python-lint | ||
echo "mock_uss lint complete" | ||
|
||
.PHONY: python-lint | ||
python-lint: | ||
docker run --rm -v "$(CURDIR):/code" -w /code pyfound/black:22.10.0 black --check . || (echo "Linter didn't succeed. You can use the following command to fix python linter issues: make format" && exit 1) | ||
|
||
.PHONY: format | ||
format: | ||
docker run --rm -v "$(CURDIR):/code" -w /code pyfound/black:22.10.0 black . | ||
|
||
.PHONY: test | ||
test: lint | ||
test: | ||
./run_locally_test_geoawareness.sh |
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 |
---|---|---|
@@ -1,14 +1,3 @@ | ||
.PHONY: lint | ||
lint: python-lint | ||
|
||
.PHONY: python-lint | ||
python-lint: | ||
docker run --rm -v "$(CURDIR):/code" -w /code pyfound/black:22.10.0 black --check . || (echo "Linter didn't succeed. You can use the following command to fix python linter issues: make format" && exit 1) | ||
|
||
.PHONY: format | ||
format: | ||
docker run --rm -v "$(CURDIR):/code" -w /code pyfound/black:22.10.0 black . | ||
|
||
.PHONY: test | ||
test: | ||
./scripts/test_docker_fully_mocked.sh |
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,9 +1,7 @@ | ||
.PHONY: format | ||
format: | ||
docker run --rm -v "$(CURDIR):/code" -w /code pyfound/black:22.10.0 black . | ||
./manage_type_schemas.sh --generate | ||
|
||
.PHONY: lint | ||
lint: | ||
docker run --rm -v "$(CURDIR):/code" -w /code pyfound/black:22.10.0 black --check . || (echo "Linter didn't succeed. You can use the following command to fix python linter issues: make format" && exit 1) | ||
./manage_type_schemas.sh --check |