Bug 466175 - Feature request: ruff integration for Python
Summary: Feature request: ruff integration for Python
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 22.12.2
Platform: Neon Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-21 02:04 UTC by Alex Lowe
Modified: 2024-04-16 21:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Lowe 2023-02-21 02:04:55 UTC
SUMMARY
The project plugin for kate has flake8 integration, but it would be really nice if it integrated with ruff as well (https://beta.ruff.rs/docs/)

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2024-04-16 03:20:20 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1461
Comment 2 Bug Janitor Service 2024-04-16 04:47:40 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1462
Comment 3 Waqar Ahmed 2024-04-16 20:29:13 UTC
Git commit 42d79812a610cec87c16e2cf5f788da0973d1f6f by Waqar Ahmed.
Committed on 16/04/2024 at 04:45.
Pushed by cullmann into branch 'master'.

project: Add ruff code analysis tool

M  +3    -0    addons/project/tools/codeanalysisselector.cpp
A  +117  -0    addons/project/tools/ruff.h     [License: LGPL(v2.0+)]

https://invent.kde.org/utilities/kate/-/commit/42d79812a610cec87c16e2cf5f788da0973d1f6f
Comment 4 Christoph Cullmann 2024-04-16 21:18:00 UTC
Git commit 1f34cfe05020a90926301bafb5a0d624c5f73883 by Christoph Cullmann, on behalf of Waqar Ahmed.
Committed on 16/04/2024 at 21:14.
Pushed by cullmann into branch 'master'.

Add support for ruff formatter

Ruff is now supported in the code format plugin and is the default
formatter for python.

A new json config key, "formatterForPython" is introduced which can be
used to switch to autopep8 (the only other python formatter that is
supported atm)

M  +12   -3    addons/format/FormatterFactory.h
M  +4    -0    addons/format/FormatterSettings.json
M  +21   -0    addons/format/Formatters.h
M  +2    -1    addons/format/FormattersEnum.h

https://invent.kde.org/utilities/kate/-/commit/1f34cfe05020a90926301bafb5a0d624c5f73883