Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs/developing.md: Update outdated steps #645

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions docs/contributor/developing.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,30 @@

## Testing

1. Run a Basic Syntax/Lint Check (using flake8) and resolve any issues
PIP modules used in this section such as `ruff` and `pydocstyle` are installed when you run `pip install -e .[dev]`
as described above.

``` cmd
makubacki marked this conversation as resolved.
Show resolved Hide resolved
flake8 .
```
> See [`pyproject.toml`](../../pyproject.toml) for the full list of development dependencies.

1. Run a Basic Syntax/Lint Check (using ruff) and resolve any issues

* Run ruff

``` cmd
ruff check .
```

INFO: Newer editors are very helpful in resolving source formatting errors
(whitespace, indentation, etc). In VSCode open the py file and use
++alt+shift+f++ to auto format.
* Note: Newer editors are very helpful in resolving source formatting errors. For example, in VSCode, you can
open the Python file and use `Alt+Shift+F` to auto format. See the [Ruff VSCode extension](https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff)
for more information.

2. Run a Basic Python docstring Check (using pydocstring) and resolve any issues

``` cmd
pydocstyle edk2toollib
```
* Run pydocstyle
makubacki marked this conversation as resolved.
Show resolved Hide resolved

``` cmd
pydocstyle edk2toollib
```

3. Run the `BasicDevTests.py` script to check file encoding, file naming, etc

Expand Down