File tree Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ $ git submodule update -i
18
18
Python を使っているので、依存するライブラリを以下のようにインストールします。
19
19
20
20
```
21
+ $ pip install --upgrade pip
21
22
$ pip install -r requirements.txt
22
23
```
23
24
@@ -26,12 +27,13 @@ $ pip install -r requirements.txt
26
27
```
27
28
$ virtualenv venv
28
29
$ source venv/bin/activate
30
+ $ pip install --upgrade pip
29
31
$ pip install -r requirements.txt
30
32
```
31
33
32
34
### cpprefjp の場合
33
35
34
- ``` python
36
+ ```
35
37
$ git clone https://github.com/cpprefjp/site.git cpprefjp/site
36
38
$ ./run.py settings.cpprefjp_local
37
39
$ ./localhost.sh cpprefjp/cpprefjp.github.io
@@ -42,7 +44,7 @@ http://localhost:8000 を開けば `index.html` が表示されます。
42
44
43
45
### boostjp の場合
44
46
45
- ``` python
47
+ ```
46
48
$ git clone https://github.com/boostjp/site.git boostjp/site
47
49
$ ./run.py settings.boostjp_local
48
50
$ ./localhost.sh boostjp/boostjp.github.io
@@ -51,3 +53,8 @@ $ ./localhost.sh boostjp/boostjp.github.io
51
53
これでローカルサーバが起動します。
52
54
http://localhost:8000 を開けば ` index.html ` が表示されます。
53
55
56
+ ## コーディング規約(開発者向け)
57
+
58
+ ルールは1つです。
59
+ ` ./coding.sh ` を実行してエラーが出ないようにして下さい。
60
+ これはPEP8、Flake8、Hackingあたりの規約を少し緩めて混ぜた規約になっています。
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ flake8 ` find . -name ' *.py' ` | more
Original file line number Diff line number Diff line change
1
+ flake8 == 2.2.4
2
+ flake8-import-order == 0.7
3
+ hacking == 0.10.2
4
+ htmlmin == 0.1.5
1
5
Jinja2 == 2.7.3
2
6
Markdown == 2.3.1
3
7
MarkupSafe == 0.23
4
- htmlmin == 0.1.5
5
- wsgiref == 0.1.2
8
+ mccabe == 0.2.1
9
+ pbr == 1.8.1
10
+ pep8 == 1.5.7
11
+ pyflakes == 0.8.1
6
12
Pygments == 1.6
13
+ six == 1.10.0
Original file line number Diff line number Diff line change
1
+ [flake8]
2
+ ignore = E501,H304,I100
You can’t perform that action at this time.
0 commit comments