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

pyproject.toml support #236

Merged
merged 2 commits into from
Mar 25, 2023
Merged

pyproject.toml support #236

merged 2 commits into from
Mar 25, 2023

Conversation

ajslater
Copy link
Contributor

@ajslater ajslater commented Jan 3, 2023

Fixes: #220

This enables pyproject.toml support for radon.

Decisions I made the maintainer should be aware of before merging:

  • Automatic pyproject.toml support for python 3.11+
  • Optional pyproject.toml support for python <3.11 if you install with:
    pip install radon[toml]
  • Silently ignores pyproject.toml if:
    • no pyproject.toml file is found
    • no toml parsing library is available
  • Raises an exception if:
    • toml file is found and is parsed incorrectly.

I'm happy to change anything that isn't quite in the spirit of radon.

@VildMedPap
Copy link

I just want to say I +1 this feature.

@rubik rubik merged commit 5f65de3 into rubik:master Mar 25, 2023
@rubik
Copy link
Owner

rubik commented Mar 25, 2023

@ajslater Thanks for the contribution. It's quite useful and I finally got around to reviewing it.

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.

Support of pyproject.toml file
3 participants