Skip to content

BesLogic/Beslogic-Ruff-Config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This only works setups with a virtual environment at a known consistent location. This way of installing is a workaround until an official solution is available. See astral-sh/ruff#12352.

required-version and project.dependencies are already set so you shouldn't be able to accidentally use an incompatible Ruff version.
Although there's still an issue where config parsing may fail before required-version tells you about it: astral-sh/ruff#19922

Usage

To use, simply extend your Ruff configuration with the one from this project.

extend = ".venv/Beslogic-Ruff-Config/ruff.toml"

Additional configuration

If a rule doesn't seem to fit your need, try to see if it's configurable before disabling it: https://docs.astral.sh/ruff/settings/#lint

Never use the following settings, unless you really know that you want to overwrite entire config sections:

Instead, always try to use:

If you end up with additional configuration that you believe should be applied across all projects. Please open a PR to modify these shared configurations instead.

The following are not part of the default config and are good to know about:

Installation

Below you should replace <rev> with the latest revision/commit to pin the configuration version.

If you want to rely on the uv lockfile instead of using an explicit revision, you can run uv lock --upgrade-package Beslogic-Ruff-Config to update.

For a uv-based project

uv add git+https://github.com/Beslogic/Beslogic-Ruff-Config --dev --rev <rev>

Which should add the following to you pyproject.toml:

[dependency-groups]
dev = [
    "Beslogic-Ruff-Config",
]

[tool.uv.sources]
httpx = { git = "https://github.com/Beslogic/Beslogic-Ruff-Config@<rev>" }

Using pip

pip install git+https://github.com/microsoft/python-type-stubs.git@<rev>

About

Ruff rules and configs used at Beslogic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published