Skip to content

Commit 73ec4a4

Browse files
authored
Merge pull request #10 from nim65s/devel
format
2 parents e60289d + 8b1594e commit 73ec4a4

23 files changed

+218
-139
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# format (Guilhem Saurel, 2022-04-05)
2+
4f6fe74a60b3f740a598fe0059db2c1c7f1fe174

.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/mirrors-clang-format
3+
rev: v13.0.1
4+
hooks:
5+
- id: clang-format
6+
args: [-i, --style=Google]
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v4.1.0
9+
hooks:
10+
- id: check-added-large-files
11+
- id: check-ast
12+
- id: check-executables-have-shebangs
13+
- id: check-json
14+
- id: check-merge-conflict
15+
- id: check-symlinks
16+
- id: check-toml
17+
- id: check-yaml
18+
- id: debug-statements
19+
- id: destroyed-symlinks
20+
- id: detect-private-key
21+
- id: end-of-file-fixer
22+
- id: fix-byte-order-marker
23+
- id: mixed-line-ending
24+
- id: trailing-whitespace
25+
- repo: https://github.com/psf/black
26+
rev: 22.3.0
27+
hooks:
28+
- id: black
29+
- repo: https://github.com/PyCQA/flake8
30+
rev: 4.0.1
31+
hooks:
32+
- id: flake8

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ SET(${PROJECT_NAME}_HEADERS
5656
)
5757

5858
SET(${PROJECT_NAME}_SOURCES
59-
src/inverted-pendulum
60-
src/feedback-controller
59+
src/inverted-pendulum.cpp
60+
src/feedback-controller.cpp
6161
)
6262

6363
ADD_LIBRARY(${PROJECT_NAME} SHARED

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
[![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg)](https://opensource.org/licenses/BSD-2-Clause)
44
[![Pipeline status](https://gitlab.laas.fr/stack-of-tasks/dynamic-graph-tutorial/badges/master/pipeline.svg)](https://gitlab.laas.fr/stack-of-tasks/dynamic-graph-tutorial/commits/master)
5-
[![Coverage report](https://gitlab.laas.fr/stack-of-tasks/dynamic-graph-tutorial/badges/master/coverage.svg?job=doc-coverage)](http://projects.laas.fr/gepetto/doc/stack-of-tasks/dynamic-graph-tutorial/master/coverage/)
6-
5+
[![Coverage report](https://gitlab.laas.fr/stack-of-tasks/dynamic-graph-tutorial/badges/master/coverage.svg?job=doc-coverage)](https://gepettoweb.laas.fr/doc/stack-of-tasks/dynamic-graph-tutorial/master/coverage/)
6+
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
7+
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/stack-of-tasks/dynamic-graph-tutorial/master.svg)](https://results.pre-commit.ci/latest/github/stack-of-tasks/dynamic-graph-tutorial)
78

89
See INSTALL for installation instruction.
910

doc/footer.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@
88
</center>
99
</body>
1010
</head>
11-

doc/header.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
<LINK HREF="package.css" REL="stylesheet" TYPE="text/css">
55
</HEAD>
66
<BODY>
7-

doc/package.css

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ a:link {
4545
color:#0066CC
4646
}
4747

48-
a:hover, a:active {
49-
text-decoration: underline;
48+
a:hover, a:active {
49+
text-decoration: underline;
5050
color: #3C9A35;
5151
}
5252

@@ -57,7 +57,7 @@ a:visited {
5757
}
5858

5959
DIV.memitem
60-
{
60+
{
6161
spacing: 10px;
6262
width:100%;
6363
background:#FFFFFF;
@@ -70,7 +70,7 @@ DIV.memitem
7070
}
7171

7272
DIV.memproto
73-
{
73+
{
7474
width:100%;
7575
background:#F0F0F0;
7676
font-size:100%;
@@ -82,7 +82,7 @@ DIV.memproto
8282
}
8383

8484
DIV.memdoc
85-
{
85+
{
8686
padding: 10px;
8787
width:100%;
8888
font-size:100%;
@@ -189,7 +189,7 @@ DIV.nav
189189
}
190190

191191
DIV.groupHeader
192-
{
192+
{
193193
padding-top: 30px;
194194
padding-bottom: 20px;
195195
background : none;
@@ -214,23 +214,23 @@ DIV.fragment
214214
-moz-border-radius: 8px 8px 8px 8px;
215215
}
216216

217-
.directory p
218-
{
219-
margin: 0px;
220-
white-space: nowrap;
217+
.directory p
218+
{
219+
margin: 0px;
220+
white-space: nowrap;
221221
font-family: 'Lucida Grande','Lucida Sans Unicode',Verdana,Sans-Serif;
222222
font-size: 10pt;
223223
font-weight: normal;
224224
}
225225

226226

227-
.directory h3
228-
{
227+
.directory h3
228+
{
229229
font-family: 'Lucida Grande','Lucida Sans Unicode',Verdana,Sans-Serif;
230-
margin: 0px;
231-
margin-top: 1em;
230+
margin: 0px;
231+
margin-top: 1em;
232232
padding-bottom: 20px;
233-
font-size: 12pt;
233+
font-size: 12pt;
234234
font-variant: small-caps;
235235
text-align: center;
236236
}
@@ -240,4 +240,3 @@ DIV.fragment
240240
text-decoration: none;
241241
color:#0066CC
242242
}
243-

doc/package.dox.cmake

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ ABBREVIATE_BRIEF = "The $name class" \
2323
ALWAYS_DETAILED_SEC = YES
2424
INLINE_INHERITED_MEMB = NO
2525
FULL_PATH_NAMES = NO
26-
STRIP_FROM_PATH =
27-
STRIP_FROM_INC_PATH =
26+
STRIP_FROM_PATH =
27+
STRIP_FROM_INC_PATH =
2828
SHORT_NAMES = NO
2929
JAVADOC_AUTOBRIEF = YES
3030
MULTILINE_CPP_IS_BRIEF = NO
@@ -49,7 +49,7 @@ SORT_MEMBER_DOCS = YES
4949
SORT_BRIEF_DOCS = NO
5050
SORT_BY_SCOPE_NAME = NO
5151
MAX_INITIALIZER_LINES = 30
52-
FILE_VERSION_FILTER =
52+
FILE_VERSION_FILTER =
5353
#---------------------------------------------------------------------------
5454
# configuration options related to warning and progress messages
5555
#---------------------------------------------------------------------------
@@ -59,18 +59,18 @@ WARN_IF_UNDOCUMENTED = YES
5959
WARN_IF_DOC_ERROR = YES
6060
WARN_NO_PARAMDOC = NO
6161
WARN_FORMAT = "$file:$line: $text"
62-
WARN_LOGFILE =
62+
WARN_LOGFILE =
6363
#---------------------------------------------------------------------------
6464
# configuration options related to the input files
6565
#---------------------------------------------------------------------------
6666
RECURSIVE = YES
67-
EXCLUDE =
67+
EXCLUDE =
6868
EXCLUDE_SYMLINKS = NO
69-
EXAMPLE_PATH =
69+
EXAMPLE_PATH =
7070
EXAMPLE_PATTERNS = *
7171
EXAMPLE_RECURSIVE = NO
72-
INPUT_FILTER =
73-
FILTER_PATTERNS =
72+
INPUT_FILTER =
73+
FILTER_PATTERNS =
7474
FILTER_SOURCE_FILES = NO
7575
#---------------------------------------------------------------------------
7676
# configuration options related to source browsing
@@ -80,16 +80,16 @@ FILTER_SOURCE_FILES = NO
8080
#---------------------------------------------------------------------------
8181
ALPHABETICAL_INDEX = NO
8282
COLS_IN_ALPHA_INDEX = 5
83-
IGNORE_PREFIX =
83+
IGNORE_PREFIX =
8484
#---------------------------------------------------------------------------
8585
# configuration options related to the HTML output
8686
#---------------------------------------------------------------------------
8787
GENERATE_HTML = YES
8888
HTML_FILE_EXTENSION = .html
8989
HTML_ALIGN_MEMBERS = YES
9090
GENERATE_HTMLHELP = NO
91-
CHM_FILE =
92-
HHC_LOCATION =
91+
CHM_FILE =
92+
HHC_LOCATION =
9393
GENERATE_CHI = NO
9494
BINARY_TOC = NO
9595
TOC_EXPAND = YES
@@ -105,8 +105,8 @@ LATEX_CMD_NAME = latex
105105
MAKEINDEX_CMD_NAME = makeindex
106106
COMPACT_LATEX = NO
107107
PAPER_TYPE = a4wide
108-
EXTRA_PACKAGES =
109-
LATEX_HEADER =
108+
EXTRA_PACKAGES =
109+
LATEX_HEADER =
110110
PDF_HYPERLINKS = NO
111111
USE_PDFLATEX = NO
112112
LATEX_BATCHMODE = NO
@@ -118,8 +118,8 @@ FORMULA_FONTSIZE = 16
118118
RTF_OUTPUT = rtf
119119
COMPACT_RTF = NO
120120
RTF_HYPERLINKS = NO
121-
RTF_STYLESHEET_FILE =
122-
RTF_EXTENSIONS_FILE =
121+
RTF_STYLESHEET_FILE =
122+
RTF_EXTENSIONS_FILE =
123123
#---------------------------------------------------------------------------
124124
# configuration options related to the man page output
125125
#---------------------------------------------------------------------------
@@ -130,8 +130,8 @@ MAN_LINKS = NO
130130
# configuration options related to the XML output
131131
#---------------------------------------------------------------------------
132132
XML_OUTPUT = xml
133-
XML_SCHEMA =
134-
XML_DTD =
133+
XML_SCHEMA =
134+
XML_DTD =
135135
XML_PROGRAMLISTING = YES
136136
#---------------------------------------------------------------------------
137137
# configuration options for the AutoGen Definitions output
@@ -142,20 +142,20 @@ GENERATE_AUTOGEN_DEF = NO
142142
#---------------------------------------------------------------------------
143143
PERLMOD_LATEX = NO
144144
PERLMOD_PRETTY = YES
145-
PERLMOD_MAKEVAR_PREFIX =
145+
PERLMOD_MAKEVAR_PREFIX =
146146
#---------------------------------------------------------------------------
147-
# Configuration options related to the preprocessor
147+
# Configuration options related to the preprocessor
148148
#---------------------------------------------------------------------------
149149
ENABLE_PREPROCESSING = YES
150150
MACRO_EXPANSION = YES
151151
EXPAND_ONLY_PREDEF = YES
152152
SEARCH_INCLUDES = YES
153-
INCLUDE_PATH =
154-
INCLUDE_FILE_PATTERNS =
155-
EXPAND_AS_DEFINED =
153+
INCLUDE_PATH =
154+
INCLUDE_FILE_PATTERNS =
155+
EXPAND_AS_DEFINED =
156156
SKIP_FUNCTION_MACROS = YES
157157
#---------------------------------------------------------------------------
158-
# Configuration::additions related to external references
158+
# Configuration::additions related to external references
159159
#---------------------------------------------------------------------------
160160
TAGFILES = \
161161
${DYNAMIC_GRAPH_PYTHON_DOCDIR}/html/dynamic-graph-python.doxytag=${DYNAMIC_GRAPH_PYTHON_DOCDIR}/html \
@@ -165,10 +165,10 @@ ALLEXTERNALS = NO
165165
EXTERNAL_GROUPS = YES
166166
PERL_PATH = /usr/bin/perl
167167
#---------------------------------------------------------------------------
168-
# Configuration options related to the dot tool
168+
# Configuration options related to the dot tool
169169
#---------------------------------------------------------------------------
170170
#---------------------------------------------------------------------------
171-
# Configuration::additions related to the search engine
171+
# Configuration::additions related to the search engine
172172
#---------------------------------------------------------------------------
173173
SEARCHENGINE = NO
174174

@@ -197,7 +197,7 @@ GENERATE_TODOLIST = YES
197197
GENERATE_TESTLIST = NO
198198
GENERATE_BUGLIST = NO
199199
GENERATE_DEPRECATEDLIST= YES
200-
ENABLED_SECTIONS =
200+
ENABLED_SECTIONS =
201201
SHOW_USED_FILES = NO
202202
SHOW_DIRECTORIES = NO
203203
#---------------------------------------------------------------------------
@@ -207,7 +207,7 @@ SHOW_DIRECTORIES = NO
207207
# configuration options related to the input files
208208
#---------------------------------------------------------------------------
209209
FILE_PATTERNS = *.hh *.idl
210-
EXCLUDE_PATTERNS =
210+
EXCLUDE_PATTERNS =
211211
INPUT = ${${PROJECT_NAME}_SOURCE_DIR}/include \
212212
${CMAKE_CURRENT_SOURCE_DIR}/additionalDoc
213213

@@ -261,13 +261,13 @@ GENERATE_AUTOGEN_DEF = NO
261261
#---------------------------------------------------------------------------
262262
GENERATE_PERLMOD = NO
263263
#---------------------------------------------------------------------------
264-
# Configuration options related to the preprocessor
264+
# Configuration options related to the preprocessor
265265
#---------------------------------------------------------------------------
266266
#---------------------------------------------------------------------------
267-
# Configuration::additions related to external references
267+
# Configuration::additions related to external references
268268
#---------------------------------------------------------------------------
269269
#---------------------------------------------------------------------------
270-
# Configuration options related to the dot tool
270+
# Configuration options related to the dot tool
271271
#---------------------------------------------------------------------------
272272
CLASS_DIAGRAMS = YES
273273
HIDE_UNDOC_RELATIONS = YES
@@ -283,8 +283,8 @@ CALL_GRAPH = NO
283283
GRAPHICAL_HIERARCHY = YES
284284
DIRECTORY_GRAPH = YES
285285
DOT_IMAGE_FORMAT = png
286-
DOT_PATH =
287-
DOTFILE_DIRS =
286+
DOT_PATH =
287+
DOTFILE_DIRS =
288288
MAX_DOT_GRAPH_DEPTH = 1000
289289
DOT_TRANSPARENT = NO
290290
DOT_MULTI_TARGETS = YES

0 commit comments

Comments
 (0)