Skip to content

Commit

Permalink
Fix README file (#247)
Browse files Browse the repository at this point in the history
* Patch README file

Remove incorrect line about updating conda environment

* Fix broken link

Mambda installation page was not found. They changed the docs.

* Fix Flake error C420: unnecessary dict comprehension
  • Loading branch information
edoardob90 authored Oct 22, 2024
1 parent b2eca0f commit 1ce10a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You have two ways in which you can run the tutorial **locally**.

#### 0. Prerequisites

To run the tutorial locally, you should first install [conda](https://docs.conda.io/en/latest/miniconda.html) (or [mamba](https://mamba.readthedocs.io/en/latest/installation.html)).
To run the tutorial locally, you should first install [conda](https://docs.conda.io/en/latest/miniconda.html) (or [mamba](https://mamba.readthedocs.io/en/latest/installation/mamba-installation.html)).

It is also suggested that you have a recent version of `git`. Check out [how to install `git`](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) on your operating system.

Expand Down Expand Up @@ -67,12 +67,6 @@ Finally, launch JupyterLab with
jupyter lab
```

To update the existing environment, run

```console
conda env update -f environment.yml
```

### 2. With Docker

> **Note**
Expand Down
2 changes: 1 addition & 1 deletion tutorial/tests/test_control_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def test_find_triplet(nums: List[int], function_to_test) -> None:

def reference_cats_with_hats() -> int:
"""Solution with dictionaries"""
cats = {i: False for i in range(1, 101)}
cats = dict.fromkeys(range(1, 101), False)

for loop in range(1, 101):
for cat, has_hat in cats.items():
Expand Down

0 comments on commit 1ce10a4

Please sign in to comment.