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
from pybind11_tests import call_policies as m
from pybind11_tests import ConstructorStats
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import callbacks as m
from threading import Thread
......
# -*- coding: utf-8 -*-
from pybind11_tests import chrono as m
import datetime
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import class_ as m
......
# -*- coding: utf-8 -*-
import sys
import test_cmake_build
......
# -*- coding: utf-8 -*-
from pybind11_tests import constants_and_functions as m
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import copy_move_policies as m
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import custom_type_casters as m
......
# -*- coding: utf-8 -*-
from pybind11_tests import docstring_options as m
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import ConstructorStats
......@@ -143,7 +144,7 @@ def test_nonunit_stride_from_python():
counting_3d = np.arange(27.0, dtype=np.float32).reshape((3, 3, 3))
slices = [counting_3d[0, :, :], counting_3d[:, 0, :], counting_3d[:, :, 0]]
for slice_idx, ref_mat in enumerate(slices):
for ref_mat in slices:
np.testing.assert_array_equal(m.double_mat_cm(ref_mat), 2.0 * ref_mat)
np.testing.assert_array_equal(m.double_mat_rm(ref_mat), 2.0 * ref_mat)
......@@ -172,7 +173,7 @@ def test_negative_stride_from_python(msg):
counting_3d = np.arange(27.0, dtype=np.float32).reshape((3, 3, 3))
counting_3d = counting_3d[::-1, ::-1, ::-1]
slices = [counting_3d[0, :, :], counting_3d[:, 0, :], counting_3d[:, :, 0]]
for slice_idx, ref_mat in enumerate(slices):
for ref_mat in slices:
np.testing.assert_array_equal(m.double_mat_cm(ref_mat), 2.0 * ref_mat)
np.testing.assert_array_equal(m.double_mat_rm(ref_mat), 2.0 * ref_mat)
......
# -*- coding: utf-8 -*-
from widget_module import Widget
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import enums as m
......
# -*- coding: utf-8 -*-
import os
import pytest
from pybind11_tests import eval_ as m
......
# -*- coding: utf-8 -*-
# This file is called from 'test_eval.py'
if 'call_test2' in locals():
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import exceptions as m
......
# -*- coding: utf-8 -*-
import pytest
import re
......
# -*- coding: utf-8 -*-
import multiprocessing
import threading
from pybind11_tests import gil_scoped as m
......
# -*- coding: utf-8 -*-
from pybind11_tests import iostream as m
import sys
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import kwargs_and_defaults as m
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import local_bindings as m
......
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