ruff

(★ 49,276)

Rust로 작성된 매우 빠른 Python 린터 및 코드 포맷터입니다.

파일 탐색기

파일 수가 많아 일부만 표시됩니다. 전체 파일은 위 다운로드 버튼으로 확인해 주세요.

  • .editorconfig
  • .git-blame-ignore-revs
  • .gitattributes
  • .gitignore
  • .ignore
  • .known-crates
  • .markdownlint.yaml
  • .pre-commit-config.yaml
  • .prettierignore
  • _typos.toml
  • AGENTS.md
  • BREAKING_CHANGES.md
  • Cargo.lock
  • Cargo.toml
  • CHANGELOG.md
  • CLAUDE.md
  • clippy.toml
  • CONTRIBUTING.md
  • Dockerfile
  • LICENSE
  • README.md

# 설치 가이드

rust
사전 준비물

설치 및 실행 절차

cargo build --release

릴리스 모드로 프로젝트를 빌드합니다.

핵심 명령어

cargo build

프로젝트를 디버그 모드로 빌드합니다.

cargo test

프로젝트의 테스트를 실행합니다.

Ruff는 Rust로 작성된 고성능 Python 린터 및 포매터입니다.

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

파일 목록이 많아 일부만 표시됩니다.

릴리즈 타임라인

활발히 관리 중

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

pip install

설명 보기 ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

🔍

pip

설명 보기 ▼

Python 패키지 관리자.
`install`와 같은 일부 하위 명령어는 별도의 사용 문서가 존재.
더 많은 정보: <https://pip.pypa.io/en/stable/cli/pip/>.

pip install {{package}}

패키지 설치 (더 많은 설치 예시는 `pip install`를 참고):

pip install --user {{package}}

시스템 전체 기본 위치 대신 사용자 디렉터리에 패키지 설치:

pip install {{[-U|--upgrade]}} {{package}}

패키지 업그레이드:

🔍

pipx

설명 보기 ▼

Python 애플리케이션을 격리된 환경에서 설치하고 실행.
더 많은 정보: <https://manned.org/pipx>.

pipx run {{pycowsay}} {{moo}}

임시 가상 환경에서 앱 실행:

pipx install {{package}}

가상 환경에 패키지 설치 및 진입점을 경로에 추가:

pipx uninstall {{package}}

설치된 패키지 나열:

🔍

powershell

설명 보기 ▼

이 명령은 `powershell` 대신 `pwsh`를 사용하는 크로스 플랫폼 버전의 PowerShell(이전에는 PowerShell Core로 알려짐)과 혼동될 수 있습니다.
Windows의 원본 `powershell` 명령은 레거시 Windows 버전의 PowerShell(버전 5.1 이하)을 사용하는 데 여전히 사용할 수 있습니다.
더 많은 정보: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_pwsh>.

tldr pwsh

최신 크로스 플랫폼 버전의 PowerShell(버전 6 이상)의 명령에 대한 문서 보기:

powershell

대화형 쉘 세션 시작:

tldr powershell {{[-p|--platform]}} windows

레거시 Windows PowerShell(버전 5.1 이하)의 명령에 대한 문서 보기:

🔍

ruff check

설명 보기 ▼

An extremely fast Python linter. `check` is the default command - it can be omitted everywhere.
If no files or directories are specified, the current working directory is used by default.

ruff check {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

Run the linter on the given files or directories:

ruff check --fix

Apply the suggested fixes, modifying the files in-place:

ruff check --watch

Run the linter and re-lint on change:

🔍

ruff format

설명 보기 ▼

An extremely fast Python code formatter.
If no files or directories are specified, the current working directory is used by default.

ruff format {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

Format given files or directories in-place:

ruff format --check

Print which files would have been modified and return a non-zero exit code if there are files to reformat, and zero otherwise:

ruff format --diff

Print what changes would be made without modifying the files:

🔍

ruff

설명 보기 ▼

매우 빠른 Python 린터 및 코드 포매터로, Rust로 작성되었습니다.
관련 항목: `black`.
더 많은 정보: <https://docs.astral.sh/ruff/tutorial/>.

tldr ruff check

Ruff 린터에 대한 문서 보기:

tldr ruff format

Ruff 코드 포매터에 대한 문서 보기:

🔍

uv add

설명 보기 ▼

Add package dependencies to the `pyproject.toml` file.
Packages are specified according to <https://peps.python.org/pep-0508/>.

uv add {{package}}

Add the latest version of a package:

uv add {{package1 package2 ...}}

Add multiple packages:

uv add {{package>=1.2.3}}

Add a package with a version requirement:

🔍

uv tool

설명 보기 ▼

Install and run commands provided by Python packages.

uv tool run {{command}}

Run a command from a package, without installing it:

uv tool install {{package}}

Install a Python package system-wide:

uv tool upgrade {{package}}

Upgrade an installed Python package:

🔍

uvx

설명 보기 ▼

이 명령은 `uv tool run`의 별칭입니다.

tldr uv tool

자세한 내용은 원본 명령을 참고하세요:

🔍

venv

설명 보기 ▼

Python에서 가벼운 가상 환경을 생성.
더 많은 정보: <https://docs.python.org/library/venv.html>.

python -m venv {{path/to/virtual_environment}}

Python 가상 환경 생성:

{{[.|source]}} {{path/to/virtual_environment}}/bin/activate

가상 환경 활성화 (Linux 및 macOS):

{{path\to\virtual_environment}}\Scripts\activate.bat

가상 환경 활성화 (Windows):

# 프로젝트 배지

// repository documentation