Skip to content

Commit

Permalink
reformatted files
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Duina committed Dec 19, 2024
1 parent 4f35251 commit 2a5e7a1
Show file tree
Hide file tree
Showing 11 changed files with 4,565 additions and 16 deletions.
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repos:
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
language_version: python3

- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.9.3
hooks:
- id: isort
language_version: python3
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,26 @@ mag, phase, freq = sqil.extract_h5_data(path, ['mag_dB', 'phase', 'ro_freq'])

## Development

Install poetry if you haven't already (`pip install poetry`) and then run the following
1. Install poetry if you haven't already
```bash
$ pip install poetry
```

2. Install the required packages using poetry
```bash
$ poetry install
```

3. Install the pre-commit hooks. This will automatically format your code before committing
```bash
$ poetry run pre-commit install
```

Start the virtual environment
4. Start the virtual environment
```bash
$ poetry shell
```

To exit the virtual environment just use `exit`

#### Test your changes
Expand All @@ -44,13 +53,17 @@ $ pip install -e . --user

**Anaconda**
If you want to install in a specific anaconda environment

- from your poetry shell build the package

```bash
$ poetry run build
```

- open an anaconda shell
- activate the desired environemnt
- pip install the wheel file (.whl) in the dist folder of the sqil-core project

```bash
$ pip install PATH_TO_SQIL_CORE_FOLDER/dist/SQIL_CORE-VERSION.whl
```
Expand Down
15 changes: 9 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ scipy = "^1.14.1"
h5py = "^3.12.1"
matplotlib = "^3.9.3"
seaborn = "^0.13.2"
isort = "5.9.3"


[tool.poetry.group.dev.dependencies]
black = "^24.10.0"
isort = "^5.13.2"
pre-commit = "^4.0.1"
mkdocs = "^1.6.1"
mkdocs-material = "^9.5.48"
Expand Down
Loading

0 comments on commit 2a5e7a1

Please sign in to comment.