Skip to content

Commit 1a16cd8

Browse files
Use Questionary for menus (#54)
- Use questionary for menus - Improve build pipeline checks --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 35c7fa0 commit 1a16cd8

19 files changed

Lines changed: 1310 additions & 807 deletions

.github/workflows/publishing.yaml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,43 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v5
14-
- uses: actions/setup-python@v6
15-
with:
16-
python-version: '3.13'
17-
- name: Install pypa/build
18-
run: pip install build
19-
- name: Build a binary wheel and a source tarball
20-
run: python -m build
14+
- uses: astral-sh/setup-uv@v5
15+
- name: Setup Python
16+
run: uv python install 3.13
17+
- name: Build wheel and source tarball
18+
run: uv build
2119
- uses: actions/upload-artifact@v4
2220
with:
2321
name: python-package-distributions
2422
path: dist/
2523

26-
publish-to-pypi:
27-
if: startsWith(github.ref, 'refs/tags/')
24+
validate:
25+
name: Validate dist
2826
needs:
2927
- build
28+
permissions: {}
29+
runs-on: ubuntu-latest
30+
31+
steps:
32+
- uses: actions/download-artifact@v5
33+
with:
34+
name: python-package-distributions
35+
path: dist/
36+
- uses: astral-sh/setup-uv@v5
37+
- name: Setup Python
38+
run: uv python install 3.13
39+
- name: Validate dist
40+
run: uv run --with twine twine check dist/*
3041

42+
publish:
3143
environment:
3244
name: pypi
3345
url: https://pypi.org/p/perdoo
46+
if: startsWith(github.ref, 'refs/tags/')
3447
name: Publish to PyPI
48+
needs:
49+
- build
50+
- validate
3551
permissions:
3652
id-token: write
3753
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.12.4
3+
rev: v0.13.1
44
hooks:
55
- id: ruff-format
66
- id: ruff-check
@@ -16,19 +16,27 @@ repos:
1616
- --wrap=keep
1717
exclude: ".github\/ISSUE_TEMPLATE\/.*.md"
1818
- repo: https://github.com/pre-commit/pre-commit-hooks
19-
rev: v5.0.0
19+
rev: v6.0.0
2020
hooks:
21+
- id: check-added-large-files
2122
- id: check-ast
2223
- id: check-builtin-literals
2324
- id: check-case-conflict
2425
- id: check-docstring-first
26+
# - id: check-executables-have-shebangs
27+
- id: check-illegal-windows-names
28+
# - id: check-json
2529
- id: check-merge-conflict
2630
args:
2731
- --assume-in-merge
32+
- id: check-shebang-scripts-are-executable
2833
- id: check-toml
34+
- id: check-vcs-permalinks
35+
- id: check-xml
2936
- id: check-yaml
3037
args:
3138
- --allow-multiple-documents
39+
- id: debug-statements
3240
- id: end-of-file-fixer
3341
exclude_types:
3442
- json
@@ -39,17 +47,17 @@ repos:
3947
args:
4048
- --fix=auto
4149
- id: name-tests-test
42-
- id: pretty-format-json
43-
args:
44-
- --autofix
45-
- --indent=2
50+
# - id: pretty-format-json
51+
# args:
52+
# - --autofix
53+
# - --indent=2
4654
- id: trailing-whitespace
4755
args:
4856
- --markdown-linebreak-ext=md
4957
exclude_types:
5058
- svg
5159
- repo: https://github.com/pappasam/toml-sort
52-
rev: v0.24.2
60+
rev: v0.24.3
5361
hooks:
5462
- id: toml-sort
5563
args:

docs/img/perdoo-archive-view.svg

Lines changed: 42 additions & 46 deletions
Loading

docs/img/perdoo-commands.svg

Lines changed: 48 additions & 52 deletions
Loading

docs/img/perdoo-import.svg

Lines changed: 76 additions & 80 deletions
Loading

docs/img/perdoo-settings-locate.svg

Lines changed: 30 additions & 34 deletions
Loading

0 commit comments

Comments
 (0)