Skip to content
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

Configure pyproject-fmt options from pyproject.toml file #169

Merged

Conversation

edgarrmondragon
Copy link
Contributor

Closes #130

@edgarrmondragon
Copy link
Contributor Author

I'm not a fan of the config being read from each of the input pyproject.toml files instead of from a central location, so I'm open to ideas 🙂.

@@ -29,6 +29,9 @@ def format_pyproject(conf: Config) -> str:
:return: the formatted text
"""
parsed: TOMLDocument = parse(conf.toml)
overrides = parsed.get("tool", {}).get("pyproject_fmt", {})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use - instead of _ in the name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaborbernat gaborbernat merged commit 8ab88cc into tox-dev:main Jan 22, 2024
10 checks passed
@edgarrmondragon edgarrmondragon deleted the 130-configure-from-pyproject branch January 22, 2024 15:15
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.

Configure pyproject-fmt options from pyproject.toml file
2 participants