-
Notifications
You must be signed in to change notification settings - Fork 66
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 #2332 from fetchai/develop
Release v0.11.0
- Loading branch information
Showing
730 changed files
with
28,004 additions
and
8,831 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,11 @@ | ||
version: 2 | ||
updates: | ||
|
||
# Maintain dependencies for Pip | ||
- package-ecosystem: "pip" | ||
directory: "." | ||
schedule: | ||
interval: "weekly" | ||
target-branch: "develop" | ||
labels: | ||
- "dependencies" |
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
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
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 |
---|---|---|
|
@@ -40,24 +40,30 @@ clean-test: | |
|
||
.PHONY: lint | ||
lint: | ||
black aea benchmark examples packages scripts tests | ||
isort aea benchmark examples packages scripts tests | ||
flake8 aea benchmark examples packages scripts tests | ||
black aea benchmark examples packages plugins scripts tests | ||
isort aea benchmark examples packages plugins scripts tests | ||
flake8 aea benchmark examples packages plugins scripts tests | ||
vulture aea scripts/whitelist.py --exclude "*_pb2.py" | ||
|
||
.PHONY: pylint | ||
pylint: | ||
pylint -j4 aea benchmark packages scripts examples/* | ||
pylint -j4 aea benchmark packages scripts plugins/aea-ledger-fetchai/aea_ledger_fetchai plugins/aea-ledger-ethereum/aea_ledger_ethereum plugins/aea-ledger-cosmos/aea_ledger_cosmos examples/* | ||
|
||
.PHONY: security | ||
security: | ||
bandit -r aea benchmark examples packages | ||
bandit -s B101 -r tests scripts | ||
bandit -r aea benchmark examples packages \ | ||
plugins/aea-ledger-fetchai/aea_ledger_fetchai \ | ||
plugins/aea-ledger-ethereum/aea_ledger_ethereum \ | ||
plugins/aea-ledger-cosmos/aea_ledger_cosmos | ||
bandit -s B101 -r tests scripts \ | ||
plugins/aea-ledger-fetchai/tests \ | ||
plugins/aea-ledger-ethereum/tests \ | ||
plugins/aea-ledger-cosmos/tests | ||
safety check -i 37524 -i 38038 -i 37776 -i 38039 | ||
|
||
.PHONY: static | ||
static: | ||
mypy aea benchmark examples packages scripts --disallow-untyped-defs | ||
mypy aea benchmark examples packages plugins/aea-ledger-fetchai/aea_ledger_fetchai plugins/aea-ledger-ethereum/aea_ledger_ethereum plugins/aea-ledger-cosmos/aea_ledger_cosmos scripts --disallow-untyped-defs | ||
mypy tests | ||
|
||
.PHONY: package_checks | ||
|
@@ -75,6 +81,9 @@ common_checks: security misc_checks lint static docs | |
|
||
.PHONY: test | ||
test: | ||
pytest -rfE plugins/aea-ledger-fetchai/tests --cov=aea_ledger_fetchai --cov-report=term --cov-report=term-missing --cov-config=.coveragerc | ||
pytest -rfE plugins/aea-ledger-ethereum/tests --cov=aea_ledger_ethereum --cov-report=term --cov-report=term-missing --cov-config=.coveragerc | ||
pytest -rfE plugins/aea-ledger-cosmos/tests --cov=aea_ledger_cosmos --cov-report=term --cov-report=term-missing --cov-config=.coveragerc | ||
pytest -rfE --doctest-modules aea packages/fetchai/protocols packages/fetchai/connections packages/fetchai/skills/confirmation_aw1 packages/fetchai/skills/confirmation_aw2 packages/fetchai/skills/confirmation_aw3 packages/fetchai/skills/generic_buyer packages/fetchai/skills/generic_seller packages/fetchai/skills/tac_control packages/fetchai/skills/tac_control_contract packages/fetchai/skills/tac_participation packages/fetchai/skills/tac_negotiation packages/fetchai/skills/simple_buyer packages/fetchai/skills/simple_data_request packages/fetchai/skills/simple_seller packages/fetchai/skills/simple_service_registration packages/fetchai/skills/simple_service_search packages/fetchai/skills/coin_price packages/fetchai/skills/fetch_beacon packages/fetchai/skills/simple_oracle packages/fetchai/skills/simple_oracle_client tests/ --cov-report=html --cov-report=xml --cov-report=term-missing --cov-report=term --cov=aea --cov=packages/fetchai/protocols --cov=packages/fetchai/connections --cov=packages/fetchai/skills/confirmation_aw1 --cov=packages/fetchai/skills/confirmation_aw2 --cov=packages/fetchai/skills/confirmation_aw3 --cov=packages/fetchai/skills/generic_buyer --cov=packages/fetchai/skills/generic_seller --cov=packages/fetchai/skills/tac_control --cov=packages/fetchai/skills/tac_control_contract --cov=packages/fetchai/skills/tac_participation --cov=packages/fetchai/skills/tac_negotiation --cov=packages/fetchai/skills/simple_buyer --cov=packages/fetchai/skills/simple_data_request --cov=packages/fetchai/skills/simple_seller --cov=packages/fetchai/skills/simple_service_registration --cov=packages/fetchai/skills/simple_service_search --cov=packages/fetchai/skills/coin_price --cov=packages/fetchai/skills/fetch_beacon --cov=packages/fetchai/skills/simple_oracle --cov=packages/fetchai/skills/simple_oracle_client --cov-config=.coveragerc | ||
find . -name ".coverage*" -not -name ".coveragerc" -exec rm -fr "{}" \; | ||
|
||
|
@@ -106,13 +115,13 @@ h := $(shell git rev-parse --abbrev-ref HEAD) | |
|
||
.PHONY: release_check | ||
release: | ||
if [ "$h" = "master" ];\ | ||
if [ "$h" = "main" ];\ | ||
then\ | ||
echo "Please ensure everything is merged into master & tagged there";\ | ||
echo "Please ensure everything is merged into main & tagged there";\ | ||
pip install twine;\ | ||
twine upload dist/*;\ | ||
else\ | ||
echo "Please change to master branch for release.";\ | ||
echo "Please change to main branch for release.";\ | ||
fi | ||
|
||
v := $(shell pip -V | grep virtualenvs) | ||
|
@@ -123,9 +132,12 @@ new_env: clean | |
then\ | ||
pipenv --rm;\ | ||
pipenv --python 3.7;\ | ||
pipenv install --dev --skip-lock;\ | ||
pipenv run pip uninstall typing -y;\ | ||
pipenv run pip install -e .[all];\ | ||
pipenv install --dev --skip-lock;\ | ||
pipenv run pip uninstall typing -y;\ | ||
pipenv run pip install -e .[all];\ | ||
pipenv run pip install --no-deps file:plugins/aea-ledger-ethereum;\ | ||
pipenv run pip install --no-deps file:plugins/aea-ledger-cosmos;\ | ||
pipenv run pip install --no-deps file:plugins/aea-ledger-fetchai;\ | ||
echo "Enter virtual environment with all development dependencies now: 'pipenv shell'.";\ | ||
else\ | ||
echo "In a virtual environment! Exit first: 'exit'.";\ | ||
|
@@ -137,4 +149,4 @@ protolint: | |
protolint_install_win: | ||
powershell -command '$$env:GO111MODULE="on"; go get -u -v github.com/yoheimuta/protolint/cmd/[email protected]' | ||
protolint_win: | ||
protolint lint -config_path=./protolint.yaml -fix ./aea/mail ./packages/fetchai/protocols | ||
protolint lint -config_path=./protolint.yaml -fix ./aea/mail ./packages/fetchai/protocols |
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
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.