Skip to content

Commit e2d871b

Browse files
committed
wip
1 parent f519e05 commit e2d871b

30 files changed

Lines changed: 92 additions & 45 deletions

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
max-line-length = 200
3+
extend-ignore = E111,E114

.github/workflows/struct-generate.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ on:
5353
type: string
5454
required: false
5555
default: 'structures'
56+
version:
57+
description: 'StructKit version to install'
58+
type: string
59+
required: false
60+
default: 'main'
5661
secrets:
5762
token:
5863
description: 'GitHub token'
@@ -70,11 +75,18 @@ jobs:
7075
with:
7176
python-version: '3.x'
7277

73-
- name: Install StructKit
78+
- name: Install StructKit (latest)
79+
if: ${{ inputs.version == 'main' }}
7480
run: |
7581
pip install git+https://github.com/httpdss/structkit.git
7682
structkit -h
7783
84+
- name: Install StructKit (specific version)
85+
if: ${{ inputs.version != 'main' }}
86+
run: |
87+
pip install structkit==${{ inputs.version }}
88+
structkit -h
89+
7890
- name: Install custom structures
7991
if: ${{ inputs.custom_structure_repository != '' }}
8092
uses: actions/checkout@v5

.github/workflows/test-script.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ jobs:
3636
run: flake8 --max-line-length=200 .
3737
continue-on-error: true
3838

39+
- name: Type check with mypy
40+
run: |
41+
mypy structkit tests
42+
continue-on-error: true
43+
3944
- name: Run tests
4045
env:
4146
REPORT_OUTPUT: md_report.md

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
```bash
3030
# Install via pip
31-
pip install git+https://github.com/httpdss/structkit.git
31+
pip install structkit
3232

3333
# Or run with Docker
3434
docker run -v $(pwd):/workdir ghcr.io/httpdss/structkit:main generate my-config.yaml ./output

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tags:
1010
Install StructKit with pip:
1111

1212
```sh
13-
pip install git+https://github.com/httpdss/structkit.git
13+
pip install structkit
1414
```
1515

1616
!!! tip "Enable Auto-Completion"

docs/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Inside the container:
4242

4343
```sh
4444
apk add python-pip git vim
45-
pip install git+https://github.com/httpdss/structkit.git
45+
pip install structkit
4646
mkdir example
4747
cd example/
4848
touch structure.yaml

docs/vhs/install.tape

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Type "source .venv/bin/activate"
2222
Enter
2323
Sleep 1s
2424

25-
Type "# Install StructKit from GitHub"
25+
Type "# Install StructKit"
2626
Enter
27-
Type "pip install git+https://github.com/httpdss/structkit.git"
27+
Type "pip install structkit"
2828
Enter
2929
Sleep 5s
3030

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ dev = [
5757
]
5858

5959
[project.urls]
60-
Homepage = "https://github.com/httpdss/structkit"
61-
Repository = "https://github.com/httpdss/structkit.git"
60+
Homepage = "https://httpdss.github.io/structkit/"
61+
Repository = "https://github.com/httpdss/structkit"
62+
Issues = "https://github.com/httpdss/structkit/issues"
63+
Discussions = "https://github.com/httpdss/structkit/discussions"
64+
Documentation = "https://httpdss.github.io/structkit/docs/"
65+
Funding = "https://httpdss.github.io/structkit/docs/funding/"
6266

6367
[project.scripts]
6468
structkit = "structkit.main:main"

requirements.dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ flake8
33
pytest-md-report
44
pre-commit
55
pytest-cov
6+
mypy

site/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ <h3 class="mb-4">Install via pip</h3>
232232
<div class="code-block">
233233
<button class="copy-button">Copy</button>
234234
<pre><code># Install from GitHub
235-
pip install git+https://github.com/httpdss/structkit.git
235+
pip install structkit
236236

237237
# Verify installation
238238
structkit --version</code></pre>

0 commit comments

Comments
 (0)