Skip to content

Commit

Permalink
Update pyproject.toml
Browse files Browse the repository at this point in the history
Here’s the refined ruff configuration file after removing unnecessary entries and improving clarity
  • Loading branch information
Yuva authored Dec 30, 2024
1 parent d2af881 commit 6f92608
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exclude = [
"tools/eslint/node_modules",
"tools/github_reporter"
]
line-length = 172
line-length = 120 # Adjusted to a more reasonable length for readability
target-version = "py38"

[tool.ruff.lint]
Expand All @@ -19,30 +19,26 @@ select = [
"INT", # flake8-gettext
"PLC", # Pylint conventions
"PLE", # Pylint errors
"PLR09", # Pylint refactoring: max-args, max-branches, max returns, max-statements
"PYI", # flake8-pyi
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"T10", # flake8-debugger
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"W", # pycodestyle
"YTT", # flake8-2020
"YTT" # flake8-2020
]
ignore = [
"E401",
"E402",
"E7",
"PLC1901",
"RUF005",
"RUF100",
"E401", # Multiple imports on one line
"E402", # Module level import not at top of file
"PLC1901" # Pylint specific convention rule
]

[tool.ruff.lint.mccabe]
max-complexity = 100
max-complexity = 20 # Reduced to encourage simpler code structures

[tool.ruff.lint.pylint]
max-args = 12
max-branches = 110
max-returns = 12
max-statements = 289
max-args = 10 # Adjusted to a reasonable limit
max-branches = 20 # Simplified for maintainability
max-returns = 6 # Encourages focused functions
max-statements = 50 # Limits complexity of functions

0 comments on commit 6f92608

Please sign in to comment.