-
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.
* update docs, dependencies, tests; add util and result class * update actions setup * separate test/doc deps * add tests for uncovered behaviors * ^ py version to 3.11 * edit readme
- Loading branch information
Showing
49 changed files
with
474 additions
and
626 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,29 +1,30 @@ | ||
### Checking code changes | ||
|
||
Any changes to source code must pass lint + unit tests and these are | ||
checked automatically. Here are some helpful commands for checking your changes: | ||
checked automatically. | ||
|
||
In the project root, run: | ||
Run this commands locally, to check your changes. | ||
|
||
```text | ||
make pre-commit # check everything | ||
``` | ||
|
||
```text | ||
make test # check unit tests only (1 | ||
``` | ||
#### Details | ||
|
||
```text | ||
make lint # check code style only (2 | ||
``` | ||
Pre-commit check runs unit tests and lints the source code. | ||
To debug, you can run these steps individually. | ||
|
||
```text | ||
make clean # clean generated files | ||
make test # check unit tests only | ||
``` | ||
|
||
|
||
1) Unit tests are in `tests` directory. You can run unit tests on specific files or the entire source. | ||
Unit tests are in `tests` directory. You can run unit tests on specific files or the entire source. | ||
See [pytest documentation](https://docs.pytest.org/en/stable/contents.html) for more details. | ||
|
||
2) This project uses [flake8](https://flake8.pycqa.org/en/latest/index.html) for linting. | ||
|
||
```text | ||
make lint # check code style only | ||
``` | ||
|
||
This project uses [flake8](https://flake8.pycqa.org/en/latest/index.html) for linting. | ||
You can use it to check specific files or run it against all Python source files by specifying a path. |
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
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
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
Oops, something went wrong.