Unverified Commit d8c7ee00 authored by Henry Schreiner's avatar Henry Schreiner Committed by GitHub
Browse files

ci: GHA basic format & pre-commit (#2309)

parent e2488698
# -*- 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
......
# -*- 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
......
# -*- 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
......
# -*- coding: utf-8 -*-
import pytest import pytest
from pybind11_tests import numpy_array as m from pybind11_tests import numpy_array as m
......
# -*- 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
......
# -*- coding: utf-8 -*-
import pytest import pytest
from pybind11_tests import numpy_vectorize as m from pybind11_tests import numpy_vectorize as m
......
# -*- 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
......
# -*- 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
......
# -*- coding: utf-8 -*-
import pytest import pytest
from pybind11_tests import pickling as m from pybind11_tests import pickling as m
......
# -*- coding: utf-8 -*-
from __future__ import division from __future__ import division
import pytest import pytest
import sys import sys
......
# -*- 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
......
# -*- 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
......
# -*- coding: utf-8 -*-
import pytest import pytest
from pybind11_tests import stl as m from pybind11_tests import stl as m
......
# -*- 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
......
# -*- coding: utf-8 -*-
from pybind11_tests import tagbased_polymorphic as m from pybind11_tests import tagbased_polymorphic as m
......
# -*- coding: utf-8 -*-
from pybind11_tests import union_ as m from pybind11_tests import union_ as m
......
# -*- coding: utf-8 -*-
import pytest import pytest
from pybind11_tests import virtual_functions as m from pybind11_tests import virtual_functions as m
......
...@@ -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)
# -*- 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))
#!/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 ..]
# #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment