File tree Expand file tree Collapse file tree 4 files changed +31
-13
lines changed Expand file tree Collapse file tree 4 files changed +31
-13
lines changed Original file line number Diff line number Diff line change @@ -51,5 +51,10 @@ repos:
5151 hooks :
5252 - id : typos
5353
54+ - repo : https://github.com/google/yapf.git
55+ rev : v0.43.0
56+ hooks :
57+ - id : yapf
58+
5459
5560... # EOF
Original file line number Diff line number Diff line change 1+ #
2+
3+
4+ [style]
5+
6+ based_on_style = pep8
7+ blank_line_before_class_docstring = false
8+ blank_line_before_nested_class_or_def = true
9+ blank_line_before_module_docstring = true
10+ dedent_closing_brackets = true
11+
12+
13+ # EOF
Original file line number Diff line number Diff line change 11""" Sphinx documentation generator configuration
22"""
33
4-
54AUTHOR = 'sinoroc'
65MASTER_DOCUMENT = 'contents'
76SUBTITLE = 'Bits of knowledge'
87TITLE = 'Sinoroc KB'
98
10-
119#
1210# General
1311#
2624 'src/_templates' ,
2725]
2826
29-
3027#
3128# Project
3229#
3330
3431project = TITLE
3532
36-
3733#
3834# HTML
3935#
5955html_use_modindex = False
6056html_use_index = False
6157
62-
6358#
6459# Latex
6560#
6661
67- latex_documents = [(
68- MASTER_DOCUMENT ,
69- '{}.tex' .format (TITLE .lower ().replace (' ' , '' )),
70- TITLE ,
71- AUTHOR ,
72- 'manual' ,
73- )]
62+ latex_documents = [
63+ (
64+ MASTER_DOCUMENT ,
65+ '{}.tex' .format (TITLE .lower ().replace (' ' , '' )),
66+ TITLE ,
67+ AUTHOR ,
68+ 'manual' ,
69+ )
70+ ]
7471
7572latex_elements = {
7673 'papersize' : 'a4paper' ,
8178
8279latex_toplevel_sectioning = 'part'
8380
84-
8581# EOF
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
3+
34class Injector :
45
56 def __init__ (self , multiple , word ):
@@ -12,6 +13,7 @@ def __call__(self, value):
1213 result = self ._output
1314 return result
1415
16+
1517def fizz_buzz (start , end ):
1618 injectors = [
1719 Injector (3 , 'Fizz' ),
@@ -34,9 +36,11 @@ def fizz_buzz(start, end):
3436 #
3537 print (output )
3638
39+
3740def main ():
3841 fizz_buzz (1 , 50 )
3942
43+
4044if __name__ == '__main__' :
4145 main ()
4246
You can’t perform that action at this time.
0 commit comments