treefmt: add python linting because ruff format doesn't do everything #70
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/flake-compat!70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "just1602/flake-compat:add-python-lint-treefmt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@cobaltcause point out on matrix that
ruff formatdoesn't order imports,and doesn't run lints.
This commit add a new treefmt formatter to lint the code (for now only
order imports), but more lints could be enable. I tried to enable
ALL,but it's too much and enforce docstring and stuff we may don't want
especially for a testsuite.
ruff formatdoesn't do everything 847adf2d1b847adf2d1btob582fd9a71@ -9,0 +11,4 @@# complain about a lot of things for now.[formatter.python-lint]command = "ruff"options = ["check", "--fix", "--select", "I"]should be in pyproject.toml instead so ruff gets the right settings when used from elsewhere. otherwise this is ok.
b582fd9a71toc5dd2240abOh, TIL. I don't do a lot of python anymore except for small script, but this is really cool to be able to set stuff up in
pyproject.tomllike that.