Skip to content

Commit df554b8

Browse files
authored
Merge branch 'develop' into add-interprocess-virtual-bus
2 parents 66c2f5d + 8112d13 commit df554b8

100 files changed

Lines changed: 6550 additions & 3602 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pylintrc-wip

Lines changed: 18 additions & 307 deletions
Original file line numberDiff line numberDiff line change
@@ -60,338 +60,49 @@ confidence=
6060
# --enable=similarities". If you want to run only the classes checker, but have
6161
# no Warning level messages displayed, use "--disable=all --enable=classes
6262
# --disable=W".
63-
disable=blacklisted-name,
64-
invalid-name,
63+
disable=invalid-name,
6564
missing-docstring,
6665
empty-docstring,
67-
unneeded-not,
68-
singleton-comparison,
69-
misplaced-comparison-constant,
70-
unidiomatic-typecheck,
71-
consider-using-enumerate,
72-
consider-iterating-dictionary,
73-
bad-classmethod-argument,
74-
bad-mcs-method-argument,
75-
bad-mcs-classmethod-argument,
76-
single-string-used-for-slots,
7766
line-too-long,
7867
too-many-lines,
79-
trailing-whitespace,
80-
missing-final-newline,
81-
trailing-newlines,
82-
multiple-statements,
83-
superfluous-parens,
8468
bad-whitespace,
85-
mixed-line-endings,
86-
unexpected-line-ending-format,
8769
bad-continuation,
88-
wrong-spelling-in-comment,
89-
wrong-spelling-in-docstring,
90-
invalid-characters-in-docstring,
91-
multiple-imports,
9270
wrong-import-order,
9371
ungrouped-imports,
9472
wrong-import-position,
95-
useless-import-alias,
96-
len-as-condition,
97-
syntax-error,
98-
unrecognized-inline-option,
99-
bad-option-value,
100-
init-is-generator,
101-
return-in-init,
102-
function-redefined,
103-
not-in-loop,
104-
return-outside-function,
105-
yield-outside-function,
106-
return-arg-in-generator,
107-
nonexistent-operator,
108-
duplicate-argument-name,
109-
abstract-class-instantiated,
110-
bad-reversed-sequence,
111-
too-many-star-expressions,
112-
invalid-star-assignment-target,
113-
star-needs-assignment-target,
114-
nonlocal-and-global,
115-
continue-in-finally,
116-
nonlocal-without-binding,
117-
used-prior-global-declaration,
118-
misplaced-format-function,
119-
method-hidden,
120-
access-member-before-definition,
121-
no-method-argument,
122-
no-self-argument,
123-
invalid-slots-object,
124-
assigning-non-slot,
125-
invalid-slots,
126-
inherit-non-class,
127-
inconsistent-mro,
128-
duplicate-bases,
129-
non-iterator-returned,
130-
unexpected-special-method-signature,
131-
invalid-length-returned,
132-
import-error,
133-
relative-beyond-top-level,
134-
used-before-assignment,
135-
undefined-variable,
136-
undefined-all-variable,
137-
invalid-all-object,
138-
no-name-in-module,
139-
unpacking-non-sequence,
140-
bad-except-order,
141-
raising-bad-type,
142-
bad-exception-context,
143-
misplaced-bare-raise,
144-
raising-non-exception,
145-
notimplemented-raised,
146-
catching-non-exception,
147-
bad-super-call,
148-
missing-super-argument,
149-
no-member,
150-
not-callable,
151-
assignment-from-no-return,
152-
no-value-for-parameter,
15373
too-many-function-args,
154-
unexpected-keyword-arg,
155-
redundant-keyword-arg,
156-
missing-kwoa,
157-
invalid-sequence-index,
158-
invalid-slice-index,
159-
assignment-from-none,
160-
not-context-manager,
161-
invalid-unary-operand-type,
162-
unsupported-binary-operation,
163-
repeated-keyword,
164-
not-an-iterable,
165-
not-a-mapping,
166-
unsupported-membership-test,
167-
unsubscriptable-object,
168-
unsupported-assignment-operation,
169-
unsupported-delete-operation,
170-
invalid-metaclass,
171-
unhashable-dict-key,
172-
logging-unsupported-format,
173-
logging-format-truncated,
174-
logging-too-many-args,
175-
logging-too-few-args,
176-
bad-format-character,
177-
truncated-format-string,
178-
mixed-format-string,
179-
format-needs-mapping,
180-
missing-format-string-key,
181-
too-many-format-args,
182-
too-few-format-args,
183-
bad-string-format-type,
184-
bad-str-strip-call,
185-
invalid-envvar-value,
186-
print-statement,
187-
parameter-unpacking,
188-
unpacking-in-except,
189-
old-raise-syntax,
190-
backtick,
191-
long-suffix,
192-
old-ne-operator,
193-
old-octal-literal,
194-
import-star-module-level,
195-
non-ascii-bytes-literal,
196-
yield-inside-async-function,
197-
not-async-context-manager,
198-
fatal,
199-
astroid-error,
200-
parse-error,
201-
method-check-failed,
202-
raw-checker-failed,
203-
bad-inline-option,
20474
locally-disabled,
205-
file-ignored,
206-
suppressed-message,
207-
useless-suppression,
208-
deprecated-pragma,
209-
use-symbolic-message-instead,
210-
c-extension-no-member,
211-
literal-comparison,
212-
comparison-with-itself,
213-
no-self-use,
214-
no-classmethod-decorator,
215-
no-staticmethod-decorator,
216-
useless-object-inheritance,
217-
cyclic-import,
218-
duplicate-code,
219-
too-many-ancestors,
22075
too-many-instance-attributes,
22176
too-few-public-methods,
22277
too-many-public-methods,
223-
too-many-return-statements,
22478
too-many-branches,
22579
too-many-arguments,
22680
too-many-locals,
22781
too-many-statements,
228-
too-many-boolean-expressions,
229-
consider-merging-isinstance,
23082
too-many-nested-blocks,
231-
simplifiable-if-statement,
232-
redefined-argument-from-local,
233-
no-else-return,
234-
consider-using-ternary,
235-
trailing-comma-tuple,
236-
stop-iteration-return,
237-
simplify-boolean-expression,
238-
inconsistent-return-statements,
239-
useless-return,
240-
consider-swap-variables,
241-
consider-using-join,
242-
consider-using-in,
243-
consider-using-get,
244-
chained-comparison,
245-
consider-using-dict-comprehension,
246-
consider-using-set-comprehension,
247-
simplifiable-if-expression,
24883
no-else-raise,
249-
unreachable,
250-
dangerous-default-value,
251-
pointless-statement,
252-
pointless-string-statement,
253-
expression-not-assigned,
254-
unnecessary-pass,
255-
unnecessary-lambda,
256-
duplicate-key,
257-
assign-to-new-keyword,
258-
useless-else-on-loop,
259-
exec-used,
260-
eval-used,
261-
confusing-with-statement,
262-
using-constant-test,
263-
comparison-with-callable,
264-
lost-exception,
265-
assert-on-tuple,
266-
attribute-defined-outside-init,
267-
bad-staticmethod-argument,
268-
protected-access,
269-
arguments-differ,
270-
signature-differs,
271-
abstract-method,
272-
super-init-not-called,
273-
no-init,
274-
non-parent-init-called,
275-
useless-super-delegation,
276-
unnecessary-semicolon,
27784
bad-indentation,
278-
mixed-indentation,
27985
wildcard-import,
280-
deprecated-module,
281-
relative-import,
282-
reimported,
283-
import-self,
284-
misplaced-future,
28586
fixme,
286-
invalid-encoded-data,
287-
global-variable-undefined,
288-
global-variable-not-assigned,
289-
global-statement,
290-
global-at-module-level,
291-
unused-import,
292-
unused-variable,
293-
unused-argument,
294-
unused-wildcard-import,
295-
redefined-outer-name,
296-
redefined-builtin,
297-
redefine-in-handler,
298-
undefined-loop-variable,
299-
unbalanced-tuple-unpacking,
300-
cell-var-from-loop,
301-
possibly-unused-variable,
302-
self-cls-assignment,
303-
bare-except,
30487
broad-except,
305-
duplicate-except,
306-
try-except-raise,
307-
binary-op-exception,
308-
raising-format-tuple,
309-
wrong-exception-operation,
310-
keyword-arg-before-vararg,
311-
logging-not-lazy,
312-
logging-format-interpolation,
88+
redefined-builtin,
89+
no-else-return,
90+
redefined-argument-from-local,
91+
abstract-class-instantiated,
92+
multiple-statements,
93+
cyclic-import,
94+
useless-else-on-loop,
95+
duplicate-code,
96+
inconsistent-return-statements,
97+
arguments-differ,
98+
unused-wildcard-import,
31399
logging-fstring-interpolation,
314-
bad-format-string-key,
315-
unused-format-string-key,
316-
bad-format-string,
317-
missing-format-argument-key,
318-
unused-format-string-argument,
319-
format-combined-specification,
320-
missing-format-attribute,
321-
invalid-format-index,
322-
duplicate-string-formatting-argument,
323-
anomalous-backslash-in-string,
324-
anomalous-unicode-escape-in-string,
325-
implicit-str-concat-in-sequence,
326-
bad-open-mode,
327-
boolean-datetime,
328-
redundant-unittest-assert,
329-
deprecated-method,
330-
bad-thread-instantiation,
331-
shallow-copy-environ,
332-
invalid-envvar-default,
333-
subprocess-popen-preexec-fn,
334-
apply-builtin,
335-
basestring-builtin,
336-
buffer-builtin,
337-
cmp-builtin,
338-
coerce-builtin,
339-
execfile-builtin,
340-
file-builtin,
341-
long-builtin,
342-
raw_input-builtin,
343-
reduce-builtin,
344-
standarderror-builtin,
345-
unicode-builtin,
346-
xrange-builtin,
347-
coerce-method,
348-
delslice-method,
349-
getslice-method,
350-
setslice-method,
351-
no-absolute-import,
352-
old-division,
353-
dict-iter-method,
354-
dict-view-method,
355-
next-method-called,
356-
metaclass-assignment,
357-
indexing-exception,
358-
raising-string,
359-
reload-builtin,
360-
oct-method,
361-
hex-method,
362-
nonzero-method,
363-
cmp-method,
364-
input-builtin,
365-
round-builtin,
366-
intern-builtin,
367-
unichr-builtin,
368-
map-builtin-not-iterating,
369-
zip-builtin-not-iterating,
370-
range-builtin-not-iterating,
371-
filter-builtin-not-iterating,
372-
using-cmp-argument,
373-
eq-without-hash,
374-
div-method,
375-
idiv-method,
376-
rdiv-method,
377-
exception-message-attribute,
378-
invalid-str-codec,
379-
sys-max-int,
380-
bad-python3-import,
381-
deprecated-string-function,
382-
deprecated-str-translate-call,
383-
deprecated-itertools-function,
384-
deprecated-types-field,
385-
next-method-defined,
386-
dict-items-not-iterating,
387-
dict-keys-not-iterating,
388-
dict-values-not-iterating,
389-
deprecated-operator-function,
390-
deprecated-urllib-function,
391-
xreadlines-attribute,
392-
deprecated-sys-function,
393-
exception-escape,
394-
comprehension-escape
100+
logging-format-interpolation,
101+
unused-argument,
102+
abstract-method,
103+
attribute-defined-outside-init,
104+
protected-access,
105+
keyword-arg-before-vararg
395106

396107
# Enable the message, report, category or checker with the given id(s). You can
397108
# either give multiple identifier separated by comma (,) or put this option

.travis.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,6 @@ jobs:
6363
os: osx
6464
osx_image: xcode8.3
6565
python: 3.6-dev
66-
- stage: test
67-
os: osx
68-
osx_image: xcode8.3
69-
python: 3.7-dev
70-
- stage: test
71-
os: osx
72-
osx_image: xcode8.3
73-
python: nightly
7466

7567
- stage: documentation
7668
name: "Sphinx Build"
@@ -92,6 +84,13 @@ jobs:
9284
# warnings to the .pylintrc-wip file to prevent them from being
9385
# re-introduced
9486
- pylint --rcfile=.pylintrc-wip can/
87+
- stage: linter
88+
name: "Formatting Checks"
89+
python: "3.7"
90+
before_install:
91+
- travis_retry pip install -r requirements-lint.txt
92+
script:
93+
- black --check --verbose .
9594
- stage: deploy
9695
name: "PyPi Deployment"
9796
python: "3.7"

CONTRIBUTORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ Alexander Mueller<XelaRellum@web.de>
2727
Jan Goeteyn
2828
"ykzheng" <wishdo@gmail.com>
2929
Lear Corporation
30+
Nick Black <dank@qemfd.net>

0 commit comments

Comments
 (0)