Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 25 additions & 9 deletions .github/workflows/publishing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,43 @@ jobs:

steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install pypa/build
run: pip install build
- name: Build a binary wheel and a source tarball
run: python -m build
- uses: astral-sh/setup-uv@v5
- name: Setup Python
run: uv python install 3.13
- name: Build wheel and source tarball
run: uv build
- uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
if: startsWith(github.ref, 'refs/tags/')
validate:
name: Validate dist
needs:
- build
permissions: {}
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v5
with:
name: python-package-distributions
path: dist/
- uses: astral-sh/setup-uv@v5
- name: Setup Python
run: uv python install 3.13
- name: Validate dist
run: uv run --with twine twine check dist/*

publish:
environment:
name: pypi
url: https://pypi.org/p/perdoo
if: startsWith(github.ref, 'refs/tags/')
name: Publish to PyPI
needs:
- build
- validate
permissions:
id-token: write
runs-on: ubuntu-latest
Expand Down
22 changes: 15 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.4
rev: v0.13.1
hooks:
- id: ruff-format
- id: ruff-check
Expand All @@ -16,19 +16,27 @@ repos:
- --wrap=keep
exclude: ".github\/ISSUE_TEMPLATE\/.*.md"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
# - id: check-executables-have-shebangs
- id: check-illegal-windows-names
# - id: check-json
- id: check-merge-conflict
args:
- --assume-in-merge
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
args:
- --allow-multiple-documents
- id: debug-statements
- id: end-of-file-fixer
exclude_types:
- json
Expand All @@ -39,17 +47,17 @@ repos:
args:
- --fix=auto
- id: name-tests-test
- id: pretty-format-json
args:
- --autofix
- --indent=2
# - id: pretty-format-json
# args:
# - --autofix
# - --indent=2
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
exclude_types:
- svg
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.2
rev: v0.24.3
hooks:
- id: toml-sort
args:
Expand Down
88 changes: 42 additions & 46 deletions docs/img/perdoo-archive-view.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
100 changes: 48 additions & 52 deletions docs/img/perdoo-commands.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
156 changes: 76 additions & 80 deletions docs/img/perdoo-import.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 30 additions & 34 deletions docs/img/perdoo-settings-locate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading