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

Add toml-sort linting tool for pyproject.toml #2311

Merged
merged 5 commits into from
Oct 3, 2023
Merged

Add toml-sort linting tool for pyproject.toml #2311

merged 5 commits into from
Oct 3, 2023

Conversation

giampaolo
Copy link
Owner

This is similar to black CLI tool but for pyproject.toml. This tool applies some style constraints to pyproject.toml. E.g. it makes sure arrays are indented with 4 spaces, inline comments are followed by 2 spaces, etc. Also (most importantly) it automatically sorts array keys.

@giampaolo giampaolo merged commit e7ba381 into master Oct 3, 2023
18 of 23 checks passed
@giampaolo giampaolo deleted the toml-sort branch October 3, 2023 21:19
ddelange added a commit to ddelange/psutil that referenced this pull request Oct 16, 2023
* 'master' of https://github.com/giampaolo/psutil:
  pre-release
  give CREDIT to @JeremyGrosser and @getsentry for sponsorship (thanks\!)
  fix error in test_contracts.py on win
  chore: update GHA workflows (giampaolo#2315)
  fix giampaolo#2195 / linux: no longer print exception at import time
  Add ruff Python linter, remove flake8 (giampaolo#2312)
  Add toml-sort linting tool for pyproject.toml (giampaolo#2311)
  new RTD config
  new RTD config
  new RTD config
  Fix giampaolo#2308, OpenBSD: Process.threads() always fail with AccessDenied.
  Win: fix OpenProcess not recognizing when proc is gone.
  refact assertProcessGone
  refact assertProcessGone
  Add RsT linter (giampaolo#2292)
  Make _raise_if_pid_reused() raise NSP only if pid has been reused.
  fix DEVGUIDE.rst
  PID reusage is not checked for different set methods (giampaolo#2291)
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.

None yet

1 participant