Skip to content

Conversation

@petercrocker
Copy link
Contributor

@petercrocker petercrocker commented Dec 25, 2025

  • Replace Poetry with uv for Python dependency management

    • Convert pyproject.toml from Poetry format to PEP 621 standard
    • Replace poetry.lock with uv.lock
    • Update CI workflow to use astral-sh/setup-uv@v5
    • Change all pip install commands to uv run
  • Update documentation to reflect tooling changes

    • CLAUDE.md: uv commands and instructions

- Replace Poetry with uv for Python dependency management
  - Convert pyproject.toml from Poetry format to PEP 621 standard
  - Replace poetry.lock with uv.lock
  - Update CI workflow to use astral-sh/setup-uv@v5
  - Change all `pip install` commands to `uv run`

- Replace mypy with ty for type checking
  - Add ty configuration in pyproject.toml
  - Update tasks.py lint_mypy -> lint_ty
  - Update .gitignore for ty cache directory
  - Update documentation references

- Update documentation to reflect tooling changes
  - CLAUDE.md: uv commands and instructions
  - Various synced docs: mypy -> ty references
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 25, 2025

Deploying infrahub-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: cd542d9
Status: ✅  Deploy successful!
Preview URL: https://2dfa38ef.infrahub-docs.pages.dev
Branch Preview URL: https://pmc-20251225-updates.infrahub-docs.pages.dev

View logs

@petercrocker petercrocker requested a review from a team December 25, 2025 12:10
Keep uv migration but restore mypy as the type checker:
- pyproject.toml: ty -> mypy in dev dependencies, remove ty config
- tasks.py: lint_ty -> lint_mypy
- .gitignore: restore mypy cache entries
- Documentation: revert ty references to mypy
- CI workflow improvements:
  - Add concurrency control to cancel redundant runs
  - Add explicit permissions for contents read
  - Add markdown linting job with markdownlint-cli
  - Add mypy type checking to python-lint job
  - Add import sorting check with ruff
  - Add uv sync steps to ensure dependencies installed
  - Update documentation job to depend on markdown-lint

- pyproject.toml enhancements:
  - Add project description and readme
  - Pin invoke version range
  - Add ruff format and lint configuration
  - Add mypy configuration with strict settings
  - Expand exclude paths for ruff and mypy

- tasks.py: Fix import order and type ignore comment

- docs: Update checkout action to v6 in developer guide

- Add CODEOWNERS file for @opsmill/sa team
@petercrocker petercrocker changed the title Migrate from Poetry to uv and mypy to ty chore: Migrate from Poetry to uv Dec 28, 2025
- Add lint_markdown task to run markdownlint on all .md and .mdx files
- Enable lint_mypy in lint_all (was previously commented out)
- Add .markdownlintignore to exclude synced docs and build artifacts
- Update .markdownlint.yaml with cleaner config and MD060 exception
- Fix lint_yaml docstring (was incorrectly saying "Python files")
@petercrocker petercrocker merged commit 45dc161 into main Dec 30, 2025
7 checks passed
@petercrocker petercrocker deleted the pmc-20251225-updates branch December 30, 2025 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants