Skip to content

Commit

Permalink
프로젝트 초기 설정 (#2)
Browse files Browse the repository at this point in the history
* git ignore 파일 설정

* git ignore 파일 설정

* git ignore 파일 설정

* 프로젝트 생성

* pr 템플릿 설정

* pre-commit 설정

* 기본적인 모듈 생성 및 의존성 추가

* 기본적인 모듈 생성 및 의존성 추가

* pylint 일괄 적용

* python 버전 3.12.3으로 수정

* uvicorn 추가

* logger 적용
  • Loading branch information
stopmin committed Jun 18, 2024
1 parent d85913d commit 945c0c8
Show file tree
Hide file tree
Showing 26 changed files with 1,964 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
ignore = E251, E402, E501, E203, E231, W503, F401, E731, E241, E266
4 changes: 4 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 해결하려는 문제가 무엇인가요?
closed: #

## 어떻게 해결했나요?
99 changes: 99 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# PyCharm
.idea/
*.iml

# JupyterLab
.jupyterlab-config

# Pipenv & virtual environments
.venv/
.pipenv
# Include all virtualenvs you might be using
venv/
ENV/
env/

# FastAPI
# No specific files, but excluding standard Python files is often sufficient

# Operating system files
.DS_Store
Thumbs.db
38 changes: 38 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json

- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black

- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8

- repo: https://github.com/pycqa/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args: [ --remove-all-unused-imports, --in-place ]

- repo: https://github.com/pylint-dev/pylint
rev: v3.2.2
hooks:
- id: pylint
additional_dependencies:
- fastapi
- sqlalchemy
- loguru
4 changes: 4 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[MASTER]
init-hook='import sys;sys.path.extend(["$(pipenv --venv)/lib/python3.x/site-packages", "."])'
[MESSAGES CONTROL]
disable=C0114,C0115,C0116,R0903,E0401
24 changes: 24 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
fastapi = "*"
uvicorn = "*"
sqlalchemy = "*"
aiofiles = "*"
regex = "*"
loguru = "*"

[dev-packages]
flake8 = "*"
black = "*"
pre-commit = "*"
autoflake = "*"
isort = "*"
pylint = "*"

[requires]
python_version = "3.12"
python_full_version = "3.12.3"
Loading

0 comments on commit 945c0c8

Please sign in to comment.