Skip to content

Commit

Permalink
Merge pull request #40 from noisebridge/update-readme-run
Browse files Browse the repository at this point in the history
Update README with running instructions
  • Loading branch information
audiodude authored Nov 5, 2024
2 parents 4e49724 + 697befb commit 1733fcb
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ To install the project dependencies, first install pipenv globally with `pip ins

To run code in the project, prefix your command with `pipenv run`, a la `pipenv run python -m mediabridge.main`.

## Running main

The "main.py" script is part of the `mediabridge` module. Additionally, running it requires `pipenv run` as mentioned above. So the full command to run the main script (or any other script in the `mediabridge` module) is:

```
pipenv run python -m mediabridge.main
```

This should be run from the root of the project directory.

### Running from VSCode

To fix import errors and other Intellisense features, make sure you've let VSCode know about your pipenv environment. To do that:

1. Open the VSCode command palette (Control/Command+SHIFT+P)
2. Search for and select the "Python: Select Interpreter" command
3. Choose the option that starts with `MediaBridge`

## Testing

To run unit tests,
Expand All @@ -29,4 +47,4 @@ We use [ruff](https://docs.astral.sh/ruff/) for code formatting, linting, and im

The repo comes with a `.vscode` directory that contains a recommended ruff extension, as well as settings to set ruff as your Python formatter and to format code and sort imports on save. If you're not using VSCode, you can run `ruff format` from the project root directory to format all Python code.

There is a GitHub actions "check" for code formatting, which will fail if you have unformatted code in your PR.
There is a GitHub actions "check" for code formatting, which will fail if you have unformatted code in your PR.

0 comments on commit 1733fcb

Please sign in to comment.