mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:02:09 +02:00
autoflake: update path (#10083)
This commit is contained in:
parent
e9995a8249
commit
1c2154bf75
5 changed files with 15 additions and 15 deletions
|
@ -5,15 +5,15 @@
|
|||
|
||||
- Enlève les variables non-utilisées d'un fichier et affiche la différence :
|
||||
|
||||
`autoflake --remove-unused-variables {{fichier.py}}`
|
||||
`autoflake --remove-unused-variables {{chemin/vers/fichier.py}}`
|
||||
|
||||
- Enlève les imports non-utilisés de plusieurs fichiers et affiche la différence :
|
||||
|
||||
`autoflake --remove-all-unused-imports {{fichier1.py}} {{fichier2.py}} {{fichier3.py}}`
|
||||
`autoflake --remove-all-unused-imports {{chemin/vers/fichier1.py chemin/vers/fichier2.py ...}}`
|
||||
|
||||
- Enlève les variables non-utilisées d'un fichier, surcharge ce dernier :
|
||||
|
||||
`autoflake --remove-unused-variables --in-place {{fichier.py}}`
|
||||
`autoflake --remove-unused-variables --in-place {{chemin/vers/fichier.py}}`
|
||||
|
||||
- Enlève les variables non-utilisées de tous les fichiers d'un dossier de manière récursive, en les surchargeant :
|
||||
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
|
||||
- Rimuovi le variabili inutilizzate da un file e mostra la differenza:
|
||||
|
||||
`autoflake --remove-unused-variables {{file.py}}`
|
||||
`autoflake --remove-unused-variables {{percorso/del/file.py}}`
|
||||
|
||||
- Rimuovi gli import inutilizzati da multipli file mostrando le differenze:
|
||||
|
||||
`autoflake --remove-all-unused-imports {{file1.py}} {{file2.py}} {{file3.py}}`
|
||||
`autoflake --remove-all-unused-imports {{percorso/del/file1.py percorso/del/file2.py ...}}`
|
||||
|
||||
- Rimuovi le variabili inutilizzate da un file, sovrascrivendolo:
|
||||
|
||||
`autoflake --remove-unused-variables --in-place {{file.py}}`
|
||||
`autoflake --remove-unused-variables --in-place {{percorso/del/file.py}}`
|
||||
|
||||
- Rimuovi le variabili inutilizzate da tutti i file in una directory, ricorsivamente e sovrascrivendoli:
|
||||
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
|
||||
- Usuń nieużywane zmienne z jednego pliku i wyświetl różnicę:
|
||||
|
||||
`autoflake --remove-unused-variables {{file.py}}`
|
||||
`autoflake --remove-unused-variables {{ścieżka/do/pliku.py}}`
|
||||
|
||||
- Usuń nieużywane importy z wielu plików i wyświetl różnice:
|
||||
|
||||
`autoflake --remove-all-unused-imports {{file1.py}} {{file2.py}} {{file3.py}}`
|
||||
`autoflake --remove-all-unused-imports {{ścieżka/do/pliku1.py ścieżka/do/pliku2.py ...}}`
|
||||
|
||||
- Usuń nieużywane zmienne z pliku, zastępując plik:
|
||||
|
||||
`autoflake --remove-unused-variables --in-place {{file.py}}`
|
||||
`autoflake --remove-unused-variables --in-place {{ścieżka/do/pliku.py}}`
|
||||
|
||||
- Usuń nieużywane zmienne rekurencyjnie ze wszystkich plików w katalogu, nadpisując każdy plik:
|
||||
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
|
||||
- 移除指定文件中未使用的变量,并展示 diff:
|
||||
|
||||
`autoflake --remove-unused-variables {{文件.py}}`
|
||||
`autoflake --remove-unused-variables {{路径/到/文件.py}}`
|
||||
|
||||
- 移除多个文件中未使用的引入,并展示 diffs:
|
||||
|
||||
`autoflake --remove-all-unused-imports {{文件1.py}} {{文件2.py}} {{文件3.py}}`
|
||||
`autoflake --remove-all-unused-imports {{路径/到/文件1个.py 路径/到/文件2个.py ...}}`
|
||||
|
||||
- 移除未被使用的变量,并覆盖更新:
|
||||
|
||||
`autoflake --remove-unused-variables --in-place {{文件.py}}`
|
||||
`autoflake --remove-unused-variables --in-place {{路径/到/文件.py}}`
|
||||
|
||||
- 递归地移除指定文件夹下层所有文件中未使用的变量,并覆盖更新:
|
||||
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
|
||||
- Remove unused variables from a single file and display the diff:
|
||||
|
||||
`autoflake --remove-unused-variables {{file.py}}`
|
||||
`autoflake --remove-unused-variables {{path/to/file.py}}`
|
||||
|
||||
- Remove unused imports from multiple files and display the diffs:
|
||||
|
||||
`autoflake --remove-all-unused-imports {{file1.py}} {{file2.py}} {{file3.py}}`
|
||||
`autoflake --remove-all-unused-imports {{path/to/file1.py path/to/file2.py ...}}`
|
||||
|
||||
- Remove unused variables from a file, overwriting the file:
|
||||
|
||||
`autoflake --remove-unused-variables --in-place {{file.py}}`
|
||||
`autoflake --remove-unused-variables --in-place {{path/to/file.py}}`
|
||||
|
||||
- Remove unused variables recursively from all files in a directory, overwriting each file:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue