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.
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": [
3
+ "github>Trim21/renovate-config",
4
+ "github>Trim21/renovate-config:monthly"
5
+ ]
6
+ }
@@ -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
1
+ Metadata-Version: 2.3
2
2
  Name: beancount-format
3
- Version: 0.0.1
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
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
4
4
 
5
5
  [project]
6
6
  name = "beancount-format"
7
- version = "0.0.1"
7
+ version = "0.0.2"
8
8
  description = "Typed rtorrent rpc client"
9
9
  authors = [
10
10
  { name = "trim21", email = "trim21me@gmail.com" },
@@ -1,5 +1,13 @@
1
1
  format beancount
2
2
 
3
+ # install
4
+
5
+ ```shell
6
+ pip install beancount-format
7
+
8
+ beancount-format ./beans/
9
+ ```
10
+
3
11
  as pre-commit hooks
4
12
 
5
13
  ```yaml