beancount-format 0.0.1__tar.gz → 0.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- beancount_format-0.0.2/.github/renovate.json +6 -0
- beancount_format-0.0.2/.github/workflows/build.yaml +24 -0
- beancount_format-0.0.2/.github/workflows/lint.yaml +44 -0
- beancount_format-0.0.2/.github/workflows/release.yaml +50 -0
- {beancount_format-0.0.1 → beancount_format-0.0.2}/PKG-INFO +10 -2
- {beancount_format-0.0.1 → beancount_format-0.0.2}/pyproject.toml +1 -1
- {beancount_format-0.0.1 → beancount_format-0.0.2}/readme.md +8 -0
- {beancount_format-0.0.1 → beancount_format-0.0.2}/.gitignore +0 -0
- {beancount_format-0.0.1 → beancount_format-0.0.2}/.pre-commit-config.yaml +0 -0
- {beancount_format-0.0.1 → beancount_format-0.0.2}/.pre-commit-hooks.yaml +0 -0
- {beancount_format-0.0.1 → beancount_format-0.0.2}/LICENSE +0 -0
- {beancount_format-0.0.1 → beancount_format-0.0.2}/beancount_format/__init__.py +0 -0
- {beancount_format-0.0.1 → beancount_format-0.0.2}/beancount_format/__main__.py +0 -0
- {beancount_format-0.0.1 → beancount_format-0.0.2}/beancount_format/cli.py +0 -0
- {beancount_format-0.0.1 → beancount_format-0.0.2}/beancount_format/format.py +0 -0
- {beancount_format-0.0.1 → beancount_format-0.0.2}/taskfile.yaml +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- master
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
dist-files:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- uses: actions/setup-python@v5
|
|
18
|
+
with:
|
|
19
|
+
python-version: "3.x"
|
|
20
|
+
|
|
21
|
+
- run: pipx run flit build
|
|
22
|
+
|
|
23
|
+
- name: Check Files
|
|
24
|
+
run: pipx run twine check --strict dist/*
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- master
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
# mypy:
|
|
13
|
+
# runs-on: ubuntu-latest
|
|
14
|
+
# steps:
|
|
15
|
+
# - uses: actions/checkout@v4
|
|
16
|
+
#
|
|
17
|
+
# - uses: actions/setup-python@v5
|
|
18
|
+
# with:
|
|
19
|
+
# python-version: '3.10'
|
|
20
|
+
# cache: pip
|
|
21
|
+
#
|
|
22
|
+
# - run: pip install -e '.[dev]'
|
|
23
|
+
#
|
|
24
|
+
# - uses: liskin/gh-problem-matcher-wrap@v3
|
|
25
|
+
# with:
|
|
26
|
+
# action: add
|
|
27
|
+
# linters: mypy
|
|
28
|
+
#
|
|
29
|
+
# - name: mypy
|
|
30
|
+
# run: mypy --show-column-numbers rtorrent_rpc
|
|
31
|
+
|
|
32
|
+
pre-commit:
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v4
|
|
36
|
+
|
|
37
|
+
- uses: actions/setup-python@v5
|
|
38
|
+
with:
|
|
39
|
+
python-version: '3.10'
|
|
40
|
+
cache: pip
|
|
41
|
+
|
|
42
|
+
- run: pip install -e '.[dev]'
|
|
43
|
+
|
|
44
|
+
- uses: trim21/actions/pre-commit@master
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- v*
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
id-token: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
release:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
|
|
21
|
+
- uses: actions/setup-python@v5
|
|
22
|
+
with:
|
|
23
|
+
python-version: '3.x'
|
|
24
|
+
|
|
25
|
+
- run: pip install flit && flit build
|
|
26
|
+
|
|
27
|
+
- uses: pypa/gh-action-pypi-publish@v1.11.0
|
|
28
|
+
|
|
29
|
+
- name: Get Previous Tag
|
|
30
|
+
id: tag
|
|
31
|
+
uses: trim21/changelog-previous-tag@master
|
|
32
|
+
with:
|
|
33
|
+
token: ${{ github.token }}
|
|
34
|
+
version-spec: pep440
|
|
35
|
+
|
|
36
|
+
- name: Update CHANGELOG
|
|
37
|
+
id: changelog
|
|
38
|
+
uses: requarks/changelog-action@v1
|
|
39
|
+
with:
|
|
40
|
+
token: ${{ github.token }}
|
|
41
|
+
fromTag: ${{ github.ref_name }}
|
|
42
|
+
toTag: ${{ env.previousTag }}
|
|
43
|
+
restrictToTypes: feat,fix,refactor,revert
|
|
44
|
+
|
|
45
|
+
- name: Upload Github Release
|
|
46
|
+
run: gh release create "${GITHUB_REF}" --notes "${CHANGELOG}" $EXTRA_OPTS
|
|
47
|
+
env:
|
|
48
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
49
|
+
CHANGELOG: "${{ steps.changelog.outputs.changes }}"
|
|
50
|
+
EXTRA_OPTS: "${{ env.preRelease == 'true' && '-p' || '' }}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: beancount-format
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.2
|
|
4
4
|
Summary: Typed rtorrent rpc client
|
|
5
5
|
Keywords: rtorrent,rpc
|
|
6
6
|
Author-email: trim21 <trim21me@gmail.com>
|
|
@@ -22,6 +22,14 @@ Provides-Extra: dev
|
|
|
22
22
|
|
|
23
23
|
format beancount
|
|
24
24
|
|
|
25
|
+
# install
|
|
26
|
+
|
|
27
|
+
```shell
|
|
28
|
+
pip install beancount-format
|
|
29
|
+
|
|
30
|
+
beancount-format ./beans/
|
|
31
|
+
```
|
|
32
|
+
|
|
25
33
|
as pre-commit hooks
|
|
26
34
|
|
|
27
35
|
```yaml
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|