-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: workflows and uv #1
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| name: MkDocs Build (RationAI Standard) | ||
| on: | ||
| push: | ||
| branches: ["master"] | ||
| pull_request: | ||
| branches: ["master"] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| run: | ||
| uses: RationAI/.github/.github/workflows/mkdocs-build.yml@main |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| name: Python Lint (RationAI Standard) | ||
| on: | ||
| push: | ||
| branches: ["master"] | ||
| pull_request: | ||
| branches: ["master"] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| run: | ||
| uses: RationAI/.github/.github/workflows/python-lint.yml@main |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| MD013: false # Line length | ||
| MD023: false # Heading start left | ||
| MD024: false # Duplicate headings | ||
| MD033: false # Inline HTML | ||
| MD041: false # First line in file should be a top level heading | ||
| MD046: false # Fenced code blocks |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,4 +5,4 @@ for QC methods** developed at RationAI. These functions are meant to be run on s | |
| regions and they **offer a straightforward and well-documented access** to the key parts | ||
| of the complete QC methods to allow for easier debugging and experimenting. | ||
|
|
||
| TODO: Add link to mkdocs documentation | ||
| TODO: Add link to mkdocs documentation | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't ship a literal TODO in the published README.
If you want, I can draft the final docs-link line once the MkDocs URL is settled. 🤖 Prompt for AI Agents |
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,37 +1,30 @@ | ||
| [project] | ||
| name = "rationai-qc" | ||
| version = "1.0.0" | ||
| version = "1.0.1" | ||
| description = "" | ||
| authors = [ | ||
| { name = "Tomáš Balák", email = "tomasbalak@mail.muni.cz" }, | ||
| { name = "Erik Sedlák", email = "521008@mail.muni.cz" }, | ||
| { name = "Tomáš Balák", email = "525126@mail.muni.cz" }, | ||
| { name = "Samuel Tichý", email = "524626@mail.muni.cz" }, | ||
| { name = "Karel Štěpka", email = "chuckie@mail.muni.cz" }, | ||
| ] | ||
| requires-python = ">=3.11" | ||
| readme = "README.md" | ||
| license = { file = "LICENSE" } | ||
|
|
||
| dependencies = [ | ||
| "scikit-image>=0.24.0", | ||
| "pyvips>=2.2.3", | ||
| "rationai-staining @ git+https://gitlab.ics.muni.cz/rationai/digital-pathology/libraries/staining.git", | ||
| "opencv-python>=4.10.0.84", | ||
| "rationai-masks @ git+https://gitlab.ics.muni.cz/rationai/digital-pathology/libraries/masks.git", | ||
| "rationai-staining @ git+https://gitlab.ics.muni.cz/rationai/digital-pathology/libraries/staining.git", | ||
|
TomasBalak marked this conversation as resolved.
|
||
| ] | ||
|
|
||
| [tool.pdm.dev-dependencies] | ||
| [dependency-groups] | ||
| dev = ["mypy", "pre-commit", "ruff"] | ||
| test = ["pytest", "pytest-cov"] | ||
| docs = ["mkdocs-material>=9.5.32", "mkdocstrings[python]>=0.25.2"] | ||
|
|
||
| [tool.pdm.scripts] | ||
| l = { composite = ["lint", "format", "mypy"] } | ||
| test = "pytest tests" | ||
| lint = "ruff check --fix" | ||
| format = "ruff format" | ||
| mypy = "mypy ." | ||
| docs = "mkdocs serve" | ||
| post_install = { composite = [ | ||
| "pre-commit autoupdate", | ||
| "pre-commit install", | ||
| "pre-commit install --hook-type commit-msg", | ||
| ] } | ||
| docs = [ | ||
| "mkdocs-material>=9.5.32", | ||
| "mkdocstrings[python]>=0.25.2", | ||
| "pymdown-extensions>=10.20.1", | ||
| ] | ||
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.
🧩 Analysis chain
🏁 Script executed:
Repository: RationAI/quality-control
Length of output: 752
🏁 Script executed:
Repository: RationAI/quality-control
Length of output: 163
🏁 Script executed:
cat -n .ruff.toml | head -20Repository: RationAI/quality-control
Length of output: 640
🏁 Script executed:
Repository: RationAI/quality-control
Length of output: 321
Add
--force-excludeto both Ruff hooks to ensure the excluded vendored file is not linted or formatted.Pre-commit passes staged files explicitly to Ruff, which bypasses
extend-excludepatterns in.ruff.tomlwithout the--force-excludeflag. This can cause the excludedpiqe.pyfile to be checked and formatted unexpectedly.Suggested change
- id: ruff args: [--fix, --force-exclude] # Run the formatter. - id: ruff-format + args: [--force-exclude]📝 Committable suggestion
🤖 Prompt for AI Agents