-
Notifications
You must be signed in to change notification settings - Fork 1
Modularize index template and add project setup #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0f66117
Add renovate.json
renovate[bot] 4bb6a8e
Refactor index template structure
rtuszik c0547ff
feat: add pyproject.toml and .python-version for project setup and de…
rtuszik b28f20b
refactor(generate_cheatsheet): improve error handling and logging for…
rtuszik 18df6b1
docs: update installation and usage instructions to use uv and remove…
rtuszik 332f86f
docs: add cheatsheet JSON schema for KoalaKeys to define and validate…
rtuszik 212d866
docs: add schema information to README.md
rtuszik f3648fb
fix: add DVORAK keyboard layout option to schema, validation, and doc…
rtuszik 0597bec
refactor: apply ruff formatting and linting to python files and updat…
rtuszik 3ef168d
ci: refactor linting workflow to use separate jobs for lint, typechec…
rtuszik f551222
feat(dependabot): add configurations for GitHub Actions, Docker, and …
rtuszik fe3498d
chore: remove renovate.json configuration file
rtuszik 25a4380
docs(cheatsheets): add JSON schema reference to example cheatsheet
rtuszik 2cacbdc
refactor(github-actions): refactor Python setup into a reusable actio…
rtuszik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,20 @@ | ||
| version: 2 | ||
| updates: | ||
| # Update Python packages | ||
| - package-ecosystem: "pip" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| open-pull-requests-limit: 10 | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| open-pull-requests-limit: 10 | ||
|
|
||
| # Update GitHub Actions | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| open-pull-requests-limit: 10 | ||
| - package-ecosystem: "docker" | ||
| target-branch: "dev" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
|
|
||
| - package-ecosystem: "uv" | ||
| target-branch: "dev" | ||
|
|
||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,36 +1,104 @@ | ||
| name: Lint | ||
| name: checks | ||
| on: | ||
| push: | ||
| branches-ignore: ["main"] | ||
| pull_request: | ||
| branches: ["main"] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: {} | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: read | ||
| statuses: write | ||
| setup: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: "Set up Python" | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version-file: "pyproject.toml" | ||
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| enable-cache: true | ||
| version: 0.8.* | ||
| - name: Install dependencies | ||
| run: uv sync --locked | ||
| - name: Cache dependencies | ||
| uses: actions/cache/save@v4 | ||
| with: | ||
| path: | | ||
| .venv | ||
| ~/.cache/uv | ||
| key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }} | ||
|
|
||
| steps: | ||
| - name: Checkout Code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| needs: setup | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: "Set up Python" | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version-file: "pyproject.toml" | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| enable-cache: true | ||
| version: 0.8.* | ||
| - name: Restore dependencies | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: | | ||
| .venv | ||
| ~/.cache/uv | ||
| key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }} | ||
| fail-on-cache-miss: true | ||
| - name: Run linting | ||
| run: | | ||
| uv run ruff check --fix | ||
| uv run ruff format | ||
|
|
||
| - name: Lint Code Base | ||
| uses: github/super-linter@v7 | ||
| env: | ||
| VALIDATE_ALL_CODEBASE: true | ||
| FIX_PYTHON_RUFF: true | ||
| VALIDATE_PYTHON_RUFF: true | ||
| FIX_MARKDOWN_PRETTIER: true | ||
| VALIDATE_MARKDOWN_PRETTIER: true | ||
| VALIDATE_GITLEAKS: true | ||
| VALIDATE_GITHUB_ACTIONS: true | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| typecheck: | ||
| runs-on: ubuntu-latest | ||
| needs: setup | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: "Set up Python" | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version-file: "pyproject.toml" | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| enable-cache: true | ||
| version: 0.8.* | ||
| - name: Restore dependencies | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: | | ||
| .venv | ||
| ~/.cache/uv | ||
| key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }} | ||
| fail-on-cache-miss: true | ||
| - name: Run type checking | ||
| run: uv run ty check | ||
| vulture: | ||
| runs-on: ubuntu-latest | ||
| needs: setup | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: "Set up Python" | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version-file: "pyproject.toml" | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| enable-cache: true | ||
| version: 0.8.* | ||
| - name: Restore dependencies | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: | | ||
| .venv | ||
| ~/.cache/uv | ||
| key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }} | ||
| fail-on-cache-miss: true | ||
| - name: Run vulture | ||
| run: uv run vulture --min-confidence 100 --exclude ".venv" . | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 3.13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,18 @@ | ||
| # yaml-language-server: $schema=https://rtuszik.github.io/KoalaKeys/schema/cheatsheet.schema.json | ||
| title: "KoalaKeys" | ||
| RenderKeys: true # defaults to true | ||
| AllowText: false # defaults to false - requires RenderKeys: false | ||
| layout: | ||
| keyboard: US | ||
| system: Darwin | ||
| keyboard: US | ||
| system: Darwin | ||
| shortcuts: | ||
| General: | ||
| "CMD+C": | ||
| description: "Copy selected item" | ||
| "CMD+X": | ||
| description: "Cut selected item" | ||
| File and App Management: | ||
| "CMD+N": | ||
| description: "Open new window or document" | ||
| "CMD+O": | ||
| description: "Open selected item or display dialog to choose file to open" | ||
| General: | ||
| "CMD+C": | ||
| description: "Copy selected item" | ||
| "CMD+X": | ||
| description: "Cut selected item" | ||
| File and App Management: | ||
| "CMD+N": | ||
| description: "Open new window or document" | ||
| "CMD+O": | ||
| description: "Open selected item or display dialog to choose file to open" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Inconsistent blank line placement: there's a blank line between
target-branch: \"dev\"anddirectory: \"/\"but not for the other package ecosystems. Remove the blank line on line 17 for consistency.