mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
Add checks to maintain a consistent Python code style and prevent bugs (#515)
A flake8 configuration is included in setup.cfg and the checks are executed automatically on Travis: * Ensures a consistent PEP8 code style * Does basic linting to prevent possible bugs
This commit is contained in:
committed by
Wenzel Jakob
parent
df81546965
commit
bad1740213
@@ -1,7 +1,6 @@
|
||||
import pytest
|
||||
|
||||
|
||||
def test_multiple_inheritance_cpp(msg):
|
||||
def test_multiple_inheritance_cpp():
|
||||
from pybind11_tests import MIType
|
||||
|
||||
mt = MIType(3, 4)
|
||||
@@ -10,7 +9,7 @@ def test_multiple_inheritance_cpp(msg):
|
||||
assert mt.bar() == 4
|
||||
|
||||
|
||||
def test_multiple_inheritance_mix1(msg):
|
||||
def test_multiple_inheritance_mix1():
|
||||
from pybind11_tests import Base2
|
||||
|
||||
class Base1:
|
||||
@@ -31,7 +30,7 @@ def test_multiple_inheritance_mix1(msg):
|
||||
assert mt.bar() == 4
|
||||
|
||||
|
||||
def test_multiple_inheritance_mix2(msg):
|
||||
def test_multiple_inheritance_mix2():
|
||||
from pybind11_tests import Base1
|
||||
|
||||
class Base2:
|
||||
@@ -52,7 +51,7 @@ def test_multiple_inheritance_mix2(msg):
|
||||
assert mt.bar() == 4
|
||||
|
||||
|
||||
def test_multiple_inheritance_virtbase(msg):
|
||||
def test_multiple_inheritance_virtbase():
|
||||
from pybind11_tests import Base12a, bar_base2a, bar_base2a_sharedptr
|
||||
|
||||
class MITypePy(Base12a):
|
||||
|
||||
Reference in New Issue
Block a user