Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
84fdadfb
Commit
84fdadfb
authored
Jul 12, 2021
by
Henry Schreiner
Committed by
Henry Schreiner
Jul 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update pre-commit hooks
parent
75090647
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
.pre-commit-config.yaml
+6
-5
tests/test_class.py
+1
-1
tests/test_sequences_and_iterators.py
+2
-2
tests/test_stl.py
+1
-1
No files found.
.pre-commit-config.yaml
View file @
84fdadfb
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
repos
:
repos
:
# Standard hooks
# Standard hooks
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v
3.4.0
rev
:
v
4.0.1
hooks
:
hooks
:
-
id
:
check-added-large-files
-
id
:
check-added-large-files
-
id
:
check-case-conflict
-
id
:
check-case-conflict
...
@@ -32,7 +32,7 @@ repos:
...
@@ -32,7 +32,7 @@ repos:
# Black, the code formatter, natively supports pre-commit
# Black, the code formatter, natively supports pre-commit
-
repo
:
https://github.com/psf/black
-
repo
:
https://github.com/psf/black
rev
:
2
0.8b1
rev
:
2
1.6b0
hooks
:
hooks
:
-
id
:
black
-
id
:
black
# By default, this ignores pyi files, though black supports them
# By default, this ignores pyi files, though black supports them
...
@@ -41,13 +41,13 @@ repos:
...
@@ -41,13 +41,13 @@ repos:
# Changes tabs to spaces
# Changes tabs to spaces
-
repo
:
https://github.com/Lucas-C/pre-commit-hooks
-
repo
:
https://github.com/Lucas-C/pre-commit-hooks
rev
:
v1.1.
9
rev
:
v1.1.
10
hooks
:
hooks
:
-
id
:
remove-tabs
-
id
:
remove-tabs
# Flake8 also supports pre-commit natively (same author)
# Flake8 also supports pre-commit natively (same author)
-
repo
:
https://gitlab.com/pycqa/flake8
-
repo
:
https://gitlab.com/pycqa/flake8
rev
:
3.
8.4
rev
:
3.
9.2
hooks
:
hooks
:
-
id
:
flake8
-
id
:
flake8
additional_dependencies
:
[
flake8-bugbear
,
pep8-naming
]
additional_dependencies
:
[
flake8-bugbear
,
pep8-naming
]
...
@@ -64,7 +64,7 @@ repos:
...
@@ -64,7 +64,7 @@ repos:
# Check static types with mypy
# Check static types with mypy
-
repo
:
https://github.com/pre-commit/mirrors-mypy
-
repo
:
https://github.com/pre-commit/mirrors-mypy
rev
:
v0.
80
0
rev
:
v0.
91
0
hooks
:
hooks
:
-
id
:
mypy
-
id
:
mypy
# The default Python type ignores .pyi files, so let's rerun if detected
# The default Python type ignores .pyi files, so let's rerun if detected
...
@@ -72,6 +72,7 @@ repos:
...
@@ -72,6 +72,7 @@ repos:
files
:
^pybind11.*\.pyi?$
files
:
^pybind11.*\.pyi?$
# Running per-file misbehaves a bit, so just run on all files, it's fast
# Running per-file misbehaves a bit, so just run on all files, it's fast
pass_filenames
:
false
pass_filenames
:
false
additional_dependencies
:
[
typed_ast
]
# Checks the manifest for missing files (native support)
# Checks the manifest for missing files (native support)
-
repo
:
https://github.com/mgedmin/check-manifest
-
repo
:
https://github.com/mgedmin/check-manifest
...
...
tests/test_class.py
View file @
84fdadfb
...
@@ -321,7 +321,7 @@ def test_bind_protected_functions():
...
@@ -321,7 +321,7 @@ def test_bind_protected_functions():
def
test_brace_initialization
():
def
test_brace_initialization
():
"""
Tests that simple POD classes can be constructed using C++11 brace initialization
"""
"""
Tests that simple POD classes can be constructed using C++11 brace initialization
"""
a
=
m
.
BraceInitialization
(
123
,
"test"
)
a
=
m
.
BraceInitialization
(
123
,
"test"
)
assert
a
.
field1
==
123
assert
a
.
field1
==
123
assert
a
.
field2
==
"test"
assert
a
.
field2
==
"test"
...
...
tests/test_sequences_and_iterators.py
View file @
84fdadfb
...
@@ -104,7 +104,7 @@ def test_sequence():
...
@@ -104,7 +104,7 @@ def test_sequence():
def
test_sequence_length
():
def
test_sequence_length
():
"""#2076: Exception raised by len(arg) should be propagated
"""
"""#2076: Exception raised by len(arg) should be propagated"""
class
BadLen
(
RuntimeError
):
class
BadLen
(
RuntimeError
):
pass
pass
...
@@ -187,7 +187,7 @@ def test_iterator_passthrough():
...
@@ -187,7 +187,7 @@ def test_iterator_passthrough():
def
test_iterator_rvp
():
def
test_iterator_rvp
():
"""#388: Can't make iterators via make_iterator() with different r/v policies
"""
"""#388: Can't make iterators via make_iterator() with different r/v policies"""
import
pybind11_tests.sequences_and_iterators
as
m
import
pybind11_tests.sequences_and_iterators
as
m
assert
list
(
m
.
make_iterator_1
())
==
[
1
,
2
,
3
]
assert
list
(
m
.
make_iterator_1
())
==
[
1
,
2
,
3
]
...
...
tests/test_stl.py
View file @
84fdadfb
...
@@ -278,7 +278,7 @@ def test_array_cast_sequence():
...
@@ -278,7 +278,7 @@ def test_array_cast_sequence():
def
test_issue_1561
():
def
test_issue_1561
():
"""
check fix for issue #1561
"""
"""
check fix for issue #1561
"""
bar
=
m
.
Issue1561Outer
()
bar
=
m
.
Issue1561Outer
()
bar
.
list
=
[
m
.
Issue1561Inner
(
"bar"
)]
bar
.
list
=
[
m
.
Issue1561Inner
(
"bar"
)]
bar
.
list
bar
.
list
...
...
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