<aside>

</aside>

๐ŸŽฏ ์ด๋ฒˆ ์ฑ•ํ„ฐ ๋ชฉํ‘œ


๐Ÿ’ป ๊ฐ•์˜ ์ „์ฒด ์ฝ”๋“œ ๋ฐ ํ”„๋กœ์ ํŠธ ๊ตฌ์กฐ (๋ฆฐํŒ…/ํฌ๋งคํŒ… ๋„๊ตฌ ๋ฐ ์„ธ์…˜ ์ถ”๊ฐ€!)

ํ”„๋กœ์ ํŠธ ๊ตฌ์กฐ:

graph TD
    A(my-pytest-project) --> B(.venv);
    A --> C(mycalc);
    A --> D(tests);
    A --> E(pytest.ini);
    A --> F(noxfile.py lint,format ์„ธ์…˜ ์ถ”๊ฐ€);
    A --> G(requirements-dev.txt flake8,black,isort ์ถ”๊ฐ€);
    A --> H(pyproject.toml ๋„๊ตฌ ์„ค์ • ํŒŒ์ผ ์„ ํƒ ์‚ฌํ•ญ);

    C --> ...;
    D --> ...;

    style B fill:#eee,stroke:#333,stroke-dasharray: 5 5;
    style C fill:#ccf,stroke:#333;
    style D fill:#cfc,stroke:#333;
    style E fill:#fef,stroke:#333;
    style F fill:#ffc,stroke:#333;
    style G fill:#eee,stroke:#333;
    style H fill:#eef,stroke:#333;

์ด๋ฒˆ ์‹œ๊ฐ„์— ์‚ฌ์šฉํ•  ์ฃผ์š” ๋ช…๋ น์–ด:

# (๊ฐ€์ƒํ™˜๊ฒฝ ํ™œ์„ฑํ™”, ํ”„๋กœ์ ํŠธ ๋ฃจํŠธ)
nox -s lint                # ๋ฆฐํŠธ ์„ธ์…˜ ์‹คํ–‰ (๊ฒ€์‚ฌ)
nox -s format              # ํฌ๋งท ์ฒดํฌ ์„ธ์…˜ ์‹คํ–‰ (๊ฒ€์‚ฌ๋งŒ)
nox -s format -- fix       # ํฌ๋งท ์ˆ˜์ • ์„ธ์…˜ ์‹คํ–‰ (ํŒŒ์ผ ๋‚ด์šฉ ๋ณ€๊ฒฝ!)
# nox                      # ๋ชจ๋“  ์„ธ์…˜ ์ˆœ์ฐจ ์‹คํ–‰


๐Ÿ“š ๋‚ด์šฉ