-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial version of docs + HQAR -> QART rename (#5)
* Add docs stub * Add language server info to mkdocs.yml * Add basic docs structure * Add basic program/circuit example * Add short desription of QART format * Add API reference * Update mkdocs.yml * Remove copyright notices * Rename hqar package to qart * Remove copyright checks * Remove remaining copyright notices * Reorganize chapter on QART Python library * Add content to index.md * Add required plugins * Reorganize docs for python library * Remove whitespace * Update example yaml and svg (my_algorithm -> my_program) * Add basic development guide * Update links in index.md * Add docs-related dependencies * Add more descriptions to format chapter * Add job for building docs * Attempt running mkdocs through poetry run * Add missing dependency on mkdocstrings * Apply changes suggested in the review * Add missing images
- Loading branch information
1 parent
057e39b
commit 3240e66
Showing
34 changed files
with
1,707 additions
and
159 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
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 |
---|---|---|
|
@@ -20,4 +20,3 @@ repos: | |
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [flake8-copyright] |
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,37 @@ | ||
# Development guide | ||
|
||
## Setting up development environment | ||
|
||
QART uses [Poetry](https://python-poetry.org/) for managing dependencies. | ||
Therefore, we recommend you use Poetry to setup your environment. However, | ||
if you insist on not using Poetry, the more traditional way of using | ||
editable install with `pip` is still avaiable. | ||
|
||
### Using editable install with Poetry | ||
|
||
To setup your development environment install poetry (if you don't have it yet): | ||
|
||
```bash | ||
pip install poetry | ||
``` | ||
|
||
And then install the project and its dependencies: | ||
|
||
```bash | ||
poetry install | ||
``` | ||
|
||
### Using editable install with pip | ||
|
||
You can also develop Poetry using `pip`: | ||
|
||
```bash | ||
pip install -e . | ||
``` | ||
|
||
!!! Warning | ||
|
||
If you are planning to add/modify dependencies of QART, we | ||
highly recommend you use Poetry instead of pip editable install. | ||
Without Poetry, you will need to edit dependencies manually, | ||
which is very error-prone. |
Oops, something went wrong.