-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* COVERAGE: Fix some coverage regressions from pylint PR * ISORT: Run isort on source and tests * BLACK: Run black on source and tests * BLACK: Run black on source and tests * FORMATTING: Add tests and verification for autoformatting * FORMATTING: Add black/isort to root to simplify * Add preliminary contributor guide instructions Closes #59
- Loading branch information
1 parent
e5cedce
commit 992772b
Showing
37 changed files
with
4,154 additions
and
2,279 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Python Tensor Toolbox Contributor Guide | ||
|
||
## Issues | ||
If you are looking to get started or want to propose a change please start by checking | ||
current or filing a new [issue](https://github.com/sandialabs/pyttb/issues). | ||
|
||
## Working on PYTTB locally | ||
1. clone your fork and enter the directory | ||
``` | ||
git clone git@github.com:<your username>/pyttb.git | ||
cd pyttb | ||
``` | ||
1. setup your desired python environment as appropriate | ||
|
||
1. install dependencies | ||
``` | ||
We use a mix of pyproject.toml, and setup.py currently. We are | ||
still iterating on simplifying the setup procedure. | ||
``` | ||
|
||
1. Checkout a branch and make your changes | ||
``` | ||
git checkout -b my-new-feature-branch | ||
``` | ||
1. Formatters and linting | ||
1. Run autoformatters from root of project (they will change your code) | ||
```commandline | ||
isort . | ||
black . | ||
``` | ||
1. Pylint and mypy coverage is work in progress (these only raise errors) | ||
```commandline | ||
mypy pyttb/ | ||
pylint pyttb/file_name.py //Today only tensor is compliant | ||
``` | ||
|
||
1. Run tests (at desired fidelity) | ||
1. Just doctests (enabled by default) | ||
```commandline | ||
pytest | ||
``` | ||
1. Functional tests | ||
```commandline | ||
pytest . | ||
``` | ||
1. All tests (linting and formatting checks) | ||
```commandline | ||
pytest . --packaging | ||
``` | ||
1. With coverage | ||
```commandline | ||
pytest . --cov=pyttb --cov-report=term-missing | ||
``` |
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.