Skip to content

chore: prepare release 0.17.2 #932

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
merged 1 commit into from
Jan 15, 2024
Merged

chore: prepare release 0.17.2 #932

merged 1 commit into from
Jan 15, 2024

Conversation

dbanty
Copy link
Collaborator

@dbanty dbanty commented Jan 5, 2024

This PR was created by Knope. Merging it will create a new release

Features

Add --meta=pdm option for generating PEP621 + PDM metadata

The default metadata is still --meta=poetry, which generates a pyproject.toml file with Poetry-specific metadata.
This change adds the --meta=pdm option which includes PDM-specific metadata, but also
standard PEP621
metadata. This may be useful as a starting point for other dependency managers & build tools (like Hatch).

Add original OpenAPI data attribute to Response object

PR #767

In custom templates, you can now access a response.data attribute that contains the original OpenAPI definition of the
response (Response Object or Reference Object).

Include the UP rule for generated Ruff config

This enables pyupgrade-like improvements which should replace some
.format() calls with f-strings.

Fixes

Fix Ruff formatting for --meta=none

PR #940 fixes issue #939. Thanks @satwell!

Due to the lack of pyproject.toml, Ruff was not getting configured properly when --meta=none.
As a result, it didn't clean up common generation issues like duplicate imports, which would then cause errors from
linters.

This is now fixed by changing the default post_hook to ruff check . --fix --extend-select=I when --meta=none.
Using generate --meta=none should now be almost identical to the code generated by update.

@dbanty dbanty force-pushed the release branch 5 times, most recently from 8e80cdb to 460bdd6 Compare January 12, 2024 21:42
@dbanty dbanty merged commit 30d8a37 into main Jan 15, 2024
@dbanty dbanty deleted the release branch January 15, 2024 00:26
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.

1 participant