Skip to content

Commit e2a15c7

Browse files
authored
Merge pull request #4692 from nicoddemus/merge-master-into-features
Merge master into features
2 parents 1dc16ad + 02962fa commit e2a15c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+483
-156
lines changed

.pre-commit-config.yaml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exclude: doc/en/example/py2py3/test_py2.py
22
repos:
33
- repo: https://github.com/ambv/black
4-
rev: 18.6b4
4+
rev: 18.9b0
55
hooks:
66
- id: black
77
args: [--safe, --quiet]
@@ -13,28 +13,31 @@ repos:
1313
additional_dependencies: [black==18.9b0]
1414
language_version: python3
1515
- repo: https://github.com/pre-commit/pre-commit-hooks
16-
rev: v2.0.0
16+
rev: v2.1.0
1717
hooks:
1818
- id: trailing-whitespace
1919
- id: end-of-file-fixer
2020
- id: check-yaml
2121
- id: debug-statements
2222
exclude: _pytest/debugging.py
2323
language_version: python3
24+
- repo: https://gitlab.com/pycqa/flake8
25+
rev: 3.7.0
26+
hooks:
2427
- id: flake8
2528
language_version: python3
2629
- repo: https://github.com/asottile/reorder_python_imports
27-
rev: v1.3.3
30+
rev: v1.3.5
2831
hooks:
2932
- id: reorder-python-imports
3033
args: ['--application-directories=.:src']
3134
- repo: https://github.com/asottile/pyupgrade
32-
rev: v1.10.1
35+
rev: v1.11.1
3336
hooks:
3437
- id: pyupgrade
3538
args: [--keep-percent-format]
3639
- repo: https://github.com/pre-commit/pygrep-hooks
37-
rev: v1.1.0
40+
rev: v1.2.0
3841
hooks:
3942
- id: rst-backticks
4043
- repo: local
@@ -51,3 +54,17 @@ repos:
5154
entry: 'changelog files must be named ####.(feature|bugfix|doc|deprecation|removal|vendor|trivial).rst'
5255
exclude: changelog/(\d+\.(feature|bugfix|doc|deprecation|removal|vendor|trivial).rst|README.rst|_template.rst)
5356
files: ^changelog/
57+
- id: py-deprecated
58+
name: py library is deprecated
59+
language: pygrep
60+
entry: >
61+
(?x)\bpy\.(
62+
_code\.|
63+
builtin\.|
64+
code\.|
65+
io\.(BytesIO|saferepr)|
66+
path\.local\.sysfind|
67+
process\.|
68+
std\.
69+
)
70+
types: [python]

AUTHORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Aaron Coleman
77
Abdeali JK
88
Abhijeet Kasurde
99
Adam Johnson
10+
Adam Uhlir
1011
Ahn Ki-Wook
1112
Alan Velasco
1213
Alexander Johnson
@@ -52,6 +53,7 @@ Christian Boelsen
5253
Christian Theunert
5354
Christian Tismer
5455
Christopher Gilling
56+
Christopher Dignam
5557
CrazyMerlyn
5658
Cyrus Maden
5759
Dhiren Serai

changelog/4402.bugfix.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Warning summary now groups warnings by message instead of by test id.
2+
3+
This makes the output more compact and better conveys the general idea of how much code is
4+
actually generating warnings, instead of how many tests call that code.

changelog/4536.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
``monkeypatch.delattr`` handles class descriptors like ``staticmethod``/``classmethod``.

changelog/4649.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Restore marks being considered keywords for keyword expressions.

changelog/4653.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
``tmp_path`` fixture and other related ones provides resolved path (a.k.a real path)

changelog/4657.trivial.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Copy saferepr from pylib

changelog/4667.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
``pytest_terminal_summary`` uses result from ``pytest_report_teststatus`` hook, rather than hardcoded strings.

changelog/4669.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Correctly handle ``unittest.SkipTest`` exception containing non-ascii characters on Python 2.

doc/en/contents.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Full pytest documentation
4141

4242
backwards-compatibility
4343
deprecations
44+
py27-py34-deprecation
4445
historical-notes
4546
license
4647
contributing

0 commit comments

Comments
 (0)