-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
109 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# mkdocs requirements | ||
mkdocs-material==9.2.3 | ||
mkdocs-material==9.4.8 | ||
mkdocstrings[python]==0.22.0 | ||
mkdocs-gen-files==0.5.0 | ||
mkdocs-literate-nav==0.6.0 | ||
mkdocs-section-index==0.3.5 | ||
mkdocs-section-index==0.3.8 |
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 |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# Building and Testing | ||
|
||
Before starting building and testing package set up | ||
[Developer's Environment](environment.md) first. | ||
From here and below we consider the shell's current | ||
directory matches the project's root directory. | ||
|
||
## Building Package | ||
|
||
To test the package build run: | ||
|
||
``` | ||
$ python -m build --sdist --wheel | ||
``` | ||
|
||
Compiled packages will be available in the `dist/` directory. | ||
|
||
## Running tests | ||
|
||
To run the test suit: | ||
|
||
``` | ||
$ pytest -vv | ||
``` | ||
|
||
## Running Lints | ||
|
||
All lints are checked as part of GitHub Actions Workflow. You may run lints | ||
manually before committing to the project. | ||
|
||
### Check Formatting | ||
|
||
[Python Code Formatting](codequality.md#python-code-formatting) is the mandatory | ||
requirement in our [Code Quality](codequality.md) standards. To check code | ||
formatting run: | ||
|
||
``` | ||
$ black --check examples/ src/ tests/ | ||
``` | ||
|
||
To fix formatting errors run: | ||
``` | ||
$ black examples/ src/ tests/ | ||
``` | ||
|
||
We recommend setting python code formatting on file saving | ||
(Done in [VS Code Dev Container](environment.md#visual-studio-code-dev-container) | ||
out of the box). | ||
|
||
### Python Code Lints | ||
|
||
[Python Code Linting](codequality.md#python-code-linting) is the mandatory | ||
requirement in our [Code Quality](codequality.md) standards. To check code | ||
for linting errors run: | ||
|
||
``` | ||
$ ruff examples/ src/ tests/ | ||
``` | ||
|
||
### Python Code Static Checks | ||
|
||
[Python Code Static Checks](codequality.md#python-code-static-checks) is the mandatory | ||
requirement in our [Code Quality](codequality.md) standards. To check code | ||
for typing errors run: | ||
|
||
``` | ||
$ mypy --strict src/ | ||
``` | ||
|
||
## Python Test Code Coverage Check | ||
|
||
To evaluate code coverage run tests: | ||
|
||
``` | ||
$ coverage run -m pytest -vv | ||
``` | ||
|
||
To report the coverage after the test run: | ||
|
||
``` | ||
$ coverage report | ||
``` | ||
|
||
To show line-by-line coverage: | ||
|
||
``` | ||
$ coverage html | ||
``` | ||
|
||
Then open `dist/coverage/index.html` file in your browser. | ||
|
||
## Building Documentation | ||
|
||
To rebuild and check documentation run | ||
|
||
``` | ||
$ mkdocs serve | ||
``` | ||
|
||
We recommend using [Grammarly][Grammarly] service to check | ||
documentation for common errors. | ||
|
||
[Grammarly]: https://grammarly.com/ |
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