Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

RandomProgramm3r/Ruff-Config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

15 Commits

Repository files navigation

Ruff Config

Ruff

This repository provides pre-configured configurations of Ruff, a fast tool for linting and formatting Python code. The ready-made ruff.toml file makes it easy to implement uniform standards of style and code quality in your projects.

Installation

Step 1: Clone the Repository

Clone the project repository using Git:

git clone https://github.com/RandomProgramm3r/Ruff-Config

Step 2: Create and activate a virtual environment

Create a virtual environment using the venv command, which allows you to isolate project dependencies:

python3 -m venv venv # Linux/MacOS
python -m venv venv # Windows

Activate the virtual environment:

source venv/bin/activate # Linux/MacOS
source venv/Scripts/activate # Windows

Step 3: Installing Dependencies

pip install -r requirements.txt

Using Ruff

To integrate Ruff into your workflow, use the following commands:

# Run linting checks on all files
ruff check .
# Automatically fix all fixable lint issues
ruff check . --fix
# Format code according to Ruff’s rules
ruff format .

CI with GitHub Actions

This repository includes a GitHub Actions workflow (.github/workflows/ruff.yml) that on every push or pull request to main will:

  • Check out the code
  • Set up Python 3.13
  • Run Ruff via the official action
  • Verify formatting with ruff format --check

To customize, edit .github/workflows/ruff.yml or adjust your ruff.toml.

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /