All Questions
Tagged with ruff python-3.x
6 questions
0
votes
1
answer
41
views
Ruff formater lengthens the string, how to make sure that it does not change strings that are already less than the length specified in the settings
The problem is that this is the line:
__all__ = (
"Base",
"TimestampMixin",
"BaseUser",
"User",
"Locale",
"DBBot"
)
...
4
votes
1
answer
3k
views
Ruff doesn't catch undefined argument to function
I'm not sure even if it is ruff's job to catch the undefined argument to a function, but is there a tool that does this? or is there a ruff configuration that I'm missing to add so that ruff can do ...
10
votes
0
answers
9k
views
Trying to change the Ruff default line length
I was recently introduced to Ruff a python linter. I have an existing directory with lots of files. I thought to try it out and made a pyproject.toml file in the directory. I want to set the line-...
15
votes
2
answers
18k
views
Ruff does not autofix line-too-long violation
I have a python project and I am configuring latest version of ruff for that project for linting and formating purpose. I have the below settings in my pyproject.toml file:
[tool.ruff]
select = ["...
5
votes
1
answer
5k
views
Ruff Ignore Inline or Function Rule Check
I am using ruff==0.0.265 I have a single function I expect to have complexity and do not wish to change that.
src/exceptions.py:109:5: C901 `convert_py4j_exception` is too complex (11 > 10)
src/...
2
votes
1
answer
2k
views
ruff : E999 SyntaxError on match/case syntax
I got a strange issue with ruff (0.0.209) and python 3.10.9 interpreter when I use match/case syntax.
For instance, this simple code :
from http import HTTPStatus
http_status = HTTPStatus.OK
match ...