This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add @Injectable & local type hint support
- Renaming @service to @Injectable - Adding `factory_method` argument for @Injectable - Use of locals for type hint resolution in @Inject, @wire, @Injectable
- Loading branch information
Showing
79 changed files
with
1,923 additions
and
881 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.cache | ||
.python-version | ||
.tox | ||
.tox-venv | ||
.eggs | ||
*.pyc | ||
*.egg-info | ||
|
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
project_dir="$(dirname "$(dirname "$(readlink -f "$0")")")" | ||
cd "$project_dir" | ||
|
||
if [[ "${INSIDE_DOCKER:-}" == "yes" ]]; then | ||
venv_dir="$project_dir/.tox-venv" | ||
if [[ ! -d "$venv_dir" ]]; then | ||
python3.10 -m venv "$venv_dir" | ||
source "$venv_dir/bin/activate" | ||
pip install -r "$project_dir/requirements/dev.txt" | ||
else | ||
source "$venv_dir/bin/activate" | ||
fi | ||
tox "$@" | ||
else | ||
docker run \ | ||
--user "$(id -u):$(id -g)" \ | ||
-v "$project_dir:/antidote" \ | ||
-w /antidote \ | ||
-it \ | ||
-e INSIDE_DOCKER=yes \ | ||
quay.io/pypa/manylinux2014_x86_64:latest \ | ||
bash -c "/antidote/bin/tox.sh $*" | ||
fi |
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.