-
-
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
6 changed files
with
103 additions
and
166 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 was deleted.
Oops, something went wrong.
File renamed without changes.
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,87 @@ | ||
# Development | ||
|
||
Instructions for developers. | ||
|
||
## On macOS | ||
|
||
Install | ||
|
||
* [Homebrew](https://brew.sh/) | ||
|
||
* [pyenv](https://github.com/pyenv/pyenv) and [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv) | ||
|
||
```sh | ||
brew install pyenv pyenv-virtualenv | ||
``` | ||
|
||
* [pipx](https://github.com/pypa/pipx) | ||
|
||
```sh | ||
brew install pipx | ||
``` | ||
|
||
* [Poetry](https://github.com/python-poetry/poetry) | ||
|
||
```sh | ||
pipx install poetry | ||
``` | ||
|
||
* [ruff](https://github.com/astral-sh/ruff) | ||
|
||
```sh | ||
brew install ruff | ||
``` | ||
|
||
Similar to this [setup](https://github.com/Hasenpfote/python-poetry-example?tab=readme-ov-file), but no tox and uses ruff. | ||
|
||
## Development | ||
|
||
Get repo: | ||
|
||
```sh | ||
git clone | ||
``` | ||
|
||
Install development environment: | ||
|
||
```sh | ||
poetry install | ||
``` | ||
|
||
Launch virtualenv: | ||
|
||
```sh | ||
poetry shell | ||
``` | ||
|
||
Code formatting: | ||
|
||
```sh | ||
poetry run ruff format | ||
``` | ||
|
||
Linter: | ||
|
||
```sh | ||
poetry run ruff check | ||
``` | ||
|
||
Test with coverage: | ||
|
||
```sh | ||
pytest --cov --cov-report term | ||
``` | ||
|
||
## Publish checklist | ||
|
||
Ref: https://www.digitalocean.com/community/tutorials/how-to-publish-python-packages-to-pypi-using-poetry-on-ubuntu-22-04 | ||
|
||
* [ ] Bump version | ||
* [ ] `pyproject.toml` | ||
* [ ] `src/beancount_multitool/\_\_version\_\_.py` | ||
* [ ] Update [changelog](changelog.md) | ||
* [ ] Run local tests and coverage. | ||
* [ ] Update coverage number in project `README.md`. | ||
* [ ] `git commit` and check that GitHub Action tests succeed. | ||
* [ ] `poetry build` | ||
* [ ] `poetry publish` |
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,18 +1,18 @@ | ||
# Todo | ||
|
||
* [x] Identify and label transactions to user-defined sub-accounts. | ||
* [ ] Update docs. | ||
* [x] Update docs. | ||
* [ ] Usage documentation. | ||
* [x] basic | ||
* [x] Make `bean-mt`: a cli program. | ||
* [x] Use pytest. | ||
* [x] Add coverage to pytest. | ||
* https://stackoverflow.com/a/65697914 | ||
* https://stackoverflow.com/a/65697914 | ||
* [x] Location of default config toml | ||
* [x] Static coverage number. | ||
* [x] poetry, pytest using GitHub actions. | ||
* [ ] Control number of significant digits printed for `amount` in [`as_transaction()`](src/beancount_multitool/as_transaction.py). | ||
|
||
* [ ] Control number of significant digits printed for `amount` in `as_transaction()`. | ||
* [ ] Code coverage using GitHub actions. | ||
* https://github.com/marketplace/actions/pytest-coverage-comment | ||
* https://github.com/marketplace/actions/pytest-coverage-comment | ||
* [ ] Add contribution guidelines. | ||
* [ ] Documentation on how to obtain CSV files from the supported financial institution. | ||
* [ ] Usage documentation. |
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