Skip to content

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