DORSETRIGS
Home

ruff (6 post)


posts by category not found!

Enable ruff rules only on specific files

Taming Ruff Enabling Rules Only on Specific Files Ruff a lightning fast Python linter is a powerful tool for ensuring code quality and consistency But sometimes

2 min read 04-10-2024 36
Enable ruff rules only on specific files
Enable ruff rules only on specific files

Different results between CLI and pre-commit

Understanding the Discrepancy CLI vs Pre Commit Results When working with code quality tools developers often encounter discrepancies between results obtained f

2 min read 26-09-2024 59
Different results between CLI and pre-commit
Different results between CLI and pre-commit

How do I stop the ruff linter from moving imports into an if TYPE CHECKING statement?

How to Stop Ruff from Moving Imports into if TYPE CHECKING Statements This article will address the issue of Ruff a popular Python linter moving imports into an

2 min read 03-09-2024 45
How do I stop the ruff linter from moving imports into an if TYPE CHECKING statement?
How do I stop the ruff linter from moving imports into an if TYPE CHECKING statement?

Sort imports alphabetically with ruff

Sorting Imports Alphabetically with Ruff A Comprehensive Guide Tired of manually sorting your Python imports Lets explore how Ruff a powerful code formatter can

2 min read 03-09-2024 32
Sort imports alphabetically with ruff
Sort imports alphabetically with ruff

Information about ruff rule when hovering above noqa in VS code

Hovering Over noqa in VS Code Unlocking Ruff Rule Insights VS Codes powerful integration with linters like Ruff can dramatically improve your Python code qualit

2 min read 30-08-2024 38
Information about ruff rule when hovering above noqa in VS code
Information about ruff rule when hovering above noqa in VS code

Running git commit is not properly running pre-commit hooks

Pre commit Hooks Not Triggering on git commit A Comprehensive Guide Many developers use pre commit hooks to automate code quality checks before committing chang

3 min read 29-08-2024 81
Running git commit is not properly running pre-commit hooks
Running git commit is not properly running pre-commit hooks