-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #257 from upb-lea/nightly
PR for version 3.0.0
- Loading branch information
Showing
312 changed files
with
21,985 additions
and
12,159 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,5 @@ examples/logs/ | |
/my_examples/ | ||
.vscode/settings.json | ||
.vscode/launch.json | ||
plots/ | ||
plots/ | ||
saved_plots/ |
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,41 @@ | ||
# Packaging | ||
Update build tool: `python -m pip install --upgrade build` | ||
|
||
Build: `python -m build` | ||
|
||
# Testing | ||
Run: `pytest --sw` | ||
> --sw, --stepwise Exit on test failure and continue from last failing test next time | ||
Warning as error: | ||
> python -W error -m pytest --sw -v | ||
# Linter and Formater | ||
Ruff: https://docs.astral.sh/ruff/installation/ | ||
|
||
Use `ruff check src/` for linting | ||
or `ruff format src/` for formatting | ||
|
||
|
||
# Install package for local development | ||
Run: `pip install -e .` | ||
> -e, --editable <path/url> Install a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url | ||
Check correct package install directory with python interpreter | ||
Run: `python` | ||
|
||
``` | ||
>>> import gym_electric_motor as gem | ||
>>> gem | ||
<module 'gym_electric_motor' from '/home/***/gym-electric-motor/src/gym_electric_motor/__init__.py'> | ||
``` | ||
|
||
# Sidenotes | ||
``` | ||
python -V | ||
Python 3.10.13 | ||
``` | ||
|
||
|
||
## No poetry | ||
Some complex dependency systems don't work good with poetry (e.g. pytorch) (https://python-poetry.org/) |
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.