uv/docs/concepts/projects
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
..
build.md Reorganize the project concept documentation (#9121) 2024-11-19 13:52:12 -06:00
config.md Mention uv pip behavior in build system note (#9586) 2024-12-02 16:56:46 -06:00
dependencies.md docs: fix invalid syntax in some sources examples (#10127) 2024-12-23 16:12:45 -05:00
index.md Reorganize the project concept documentation (#9121) 2024-11-19 13:52:12 -06:00
init.md Fix ruff linting warnings from generated template files for extension modules (#10371) 2025-01-07 17:07:44 +00:00
layout.md Improve content on project configuration (#9235) 2024-11-20 08:49:51 -06:00
run.md Add missing word to docs for run.md (#9527) 2024-11-29 21:58:20 -05:00
sync.md Reframe --locked and --frozen as --check operations for uv lock (#9662) 2024-12-08 10:02:00 -06:00
workspaces.md Add a note to say that dependencies between workspace members are editable (#9363) 2024-12-16 12:36:24 -06:00