Coder Social home page Coder Social logo

ruff.novaextension's Introduction

Ruff Nova Extension

It’s a stand-alone Nova extension to use Ruff, an extremely fast Python linter (and formatter), written in Rust.

Requirements

Before using the extension, it’s necessary to install Ruff itself if you don’t have one already.

Ruff can be installed simply by running pip install ruff.

Configuration

The extension supports both global and workspace configurations. A workspace configuration always overrides a global one.

Options

There are few options available to configure: executable path, check command arguments, and check mode, format command arguments, and format on save. By default, the executable path is /usr/local/bin/ruff, with no additional arguments, checking on change, and formatting on save.

You could alter the executable path if Ruff installed in a different place or if /usr/bin/env usage is desirable.

In the case of /usr/bin/env, it becomes the executable path, and ruff becomes the first argument.

pyproject.toml

The extension respects pyproject.toml, ruff.toml, and .ruff.toml in a project directory as much as ruff command-line utility. So, there’s no need to specify the --config argument explicitly.

ruff.novaextension's People

Contributors

aeron avatar dcwatson avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dcwatson minrk

ruff.novaextension's Issues

ability to fix violations

It would be nice to have a way to let Ruff fix anything it can (via the --fix flag). I could see it being a command (Fix With Ruff?) or even just a way to have separate args for the command and the issue provider. For instance, I don't necessarily want to add --fix to the issue provider, but if I had a way to add it just when the command is run manually that would be fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.