-
Couldn't load subscription status.
- Fork 0
flet init #88
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
flet init #88
Changes from 24 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
505a24c
flet init
MH0386 01f0d4a
flet init
MH0386 e82445a
flet init
MH0386 c7c1cc7
flet init
MH0386 ac6c17a
flet init
MH0386 b49167b
flet init
MH0386 6fa8afc
flet init
MH0386 62021e5
flet init
MH0386 4121495
chore: update dependencies and improve project configuration
MH0386 9c468f3
Remove unused files and update main page title
MH0386 c3692f4
Update Docs
actions-user 23ec1db
Refactor main.py and home.py for improved routing and layout
MH0386 2c40bbe
Merge branch 'flet' of https://github.com/MH0386/MH0386.github.io int…
MH0386 a91aa3f
Switches to Ruff and Ty for linting
MH0386 6bb0ff0
Adds necessary permissions and installs project
MH0386 2114be3
Restricts doc sync to main branch
MH0386 72ce01d
Adds Flutter dependency caching
MH0386 30a83e6
Adds GitHub Pages deployment workflow
MH0386 d41c6df
Updates web deployment to use Flet Publish
MH0386 a7bee1b
Removes Flutter dependency caching
MH0386 c5d0f5a
Refactors docs synchronization workflow
MH0386 a6bf237
Configures linters and formatters
MH0386 44c4822
Configures trunk and improves linting
MH0386 381f8d4
Removes IntelliJ IDEA project files
MH0386 49f060e
Adds code quality badges
MH0386 0e7e35b
Configures pyright settings
MH0386 7d92348
Disables attribute access issue reporting
MH0386 32af600
Merge branch 'main' into flet
MH0386 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,13 +1,19 @@ | ||
| version = 1 | ||
| version=1 | ||
|
|
||
| [[analyzers]] | ||
| name = "rust" | ||
| dependency_file_paths=["pyproject.toml"] | ||
| name="python" | ||
|
|
||
| [analyzers.meta] | ||
| msrv = "stable" | ||
| additional_builtins=["_", "pretty_output"] | ||
| runtime_version="3.x.x" | ||
| type_checker="mypy" | ||
|
|
||
| [[analyzers]] | ||
| name = "secrets" | ||
| name="docker" | ||
|
|
||
| [[analyzers]] | ||
| name="secrets" | ||
|
|
||
| [[transformers]] | ||
| name = "rustfmt" | ||
| name="ruff" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
| name: Trunk Code Quality | ||
| on: | ||
| push: | ||
| pull_request: | ||
| permissions: read-all | ||
| concurrency: | ||
| group: ${{ github.head_ref || github.run_id }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| trunk: | ||
| name: Trunk Code Quality | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| checks: write | ||
| contents: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v6 | ||
| id: uv | ||
| with: | ||
| enable-cache: true | ||
| cache-dependency-glob: "uv.lock" | ||
| activate-environment: true | ||
| - name: Install the project | ||
| run: uv sync --frozen | ||
| - name: Trunk Code Quality | ||
| uses: trunk-io/trunk-action@v1 | ||
| with: | ||
| check-mode: all | ||
| arguments: --github-annotate-new-only=false |
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,40 @@ | ||
| name: Deploy to GitHub Pages | ||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| permissions: | ||
| contents: write | ||
| pages: write | ||
| id-token: write | ||
| jobs: | ||
| build_web: | ||
| name: Build Web | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: UV | ||
| uses: astral-sh/setup-uv@v6 | ||
| with: | ||
| enable-cache: true | ||
| cache-dependency-glob: "uv.lock" | ||
| activate-environment: true | ||
| - name: Install the project | ||
| run: uv sync --frozen | ||
| - name: Build | ||
| run: flet publish | ||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: dist/ | ||
| deploy_web: | ||
| name: Deploy Web | ||
| runs-on: ubuntu-latest | ||
| needs: build_web | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
Oops, something went wrong.
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.
🛠️ Refactor suggestion
Add error handling and build validation.
Consider adding validation steps to ensure the build succeeds and produces expected artifacts.
Apply this diff to add build validation:
- name: Build run: flet publish + - name: Validate build output + run: | + if [ ! -d "dist" ]; then + echo "Error: dist directory not found after build" + exit 1 + fi + if [ -z "$(ls -A dist)" ]; then + echo "Error: dist directory is empty" + exit 1 + fi + echo "Build validation successful" - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: path: dist/📝 Committable suggestion
🤖 Prompt for AI Agents