Skip to content

Commit 9a34147

Browse files
authored
Merge pull request #2 from cmscom/devin/1737123359-enhance-readme-docs
READMEの改善と開発環境の整備
2 parents 065f36a + 409a483 commit 9a34147

File tree

2 files changed

+77
-1
lines changed

2 files changed

+77
-1
lines changed

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,36 @@
11
# demo-ai-django-pyhack
2-
AIでDjangoでPyHackの申し込みをやってみる
2+
3+
AIでDjangoでPyHackの申し込みをやってみるプロジェクトです。
4+
5+
## 環境構築
6+
7+
### 必要条件
8+
- Python 3.12以上
9+
- pip (最新版推奨)
10+
11+
### セットアップ手順
12+
1. リポジトリをクローン:
13+
```bash
14+
git clone https://github.com/cmscom/demo-ai-django-pyhack.git
15+
cd demo-ai-django-pyhack
16+
```
17+
18+
2. 開発用パッケージをインストール:
19+
```bash
20+
pip install -e ".[dev]"
21+
```
22+
23+
## 開発
24+
25+
### コードスタイル
26+
コードの品質チェックとスタイル整形には以下のコマンドを実行:
27+
28+
#### Ruffによるコード品質チェック
29+
```bash
30+
ruff check .
31+
```
32+
33+
#### インポート順序の整理(isort)
34+
```bash
35+
isort .
36+
```

pyproject.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,45 @@ requires-python = ">=3.12"
77
dependencies = [
88
"django>=5.1.5",
99
]
10+
11+
[project.optional-dependencies]
12+
dev = [
13+
"ruff>=0.3.0",
14+
"isort>=5.0.0"
15+
]
16+
17+
[tool.ruff]
18+
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
19+
select = ["E", "F"]
20+
# Allow autofix for all enabled rules (when `--fix`) is provided.
21+
fixable = ["ALL"]
22+
# Exclude a variety of commonly ignored directories.
23+
exclude = [
24+
".bzr",
25+
".direnv",
26+
".eggs",
27+
".git",
28+
".git-rewrite",
29+
".hg",
30+
".mypy_cache",
31+
".nox",
32+
".pants.d",
33+
".pytype",
34+
".ruff_cache",
35+
".svn",
36+
".tox",
37+
".venv",
38+
"__pypackages__",
39+
"_build",
40+
"buck-out",
41+
"build",
42+
"dist",
43+
"node_modules",
44+
"venv",
45+
]
46+
# Same as Black.
47+
line-length = 88
48+
# Allow unused variables when underscore-prefixed.
49+
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
50+
# Target Python 3.12.
51+
target-version = "py312"

0 commit comments

Comments
 (0)