Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check individual requirements #7

Closed
13 tasks
hnformentin opened this issue Jun 10, 2021 · 3 comments
Closed
13 tasks

Check individual requirements #7

hnformentin opened this issue Jun 10, 2021 · 3 comments
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@hnformentin
Copy link
Contributor

hnformentin commented Jun 10, 2021

  • VSC: terminal type "code" and VSC should open (you can use other tools like Pycharm, but demos are planned in VSC)
  • python --version or python3 --version
  • git --version
  • a virtual environment (recommended)
    python -m venv tdd_venv or python3 -m venv tdd_venv
    .\tdd_venv\Scripts\activate (Windows) or source tdd_venv/bin/activate (unix)
    Tip: create a folder for virtual environments outside the project folders
  • check that the formatting tool black is installed black --version
  • ssh-key connected: Check if you have it connected or Connecting to Github with ssh
  • github: fork repository
  • git clone repository locally
    git clone git@github.com:equinor/tdd_workshop.git
  • install development requirements pip install -r dev-requirements.txt
  • install tdd_workshop package pip install -e .
  • VSC configured to tests: Configure test with VSC (TDD_workshop folder, ctrl+shift+P, Python: Configure tests)
  • type pytest in the terminal and you should be able to run and debug some tests simple locally
  • check if debug mode works:
    image
@hnformentin hnformentin added documentation Improvements or additions to documentation question Further information is requested labels Jun 10, 2021
@GodVenn
Copy link

GodVenn commented Oct 29, 2021

In the "git clone"-step, are we supposed to clone our fork, not the original repo?

@hnformentin
Copy link
Contributor Author

hnformentin commented Oct 29, 2021

@GodVenn good question! Ideally you would get to two remotes available: git remote –v

origin git@github.com:hnformentin/tdd_workshop.git (fetch)
origin git@github.com:hnformentin/tdd_workshop.git (push)
upstream       git@github.com:equinor/tdd_workshop.git (fetch)
upstream       git@github.com:equinor/tdd_workshop.git (push)

So you can clone equinor's one, rename it to upstream, and add your fork as a remote named origin.
We can discuss during the workshop pros and cons of having this configuration.

@hnformentin
Copy link
Contributor Author

This issue is outdated since we are using Codespaces from now on for the course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants