Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
d8c7ee00
Unverified
Commit
d8c7ee00
authored
Jul 20, 2020
by
Henry Schreiner
Committed by
GitHub
Jul 20, 2020
Browse files
ci: GHA basic format & pre-commit (#2309)
parent
e2488698
Changes
60
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
23 additions
and
5 deletions
+23
-5
tests/test_methods_and_attributes.py
tests/test_methods_and_attributes.py
+1
-0
tests/test_modules.py
tests/test_modules.py
+1
-0
tests/test_multiple_inheritance.py
tests/test_multiple_inheritance.py
+1
-0
tests/test_numpy_array.py
tests/test_numpy_array.py
+1
-0
tests/test_numpy_dtypes.py
tests/test_numpy_dtypes.py
+1
-0
tests/test_numpy_vectorize.py
tests/test_numpy_vectorize.py
+1
-0
tests/test_opaque_types.py
tests/test_opaque_types.py
+1
-0
tests/test_operator_overloading.py
tests/test_operator_overloading.py
+1
-0
tests/test_pickling.py
tests/test_pickling.py
+1
-0
tests/test_pytypes.py
tests/test_pytypes.py
+1
-0
tests/test_sequences_and_iterators.py
tests/test_sequences_and_iterators.py
+1
-0
tests/test_smart_ptr.py
tests/test_smart_ptr.py
+1
-0
tests/test_stl.py
tests/test_stl.py
+1
-0
tests/test_stl_binders.py
tests/test_stl_binders.py
+5
-3
tests/test_tagbased_polymorphic.py
tests/test_tagbased_polymorphic.py
+1
-0
tests/test_union.py
tests/test_union.py
+1
-0
tests/test_virtual_functions.py
tests/test_virtual_functions.py
+1
-0
tools/FindEigen3.cmake
tools/FindEigen3.cmake
+0
-1
tools/libsize.py
tools/libsize.py
+1
-1
tools/mkdoc.py
tools/mkdoc.py
+1
-0
No files found.
tests/test_methods_and_attributes.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
methods_and_attributes
as
m
from
pybind11_tests
import
methods_and_attributes
as
m
from
pybind11_tests
import
ConstructorStats
from
pybind11_tests
import
ConstructorStats
...
...
tests/test_modules.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
from
pybind11_tests
import
modules
as
m
from
pybind11_tests
import
modules
as
m
from
pybind11_tests.modules
import
subsubmodule
as
ms
from
pybind11_tests.modules
import
subsubmodule
as
ms
from
pybind11_tests
import
ConstructorStats
from
pybind11_tests
import
ConstructorStats
...
...
tests/test_multiple_inheritance.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
ConstructorStats
from
pybind11_tests
import
ConstructorStats
from
pybind11_tests
import
multiple_inheritance
as
m
from
pybind11_tests
import
multiple_inheritance
as
m
...
...
tests/test_numpy_array.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
numpy_array
as
m
from
pybind11_tests
import
numpy_array
as
m
...
...
tests/test_numpy_dtypes.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
re
import
re
import
pytest
import
pytest
from
pybind11_tests
import
numpy_dtypes
as
m
from
pybind11_tests
import
numpy_dtypes
as
m
...
...
tests/test_numpy_vectorize.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
numpy_vectorize
as
m
from
pybind11_tests
import
numpy_vectorize
as
m
...
...
tests/test_opaque_types.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
opaque_types
as
m
from
pybind11_tests
import
opaque_types
as
m
from
pybind11_tests
import
ConstructorStats
,
UserType
from
pybind11_tests
import
ConstructorStats
,
UserType
...
...
tests/test_operator_overloading.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
operators
as
m
from
pybind11_tests
import
operators
as
m
from
pybind11_tests
import
ConstructorStats
from
pybind11_tests
import
ConstructorStats
...
...
tests/test_pickling.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
pickling
as
m
from
pybind11_tests
import
pickling
as
m
...
...
tests/test_pytypes.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
from
__future__
import
division
from
__future__
import
division
import
pytest
import
pytest
import
sys
import
sys
...
...
tests/test_sequences_and_iterators.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
sequences_and_iterators
as
m
from
pybind11_tests
import
sequences_and_iterators
as
m
from
pybind11_tests
import
ConstructorStats
from
pybind11_tests
import
ConstructorStats
...
...
tests/test_smart_ptr.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
smart_ptr
as
m
from
pybind11_tests
import
smart_ptr
as
m
from
pybind11_tests
import
ConstructorStats
from
pybind11_tests
import
ConstructorStats
...
...
tests/test_stl.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
stl
as
m
from
pybind11_tests
import
stl
as
m
...
...
tests/test_stl_binders.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
import
sys
import
sys
from
pybind11_tests
import
stl_binders
as
m
from
pybind11_tests
import
stl_binders
as
m
...
@@ -222,7 +223,8 @@ def test_noncopyable_containers():
...
@@ -222,7 +223,8 @@ def test_noncopyable_containers():
for
j
in
range
(
0
,
5
):
for
j
in
range
(
0
,
5
):
assert
nvnc
[
i
][
j
].
value
==
j
+
1
assert
nvnc
[
i
][
j
].
value
==
j
+
1
for
k
,
v
in
nvnc
.
items
():
# Note: maps do not have .values()
for
_
,
v
in
nvnc
.
items
():
for
i
,
j
in
enumerate
(
v
,
start
=
1
):
for
i
,
j
in
enumerate
(
v
,
start
=
1
):
assert
j
.
value
==
i
assert
j
.
value
==
i
...
@@ -233,7 +235,7 @@ def test_noncopyable_containers():
...
@@ -233,7 +235,7 @@ def test_noncopyable_containers():
assert
nmnc
[
i
][
j
].
value
==
10
*
j
assert
nmnc
[
i
][
j
].
value
==
10
*
j
vsum
=
0
vsum
=
0
for
k_o
,
v_o
in
nmnc
.
items
():
for
_
,
v_o
in
nmnc
.
items
():
for
k_i
,
v_i
in
v_o
.
items
():
for
k_i
,
v_i
in
v_o
.
items
():
assert
v_i
.
value
==
10
*
k_i
assert
v_i
.
value
==
10
*
k_i
vsum
+=
v_i
.
value
vsum
+=
v_i
.
value
...
@@ -247,7 +249,7 @@ def test_noncopyable_containers():
...
@@ -247,7 +249,7 @@ def test_noncopyable_containers():
assert
numnc
[
i
][
j
].
value
==
10
*
j
assert
numnc
[
i
][
j
].
value
==
10
*
j
vsum
=
0
vsum
=
0
for
k_o
,
v_o
in
numnc
.
items
():
for
_
,
v_o
in
numnc
.
items
():
for
k_i
,
v_i
in
v_o
.
items
():
for
k_i
,
v_i
in
v_o
.
items
():
assert
v_i
.
value
==
10
*
k_i
assert
v_i
.
value
==
10
*
k_i
vsum
+=
v_i
.
value
vsum
+=
v_i
.
value
...
...
tests/test_tagbased_polymorphic.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
from
pybind11_tests
import
tagbased_polymorphic
as
m
from
pybind11_tests
import
tagbased_polymorphic
as
m
...
...
tests/test_union.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
from
pybind11_tests
import
union_
as
m
from
pybind11_tests
import
union_
as
m
...
...
tests/test_virtual_functions.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
virtual_functions
as
m
from
pybind11_tests
import
virtual_functions
as
m
...
...
tools/FindEigen3.cmake
View file @
d8c7ee00
...
@@ -78,4 +78,3 @@ else (EIGEN3_INCLUDE_DIR)
...
@@ -78,4 +78,3 @@ else (EIGEN3_INCLUDE_DIR)
mark_as_advanced
(
EIGEN3_INCLUDE_DIR
)
mark_as_advanced
(
EIGEN3_INCLUDE_DIR
)
endif
(
EIGEN3_INCLUDE_DIR
)
endif
(
EIGEN3_INCLUDE_DIR
)
tools/libsize.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
from
__future__
import
print_function
,
division
from
__future__
import
print_function
,
division
import
os
import
os
import
sys
import
sys
...
@@ -35,4 +36,3 @@ else:
...
@@ -35,4 +36,3 @@ else:
with
open
(
save
,
'w'
)
as
sf
:
with
open
(
save
,
'w'
)
as
sf
:
sf
.
write
(
str
(
libsize
))
sf
.
write
(
str
(
libsize
))
tools/mkdoc.py
View file @
d8c7ee00
#!/usr/bin/env python3
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
#
# Syntax: mkdoc.py [-I<path> ..] [.. a list of header files ..]
# Syntax: mkdoc.py [-I<path> ..] [.. a list of header files ..]
#
#
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment