Browse Source

๐ŸŽจ [pre-commit.ci] Auto format from pre-commit.com hooks

pull/13422/head
pre-commit-ci[bot] 1 month ago
parent
commit
1a18c73344
  1. 12
      docs/ko/docs/virtual-environments.md

12
docs/ko/docs/virtual-environments.md

@ -394,7 +394,7 @@ Hello World
์•„๋งˆ ์—ฌ๋Ÿฌ๋ถ„์˜ ๋Œ€๋ถ€๋ถ„์€ ์—๋””ํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜๋ฏ€๋กœ, ์ž๋™ ์™„์„ฑ ๊ธฐ๋Šฅ๊ณผ ์ธ๋ผ์ธ ์˜ค๋ฅ˜ ํ‘œ์‹œ๋ฅผ ํ™œ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ์ƒ์„ฑํ•œ ๊ฐ€์ƒ ํ™˜๊ฒฝ์„ ์‚ฌ์šฉํ•˜๋„๋ก ์„ค์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. (๋Œ€๋ถ€๋ถ„ ์ž๋™์œผ๋กœ ๊ฐ์ง€๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค)
์˜ˆ:
์˜ˆ:
* <a href="https://code.visualstudio.com/docs/python/environments#_select-and-activate-an-environment" class="external-link" target="_blank">VS Code</a>
* <a href="https://www.jetbrains.com/help/pycharm/creating-virtual-environment.html" class="external-link" target="_blank">PyCharm</a>
@ -675,7 +675,7 @@ C:\Windows\System32
๋‹ค๋ฅธ ๋””๋ ‰ํ„ฐ๋ฆฌ๋ฅผ ๊ฒ€์ƒ‰ํ•˜๊ธฐ ์ „์— ํ•ด๋‹น ๊ฒฝ๋กœ์—์„œ ๋จผ์ € ์ฐพ์Šต๋‹ˆ๋‹ค.
๋”ฐ๋ผ์„œ ํ„ฐ๋ฏธ๋„์—์„œ `python`์„ ์ž…๋ ฅํ•˜๋ฉด, ์‹œ์Šคํ…œ์€ ํŒŒ์ด์ฌ ํ”„๋กœ๊ทธ๋žจ์„ ๋‹ค์Œ ์œ„์น˜์—์„œ ์ฐพ๊ณ 
๋”ฐ๋ผ์„œ ํ„ฐ๋ฏธ๋„์—์„œ `python`์„ ์ž…๋ ฅํ•˜๋ฉด, ์‹œ์Šคํ…œ์€ ํŒŒ์ด์ฌ ํ”„๋กœ๊ทธ๋žจ์„ ๋‹ค์Œ ์œ„์น˜์—์„œ ์ฐพ๊ณ 
```plaintext
/home/user/code/awesome-project/.venv/bin/python
@ -699,7 +699,7 @@ C:\Users\user\code\awesome-project\.venv\Scripts
๋‹ค๋ฅธ ๋””๋ ‰ํ„ฐ๋ฆฌ๋ฅผ ๊ฒ€์ƒ‰ํ•˜๊ธฐ ์ „์— ํ•ด๋‹น ๊ฒฝ๋กœ์—์„œ ๋จผ์ € ์ฐพ์Šต๋‹ˆ๋‹ค.
๋”ฐ๋ผ์„œ ํ„ฐ๋ฏธ๋„์—์„œ `python`์„ ์ž…๋ ฅํ•˜๋ฉด, ์‹œ์Šคํ…œ์€ ํŒŒ์ด์ฌ ํ”„๋กœ๊ทธ๋žจ์„ ๋‹ค์Œ ์œ„์น˜์—์„œ ์ฐพ๊ณ 
๋”ฐ๋ผ์„œ ํ„ฐ๋ฏธ๋„์—์„œ `python`์„ ์ž…๋ ฅํ•˜๋ฉด, ์‹œ์Šคํ…œ์€ ํŒŒ์ด์ฌ ํ”„๋กœ๊ทธ๋žจ์„ ๋‹ค์Œ ์œ„์น˜์—์„œ ์ฐพ๊ณ 
```plaintext
@ -768,7 +768,7 @@ Linux์™€ macOS์—์„œ๋Š” `which`๋ฅผ, Windows PowerShell์—์„œ๋Š” `Get-Command`๋ฅผ
## ๊ฐ€์ƒ ํ™˜๊ฒฝ์„ ๋น„ํ™œ์„ฑํ™” ํ•˜๋Š” ์ด์œ 
์˜ˆ๋ฅผ ๋“ค์ž๋ฉด, **๊ฐ€์ƒ ํ™˜๊ฒฝ์„ ํ™œ์„ฑํ™” ํ•œ** `philosophers-stone` ํ”„๋กœ์ ํŠธ์—์„œ ์ž‘์—… ์ค‘์ผ ๋•Œ, ๊ทธ ํ™˜๊ฒฝ์—์„œ ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•˜๊ณ  ์ž‘์—…ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
์˜ˆ๋ฅผ ๋“ค์ž๋ฉด, **๊ฐ€์ƒ ํ™˜๊ฒฝ์„ ํ™œ์„ฑํ™” ํ•œ** `philosophers-stone` ํ”„๋กœ์ ํŠธ์—์„œ ์ž‘์—… ์ค‘์ผ ๋•Œ, ๊ทธ ํ™˜๊ฒฝ์—์„œ ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•˜๊ณ  ์ž‘์—…ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
๊ทธ๋Ÿฐ ํ›„ **๋‹ค๋ฅธ ํ”„๋กœ์ ํŠธ**์ธ `prisoner-of-azkaban`์—์„œ ์ž‘์—…ํ•˜๊ธธ ์›ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.
@ -806,7 +806,7 @@ Traceback (most recent call last):
```console
$ cd ~/code/prisoner-of-azkaban
// ๊ฐ€์ƒ ํ™˜๊ฒฝ์„ ๋น„ํ™œ์„ฑํ™” ํ•˜๊ธฐ ์œ„ํ•ด ๋ฐ˜๋“œ์‹œ ์ด์ „ ๋””๋ ‰ํ„ฐ๋ฆฌ์— ์žˆ์„ ํ•„์š”๋Š” ์—†์œผ๋ฉฐ, ๋‹ค๋ฅธ ํ”„๋กœ์ ํŠธ๋กœ ์ด๋™ํ•œ ํ›„์—๋„ ์–ด๋””์„œ๋‚˜ ๋น„ํ™œ์„ฑํ™”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค ๐Ÿ˜Ž
// ๊ฐ€์ƒ ํ™˜๊ฒฝ์„ ๋น„ํ™œ์„ฑํ™” ํ•˜๊ธฐ ์œ„ํ•ด ๋ฐ˜๋“œ์‹œ ์ด์ „ ๋””๋ ‰ํ„ฐ๋ฆฌ์— ์žˆ์„ ํ•„์š”๋Š” ์—†์œผ๋ฉฐ, ๋‹ค๋ฅธ ํ”„๋กœ์ ํŠธ๋กœ ์ด๋™ํ•œ ํ›„์—๋„ ์–ด๋””์„œ๋‚˜ ๋น„ํ™œ์„ฑํ™”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค ๐Ÿ˜Ž
$ deactivate
// prisoner-of-azkaban/.venv ์—์„œ ๊ฐ€์ƒ ํ™˜๊ฒฝ์„ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค ๐Ÿš€
@ -834,7 +834,7 @@ I solemnly swear ๐Ÿบ
* ํ”„๋กœ์ ํŠธ์˜ **๊ฐ€์ƒ ํ™˜๊ฒฝ** ๊ด€๋ฆฌ
* **ํŒจํ‚ค์ง€** ์„ค์น˜
* ํ”„๋กœ์ ํŠธ๋ฅผ ์œ„ํ•œ ํŒจํ‚ค์ง€ **์˜์กด์„ฑ ๋ฐ ๋ฒ„์ „** ๊ด€๋ฆฌ
* ๊ฐœ๋ฐœ ์ค‘์ธ ์ปดํ“จํ„ฐ์™€ ํ”„๋กœ๋•์…˜ ํ™˜๊ฒฝ์—์„œ ๋™์ผํ•˜๊ฒŒ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋„๋ก, **์ •ํ™•ํ•œ** ํŒจํ‚ค์ง€์™€ ๋ฒ„์ „ ๋ฐ ์˜์กด์„ฑ์˜ ์ง‘ํ•ฉ์„ ์„ค์น˜ํ•˜๋„๋ก ํ•˜๋Š” **๋กœํ‚น(locking)**
* ๊ฐœ๋ฐœ ์ค‘์ธ ์ปดํ“จํ„ฐ์™€ ํ”„๋กœ๋•์…˜ ํ™˜๊ฒฝ์—์„œ ๋™์ผํ•˜๊ฒŒ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋„๋ก, **์ •ํ™•ํ•œ** ํŒจํ‚ค์ง€์™€ ๋ฒ„์ „ ๋ฐ ์˜์กด์„ฑ์˜ ์ง‘ํ•ฉ์„ ์„ค์น˜ํ•˜๋„๋ก ํ•˜๋Š” **๋กœํ‚น(locking)**
* ๊ทธ ์™ธ์˜ ๋งŽ์€ ๋‹ค๋ฅธ ๊ธฐ๋Šฅ๋“ค
## ๊ฒฐ๋ก 

Loadingโ€ฆ
Cancel
Save