-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first pdm config * update ruff settings * add black mirror * add strict config * add concurrency to github workflows * add newer blacken docs * switch workflows to pdm * switch to dynamic versioning * advance contributing explanation
- Loading branch information
1 parent
9d89d2c
commit 93d63d7
Showing
11 changed files
with
2,000 additions
and
2,035 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.pdm-python | ||
__pycache__ | ||
dist/ | ||
corsika_output/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# How to develop | ||
|
||
This project uses [`pdm`](https://pdm.fming.dev/latest/) since version 0.7.0. | ||
There are nice tutorials available on how to use `pdm`. | ||
|
||
## Installing this in dev mode | ||
|
||
1. Install pdm | ||
|
||
```bash | ||
pip install pdm # requires at least python 3.7 | ||
``` | ||
|
||
2. Create a new virtual environment for the project and install all dependencies | ||
|
||
```bash | ||
pdm venv create | ||
pdm install --venv in-project | ||
``` | ||
|
||
## Entering the dev shell | ||
|
||
1. Activate the virtual environment: | ||
|
||
```bash | ||
eval $(pdm venv activate in-project) | ||
``` | ||
|
||
**or alternatively enter a new sub-shell with the right venv** | ||
|
||
```bash | ||
pdm run $SHELL | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.