Skip to content

Commit e2b9df2

Browse files
authored
docs: update badges and descriptions
1 parent 2bb1cf3 commit e2b9df2

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,36 @@
22

33
| | |
44
|--|--|
5-
|[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)|[![Actions status](https://github.com/deargen/python-project-template-2024/workflows/Style%20checking/badge.svg)](https://github.com/deargen/python-project-template-2024/actions)|
6-
| [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) | [![Actions status](https://github.com/deargen/python-project-template-2024/workflows/Linting/badge.svg)](https://github.com/deargen/python-project-template-2024/actions) |
7-
| [![pytest](https://img.shields.io/badge/pytest-black)](https://github.com/pytest-dev/pytest) [![doctest](https://img.shields.io/badge/doctest-black)](https://docs.python.org/3/library/doctest.html) | [![Actions status](https://github.com/deargen/python-project-template-2024/workflows/Tests/badge.svg)](https://github.com/deargen/python-project-template-2024/actions) |
8-
| [![mkdocs-material](https://img.shields.io/badge/docs-mkdocs_material-blue)](https://github.com/squidfunk/mkdocs-material) | [![Actions status](https://github.com/deargen/python-project-template-2024/workflows/Deploy%20docs/badge.svg)](https://github.com/deargen/python-project-template-2024/actions) |
5+
|[![Ruff](https://img.shields.io/badge/Ruff-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)](https://github.com/astral-sh/ruff) |[![Actions status](https://github.com/deargen/python-project-template-2024/workflows/Style%20checking/badge.svg)](https://github.com/deargen/python-project-template-2024/actions)|
6+
| [![Ruff](https://img.shields.io/badge/Ruff-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)](https://github.com/astral-sh/ruff) | [![Actions status](https://github.com/deargen/python-project-template-2024/workflows/Linting/badge.svg)](https://github.com/deargen/python-project-template-2024/actions) |
7+
| [![pytest](https://img.shields.io/badge/pytest-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)](https://github.com/pytest-dev/pytest) [![doctest](https://img.shields.io/badge/doctest-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)](https://docs.python.org/3/library/doctest.html) | [![Actions status](https://github.com/deargen/python-project-template-2024/workflows/Tests/badge.svg)](https://github.com/deargen/python-project-template-2024/actions) |
8+
| [![uv](https://img.shields.io/badge/uv-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)](https://github.com/astral-sh/uv) | [![Actions status](https://github.com/deargen/python-project-template-2024/workflows/Check%20pip%20compile%20sync/badge.svg)](https://github.com/deargen/python-project-template-2024/actions) |
9+
|[![Built with Material for MkDocs](https://img.shields.io/badge/Material_for_MkDocs-526CFE?style=for-the-badge&logo=MaterialForMkDocs&logoColor=white)](https://squidfunk.github.io/mkdocs-material/)|[![Actions status](https://github.com/deargen/python-project-template-2024/workflows/Deploy%20MkDocs%20on%20latest%20commit/badge.svg)](https://github.com/deargen/python-project-template-2024/actions)|
10+
911

1012
새 파이썬 프로젝트 시작할 때 사용하실 템플릿입니다.
1113

1214
**주요 기능**
1315

14-
1. Github Actions로 ruff formatter (black+isort), ruff linter, pytest (unit test) 통과 여부 확인
16+
1. Github Actions로 ruff formatter, ruff linter, pytest (unit test) 통과 여부 확인
1517
- Actions에서 포매팅 적용 가능
16-
2. pytest 커맨드로 유닛 테스트 사용 가능
17-
3. MkDocs 이용해 자동 document 생성
18-
- GitLab Pages 이용 (GitHub Pages는 Private repo일 경우 유료인 문제가 있음)
18+
2. GitHub Actions로 uv pip-compile 적용 여부 확인 (`deps/requirements.in`의 dynamic version을 `deps/lock` 안에 lock file로 변환)
19+
- Actions에서 lock file compile 가능
20+
3. MkDocs 이용해 자동 document 생성
21+
- Public repo는 GitHub Pages 이용
22+
- Private repo는 GitLab Pages 이용
1923
4. 프로젝트 versioning하고 changelog 자동 생성.
2024
- Actions에서 새 버전 release 가능
2125
- <https://github.com/deargen/workflows> 참고
2226

2327
## 돌려 보기
2428

2529
1. (Optional) `pip3 install --user uv` 해서 pip 대신 `uv pip` 사용하면 더 빠름.
26-
2. `uv pip install -r deps/lock/x86_64-unknown-linux-gnu/requirements.txt`, `uv pip install -e .`, `bash scripts/install_binaries.sh` 으로 dependencies 및 mlproject 패키지 설치
30+
2. `uv pip install -r deps/lock/x86_64-manylinux_2_28/requirements.txt`, `uv pip install -e .`, `bash scripts/install_binaries.sh` 으로 dependencies 및 mlproject 패키지 설치
2731
3. template.env 파일을 .env로 복사한 후 token 등 내용 수정.
2832
4. `python -m mlproject.health` 실행해서 환경 설정이 잘 되었는지 확인.
2933
5. `python tools/examples/color_logging_main.py` 실행해보기. 로깅 내용은 `data/logs` 폴더 안에 기록됨.
30-
6. `uv pip install -r deps/lock/x86_64-unknown-linux-gnu/requirements_dev.txt` 으로 pytest 등 개발자용 패키지도 설치가능
34+
6. `uv pip install -r deps/lock/x86_64-manylinux_2_28/requirements_dev.txt` 으로 pytest 등 개발자용 패키지도 설치가능
3135
7. `pytest` 커맨드로 테스트 실행해보기.
3236
- doctest는 Actions에서 자동으로 실행됨.
3337
8. `import mlproject; print(mlproject.__version__)` 해보면 `0.1.0+4.g75bbed7.dirty` 이런식으로 나옴.
@@ -57,7 +61,7 @@
5761
📂 scripts/ # 프로젝트와 직접 관련 X, but 프로젝트 관리를 위해 필요
5862

5963
📂 deps/
60-
# 직접 수정 X. scripts/compile_requirements.sh 실행시 생성됨.
64+
# 직접 수정 X. .github/workflows/apply-pip-compile.yml 실행시 생성됨.
6165
│ 🛡️ .requirements.in.sha256
6266
│ 🛡️ .requirements_dev.in.sha256
6367
│ 🛡️ .requirements_docs.in.sha256

0 commit comments

Comments
 (0)