ruff icon indicating copy to clipboard operation
ruff copied to clipboard

Implement flake8-debugger

Open charliermarsh opened this issue 2 years ago • 3 comments

This is the 13th most popular plugin, and has a pretty small surface area.

charliermarsh avatar Nov 02 '22 03:11 charliermarsh

I was about to ask for this one too!

andredias avatar Nov 06 '22 15:11 andredias

@charliermarsh, i would like to take on this task. can you give any advice on how to do it?

karpa4o4 avatar Nov 18 '22 11:11 karpa4o4

@karpa4o4 - Yeah! Here's a recent PR that added flake8-blind-except: https://github.com/charliermarsh/ruff/pull/805/files. It helps illustrate the various steps involved in implementing a new plugin. You can follow that as a starting point, even that you'll want to add multiple rules (one for each in flake8-debugger), and you'll want your corresponding src/flake8_blind_except/plugins.rs file to contain one function per rule.

There's also the CONTRIBUTING.md guide which talks through adding a new lint rule, which is a subset of what's required to add a new plugin.

charliermarsh avatar Nov 18 '22 15:11 charliermarsh

Closed by @karpa4o4 in https://github.com/charliermarsh/ruff/pull/909!

charliermarsh avatar Nov 26 '22 21:11 charliermarsh