@@ -384,7 +384,9 @@ Requires pylsp >= 0.33.0"
384
384
:group 'lsp-pylsp )
385
385
386
386
(defcustom lsp-pylsp-plugins-ruff-format nil
387
- " Rules that are marked as fixable by ruff that should be fixed when running textDocument/formatting."
387
+ " Rules that should be fixed when running textDocument/formatting.
388
+
389
+ Note each rule must additionally be marked as fixable by ruff."
388
390
:type 'lsp-string-vector
389
391
:group 'lsp-pylsp )
390
392
@@ -394,57 +396,66 @@ Requires pylsp >= 0.33.0"
394
396
:group 'lsp-pylsp )
395
397
396
398
(defcustom lsp-pylsp-plugins-ruff-unsafe-fixes nil
397
- " Whether or not to offer unsafe fixes as code actions. Ignored with the \" Fix All\" action."
399
+ " Whether or not to offer unsafe fixes as code actions.
400
+
401
+ Note this is ignored with the \" Fix All\" action."
398
402
:type 'boolean
399
403
:group 'lsp-pylsp )
400
404
401
405
; ; Rules that are ignored when a pyproject.toml or ruff.toml is present
402
406
(defcustom lsp-pylsp-plugins-ruff-line-length 88
403
407
" Line length to pass to ruff checking and formatting.
404
408
405
- Note this variable will be ignored when a when a pyproject.toml or ruff.toml is present."
409
+ Note this variable will be ignored when a when a pyproject.toml or ruff.toml is
410
+ present."
406
411
:type 'integer
407
412
:group 'lsp-pylsp )
408
413
409
414
(defcustom lsp-pylsp-plugins-ruff-exclude nil
410
415
" Files to be excluded by ruff checking.
411
416
412
- Note this variable will be ignored when a when a pyproject.toml or ruff.toml is present."
417
+ Note this variable will be ignored when a when a pyproject.toml or ruff.toml
418
+ is present."
413
419
:type 'lsp-string-vector
414
420
:group 'lsp-pylsp )
415
421
416
422
(defcustom lsp-pylsp-plugins-ruff-select nil
417
423
" Rules to be enabled by ruff.
418
424
419
- Note this variable will be ignored when a when a pyproject.toml or ruff.toml is present."
425
+ Note this variable will be ignored when a when a pyproject.toml or ruff.toml
426
+ is present."
420
427
:type 'lsp-string-vector
421
428
:group 'lsp-pylsp )
422
429
423
430
(defcustom lsp-pylsp-plugins-ruff-ignore nil
424
431
" Rules to be ignored by ruff.
425
432
426
- Note this variable will be ignored when a when a pyproject.toml or ruff.toml is present."
433
+ Note this variable will be ignored when a when a pyproject.toml or ruff.toml
434
+ is present."
427
435
:type 'lsp-string-vector
428
436
:group 'lsp-pylsp )
429
437
430
438
(defcustom lsp-pylsp-plugins-ruff-per-file-ignores nil
431
439
" Rules that should be ignored for specific files.
432
440
433
- Note this variable will be ignored when a when a pyproject.toml or ruff.toml is present."
441
+ Note this variable will be ignored when a when a pyproject.toml or ruff.toml
442
+ is present."
434
443
:type '(alist :key-type (lsp-string-vector :tag " files" ) :value-type (string :tag " rule" ))
435
444
:group 'lsp-pylsp )
436
445
437
446
(defcustom lsp-pylsp-plugins-ruff-preview nil
438
447
" Whether to enable the preview style linting and formatting.
439
448
440
- Note this variable will be ignored when a when a pyproject.toml or ruff.toml is present."
449
+ Note this variable will be ignored when a when a pyproject.toml or ruff.toml
450
+ is present."
441
451
:type 'boolean
442
452
:group 'lsp-pylsp )
443
453
444
454
(defcustom lsp-pylsp-plugins-ruff-target-version nil
445
455
" The minimum python version to target (applies for both linting and formatting).
446
456
447
- Note this variable will be ignored when a when a pyproject.toml or ruff.toml is present."
457
+ Note this variable will be ignored when a when a pyproject.toml or ruff.toml
458
+ is present."
448
459
:type 'string
449
460
:group 'lsp-pylsp )
450
461
0 commit comments