-
Notifications
You must be signed in to change notification settings - Fork 144
feat(dev): automatically format the pyproject.toml file with pyproject-fmt #1363
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
base: master
Are you sure you want to change the base?
Conversation
eaadeba
to
c74647f
Compare
[tool.ruff.lint.per-file-ignores] | ||
"disnake/__main__.py" = ["T201"] # print statements are okay in our simple cli | ||
"disnake/i18n.py" = [ | ||
lint.per-file-ignores."disnake/**.py" = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing the separate tables makes this much more difficult to understand :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's unable to be turned off, unfortunately. I still think the benefits outweigh the negatives.
pyproject.toml
Outdated
"subprocess".msg = "Consider possible security implications associated with the subprocess module." # replaces S404 | ||
[tool.pytest.ini_options] | ||
minversion = "8.2" | ||
pythonpath = "." # legacy configuration, new pytest versions don't add the rootdir to path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this github's rendering or this comment really wanna leave the file
Summary
Add a pyproject.toml formatter to stop having so many merge conflicts when changing configurations.
Checklist
pdm lint
pdm pyright