mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 14:46:00 +02:00

* common/r*: add Korean translation * Update rtv.md * Update pages.ko/common/rtv.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
17 lines
659 B
Markdown
17 lines
659 B
Markdown
# ruff format
|
|
|
|
> 매우 빠른 Python 코드 포매터.
|
|
> 파일이나 디렉토리가 지정되지 않으면 기본적으로 현재 작업 디렉토리가 사용됩니다.
|
|
> 더 많은 정보: <https://docs.astral.sh/ruff/formatter>.
|
|
|
|
- 지정된 파일이나 디렉토리를 직접 포맷:
|
|
|
|
`ruff format {{경로/대상/파일_또는_폴더1 경로/대상/파일_또는_폴더2 ...}}`
|
|
|
|
- 수정될 파일을 출력하고, 포맷이 필요한 파일이 있으면 0이 아닌 종료 코드를 반환하며, 그렇지 않으면 0을 반환:
|
|
|
|
`ruff format --check`
|
|
|
|
- 파일을 수정하지 않고 어떤 변경이 이루어질지 출력:
|
|
|
|
`ruff format --diff`
|