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 methods_and_attributes as m
from pybind11_tests import ConstructorStats
......
# -*- coding: utf-8 -*-
from pybind11_tests import modules as m
from pybind11_tests.modules import subsubmodule as ms
from pybind11_tests import ConstructorStats
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import ConstructorStats
from pybind11_tests import multiple_inheritance as m
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import numpy_array as m
......
# -*- coding: utf-8 -*-
import re
import pytest
from pybind11_tests import numpy_dtypes as m
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import numpy_vectorize as m
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import opaque_types as m
from pybind11_tests import ConstructorStats, UserType
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import operators as m
from pybind11_tests import ConstructorStats
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import pickling as m
......
# -*- coding: utf-8 -*-
from __future__ import division
import pytest
import sys
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import sequences_and_iterators as m
from pybind11_tests import ConstructorStats
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import smart_ptr as m
from pybind11_tests import ConstructorStats
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import stl as m
......
# -*- coding: utf-8 -*-
import pytest
import sys
from pybind11_tests import stl_binders as m
......@@ -222,7 +223,8 @@ def test_noncopyable_containers():
for j in range(0, 5):
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):
assert j.value == i
......@@ -233,7 +235,7 @@ def test_noncopyable_containers():
assert nmnc[i][j].value == 10 * j
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():
assert v_i.value == 10 * k_i
vsum += v_i.value
......@@ -247,7 +249,7 @@ def test_noncopyable_containers():
assert numnc[i][j].value == 10 * j
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():
assert v_i.value == 10 * k_i
vsum += v_i.value
......
# -*- coding: utf-8 -*-
from pybind11_tests import tagbased_polymorphic as m
......
# -*- coding: utf-8 -*-
from pybind11_tests import union_ as m
......
# -*- coding: utf-8 -*-
import pytest
from pybind11_tests import virtual_functions as m
......
......@@ -78,4 +78,3 @@ else (EIGEN3_INCLUDE_DIR)
mark_as_advanced(EIGEN3_INCLUDE_DIR)
endif(EIGEN3_INCLUDE_DIR)
# -*- coding: utf-8 -*-
from __future__ import print_function, division
import os
import sys
......@@ -35,4 +36,3 @@ else:
with open(save, 'w') as sf:
sf.write(str(libsize))
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# 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