Flake8 lints.
This commit is contained in:
@@ -5,3 +5,4 @@
|
|||||||
# Install pylint with 'pip install pylint'.
|
# Install pylint with 'pip install pylint'.
|
||||||
cd $(dirname "$0")
|
cd $(dirname "$0")
|
||||||
pylint --py3k --reports=no -- *.py cretonne isa
|
pylint --py3k --reports=no -- *.py cretonne isa
|
||||||
|
flake8 .
|
||||||
|
|||||||
@@ -71,7 +71,8 @@ def gen_instruction_data_impl(fmt):
|
|||||||
.format(f.name))
|
.format(f.name))
|
||||||
|
|
||||||
fmt.doc_comment('Mutable reference to the type of the first result.')
|
fmt.doc_comment('Mutable reference to the type of the first result.')
|
||||||
with fmt.indented('pub fn first_type_mut(&mut self) -> &mut Type {', '}'):
|
with fmt.indented(
|
||||||
|
'pub fn first_type_mut(&mut self) -> &mut Type {', '}'):
|
||||||
with fmt.indented('match *self {', '}'):
|
with fmt.indented('match *self {', '}'):
|
||||||
for f in cretonne.InstructionFormat.all_formats:
|
for f in cretonne.InstructionFormat.all_formats:
|
||||||
fmt.line(
|
fmt.line(
|
||||||
@@ -152,7 +153,8 @@ def gen_instruction_data_impl(fmt):
|
|||||||
if f.boxed_storage:
|
if f.boxed_storage:
|
||||||
fmt.line(
|
fmt.line(
|
||||||
n +
|
n +
|
||||||
' {{ ref data, .. }} => Some(data.args[{}]),'
|
' {{ ref data, .. }} => ' +
|
||||||
|
'Some(data.args[{}]),'
|
||||||
.format(i))
|
.format(i))
|
||||||
else:
|
else:
|
||||||
fmt.line(
|
fmt.line(
|
||||||
|
|||||||
Reference in New Issue
Block a user