##// END OF EJS Templates
Merge branch 'main' into revert-14625-ruffisation
M Bussonnier -
r29048:38dd7ad1 merge revert-14625-ruff...
parent child Browse files
Show More
@@ -382,4 +382,63 version = {attr = "IPython.core.release.__version__"}
382 omit = [
382 omit = [
383 # omit everything in /tmp as we run tempfile
383 # omit everything in /tmp as we run tempfile
384 "/tmp/*",
384 "/tmp/*",
385 ]
385 ]
386
387 [tool.ruff.lint]
388 extend-select = [
389 # "B", # flake8-bugbear
390 # "I", # isort
391 # that will be a problem for pytest fixture unless you swap with the usefixture decorator https://docs.pytest.org/en/7.1.x/how-to/fixtures.html#use-fixtures-in-classes-and-modules-with-usefixtures
392 # "ARG", # flake8-unused-arguments
393 # "C4", # flake8-comprehensions
394 # "EM", # flake8-errmsg
395 # "ICN", # flake8-import-conventions
396 # "G", # flake8-logging-format
397 # "PGH", # pygrep-hooks
398 # "PIE", # flake8-pie
399 # "PL", # pylint
400 # "PTH", # flake8-use-pathlib
401 # "PT", # flake8-pytest-style
402 # "RET", # flake8-return
403 # "RUF", # Ruff-specific
404 # "SIM", # flake8-simplify
405 # "T20", # flake8-print
406 # "UP", # pyupgrade
407 # "YTT", # flake8-2020
408 # "EXE", # flake8-executable
409 # "PYI", # flake8-pyi
410 # "S", # flake8-bandit
411 ]
412 ignore = [
413 # "E501", # E501 Line too long (158 > 100 characters)
414 # "SIM105", # SIM105 Use `contextlib.suppress(...)`
415 # "PLR", # Design related pylint codes
416 # "S101", # Use of `assert` detected
417 "E712", # 1
418 "E713", # 1
419 "E902", # 2
420 "E702", # 3
421 "E721", # 3
422 "E401", # 5
423 "E711", # 14 Comparison to `None` should be `cond is None`
424 "E701", # 19 Multiple statements on one line (colon)
425 "E741", # 25 Ambiguous variable name: `<one letter>`
426 "E731", # 27 Do not assign a `lambda` expression, use a `def`
427 "E402", # 28 Module level import not at top of file
428 "E722", # 75 Do not use bare `except`
429 "F523", # 1
430 "F811", # 3
431 "F403", # 7
432 "F841", # 38 Local variable `...` is assigned to but never used
433 "F401", # 69 imported but unused
434 "F821", # 624 F821 Undefined name
435 ]
436 unfixable = [
437 # Don't touch print statements
438 "T201",
439 # Don't touch noqa lines
440 "RUF100",
441 ]
442
443 [tool.ruff]
444 extend-exclude = ["tests"]
General Comments 0
You need to be logged in to leave comments. Login now