diff --git a/.github/workflows/check-python.yaml b/.github/workflows/check-python.yaml index 2f903f6..570b4d4 100644 --- a/.github/workflows/check-python.yaml +++ b/.github/workflows/check-python.yaml @@ -44,6 +44,11 @@ jobs: # set git user and email as test invoke git git config --global user.email "actions@github.com" && git config --global user.name "github-actions" + - name: Setup Node.js 20.x + uses: actions/setup-node@v4 + with: + node-version: '20.x' + - name: Run tests shell: bash run: | diff --git a/examples/production_python_react/projects/production_python_react-contracts/.algokit/.copier-answers.yml b/examples/production_python_react/projects/production_python_react-contracts/.algokit/.copier-answers.yml index 196fdd6..7315cb2 100644 --- a/examples/production_python_react/projects/production_python_react-contracts/.algokit/.copier-answers.yml +++ b/examples/production_python_react/projects/production_python_react-contracts/.algokit/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 1.3.3 +_commit: 1.4.1 _src_path: gh:algorandfoundation/algokit-python-template author_email: None author_name: None diff --git a/examples/production_python_react/projects/production_python_react-contracts/README.md b/examples/production_python_react/projects/production_python_react-contracts/README.md index 21a3499..c6b106f 100644 --- a/examples/production_python_react/projects/production_python_react-contracts/README.md +++ b/examples/production_python_react/projects/production_python_react-contracts/README.md @@ -77,15 +77,7 @@ By default the template creates a single `HelloWorld` contract under hello_world By default the template instance does not contain any env files. Using [`algokit project deploy`](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/project/deploy.md) against `localnet` | `testnet` | `mainnet` will use default values for `algod` and `indexer` unless overwritten via `.env` or `.env.{target_network}`. -To generate a new `.env` or `.env.{target_network}` file, run `algokit generate env-file`### Continuous Integration / Continuous Deployment (CI/CD) - -This project uses [GitHub Actions](https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions) to define CI/CD workflows, which are located in the [.github/workflows](`../../.github/workflows`) folder. - -> Please note, if you instantiated the project with --workspace flag in `algokit init` it will automatically attempt to move the contents of the `.github` folder to the root of the workspace. - -### AlgoKit Workspaces - -To define custom `algokit project run` commands refer to [documentation](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/project/run.md). This allows orchestration of commands spanning across multiple projects within an algokit workspace based project (monorepo). +To generate a new `.env` or `.env.{target_network}` file, run `algokit generate env-file` ### Debugging Smart Contracts @@ -94,7 +86,15 @@ Refer to the commented header in the `__main__.py` file in the `smart_contracts` If you have opted in to include VSCode launch configurations in your project, you can also use the `Debug TEAL via AlgoKit AVM Debugger` launch configuration to interactively select an available trace file and launch the debug session for your smart contract. -For information on using and setting up the `AlgoKit AVM Debugger` VSCode extension refer [here](https://github.com/algorandfoundation/algokit-avm-vscode-debugger). To install the extension from the VSCode Marketplace, use the following link: [AlgoKit AVM Debugger extension](https://marketplace.visualstudio.com/items?itemName=algorandfoundation.algokit-avm-vscode-debugger). +For information on using and setting up the `AlgoKit AVM Debugger` VSCode extension refer [here](https://github.com/algorandfoundation/algokit-avm-vscode-debugger). To install the extension from the VSCode Marketplace, use the following link: [AlgoKit AVM Debugger extension](https://marketplace.visualstudio.com/items?itemName=algorandfoundation.algokit-avm-vscode-debugger).### Continuous Integration / Continuous Deployment (CI/CD) + +This project uses [GitHub Actions](https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions) to define CI/CD workflows, which are located in the [.github/workflows](`../../.github/workflows`) folder. + +> Please note, if you instantiated the project with --workspace flag in `algokit init` it will automatically attempt to move the contents of the `.github` folder to the root of the workspace. + +### AlgoKit Workspaces + +To define custom `algokit project run` commands refer to [documentation](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/project/run.md). This allows orchestration of commands spanning across multiple projects within an algokit workspace based project (monorepo). #### Setting up GitHub for CI/CD workflow and TestNet deployment diff --git a/examples/production_python_react/projects/production_python_react-contracts/poetry.toml b/examples/production_python_react/projects/production_python_react-contracts/poetry.toml index ab1033b..5fcef8c 100644 --- a/examples/production_python_react/projects/production_python_react-contracts/poetry.toml +++ b/examples/production_python_react/projects/production_python_react-contracts/poetry.toml @@ -1,2 +1,3 @@ [virtualenvs] in-project = true +prefer-active-python = true diff --git a/examples/production_python_react/projects/production_python_react-contracts/pyproject.toml b/examples/production_python_react/projects/production_python_react-contracts/pyproject.toml index 2cc3238..85ab8e6 100644 --- a/examples/production_python_react/projects/production_python_react-contracts/pyproject.toml +++ b/examples/production_python_react/projects/production_python_react-contracts/pyproject.toml @@ -56,7 +56,7 @@ warn_redundant_casts = true warn_unused_ignores = true warn_return_any = true strict_equality = true -strict_concatenate = true +extra_checks = true disallow_any_unimported = true disallow_any_expr = true disallow_any_decorated = true diff --git a/examples/production_python_react/projects/production_python_react-contracts/smart_contracts/_helpers/build.py b/examples/production_python_react/projects/production_python_react-contracts/smart_contracts/_helpers/build.py index 0afee9c..3461154 100644 --- a/examples/production_python_react/projects/production_python_react-contracts/smart_contracts/_helpers/build.py +++ b/examples/production_python_react/projects/production_python_react-contracts/smart_contracts/_helpers/build.py @@ -31,7 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path: contract_path.absolute(), f"--out-dir={output_dir}", "--output-arc32", - "--debug-level=0", + "--output-source-map", ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, diff --git a/examples/production_python_react/projects/production_python_react-frontend/.algokit/.copier-answers.yml b/examples/production_python_react/projects/production_python_react-frontend/.algokit/.copier-answers.yml index 0fe3e6f..9d5503f 100644 --- a/examples/production_python_react/projects/production_python_react-frontend/.algokit/.copier-answers.yml +++ b/examples/production_python_react/projects/production_python_react-frontend/.algokit/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 1.0.8 +_commit: 1.0.9 _src_path: gh:algorandfoundation/algokit-react-frontend-template author_email: None author_name: None diff --git a/examples/production_python_react/projects/production_python_react-frontend/index.html b/examples/production_python_react/projects/production_python_react-frontend/index.html index a85566a..5a2ef4f 100644 --- a/examples/production_python_react/projects/production_python_react-frontend/index.html +++ b/examples/production_python_react/projects/production_python_react-frontend/index.html @@ -7,9 +7,6 @@
-