File tree Expand file tree Collapse file tree 2 files changed +77
-1
lines changed Expand file tree Collapse file tree 2 files changed +77
-1
lines changed Original file line number Diff line number Diff line change 1
1
# 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
+ ```
Original file line number Diff line number Diff line change @@ -7,3 +7,45 @@ requires-python = ">=3.12"
7
7
dependencies = [
8
8
" django>=5.1.5" ,
9
9
]
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"
You can’t perform that action at this time.
0 commit comments