Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Add base_project directory and update to Cairo 0.5.0 #26

Merged
merged 5 commits into from
Nov 5, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix formant and linting
  • Loading branch information
martriay committed Nov 4, 2021
commit 4f4f3f2ccbb85fe9b0fa724c7303e1a6c85d9fa5
3 changes: 2 additions & 1 deletion src/nile/base_project/tests/test_contract.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""contract.cairo test file."""
import os
import pytest

from starkware.starknet.testing.starknet import Starknet

# The path to the contract source code.
Expand All @@ -11,6 +11,7 @@
# decorator and the ``async`` keyword are needed.
@pytest.mark.asyncio
async def test_increase_balance():
"""Test increase_balance method."""
# Create a new Starknet class that simulates the StarkNet
# system.
starknet = await Starknet.empty()
Expand Down
5 changes: 3 additions & 2 deletions src/nile/commands/init.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Command to kickstart a Nile project."""
import os
import subprocess
import sys, os
import sys
from distutils.dir_util import copy_tree

from nile.commands.install import install_command
Expand All @@ -25,7 +26,7 @@ def init_command():

# create project directories
print("🗄 Creating project directory tree")
copy_tree(os.path.join(os.path.dirname(__file__), "../base_project"), '.')
copy_tree(os.path.join(os.path.dirname(__file__), "../base_project"), ".")

print("⛵️ Nile project ready! Try running:")
print("")
Expand Down