uv/docs/concepts
Kevin Marchais a2a2662d43
Fix ruff linting warnings from generated template files for extension modules (#10371)
## Summary

This PR fixes two ruff linting issues in the generated template files
when using: `uv init --build-backend` for extension modules.

1. Removes unnecessary `from __future__ import annotations` imports from
generated .pyi files
([PYI044](https://docs.astral.sh/ruff/rules/future-annotations-in-stub/))
2. Adds missing blank line after `hello_from_bin` import to comply with
isort formatting
([I001](https://docs.astral.sh/ruff/rules/unsorted-imports/))

## Test Plan

```bash
cargo run -- init --build-backend scikit-build-core example-ext
uvx ruff check example-ext --select ALL

cargo run -- init --build-backend maturin example-ext
uvx ruff check example-ext --select ALL
```

## Remaining warnings

There are still warnings remainings in the generated `__init__.py`
files:
- [D104](https://docs.astral.sh/ruff/rules/undocumented-public-package/)
Missing docstring in public package
-
[D103](https://docs.astral.sh/ruff/rules/undocumented-public-function/)
Missing docstring in public function
- [T201](https://docs.astral.sh/ruff/rules/print/) `print` found
2025-01-07 17:07:44 +00:00
..
projects Fix ruff linting warnings from generated template files for extension modules (#10371) 2025-01-07 17:07:44 +00:00
cache.md Allow environment variables to be included in cache keys (#10170) 2024-12-26 15:31:49 +00:00
index.md Reorganize the project concept documentation (#9121) 2024-11-19 13:52:12 -06:00
python-versions.md docs(python-versions.md): fix spelling (#10322) 2025-01-06 07:41:48 +00:00
resolution.md Document the --fork-strategy setting (#9887) 2024-12-13 21:35:20 +00:00
tools.md docs(tools.md): remove hyphenation for consistency (#10321) 2025-01-06 09:33:46 -05:00