Skip to content

Commit 8b82101

Browse files
Merge pull request #165 from pytest-dev/ronny/pre-commit-updates
add pyupgrade an go --py37-plus
2 parents 44358ed + 2be734f commit 8b82101

Some content is hidden

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

47 files changed

+231
-553
lines changed

.pre-commit-config.yaml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,37 @@
11
exclude: doc/en/example/py2py3/test_py2.py
22
repos:
33
- repo: https://github.com/psf/black
4-
rev: 22.3.0
4+
rev: 22.12.0
55
hooks:
66
- id: black
7-
args: [--safe, --quiet]
87
- repo: https://github.com/asottile/blacken-docs
98
rev: v1.12.1
109
hooks:
1110
- id: blacken-docs
12-
additional_dependencies: [black==19.3b0]
11+
additional_dependencies: [black==22.12.0]
1312
- repo: https://github.com/pre-commit/pre-commit-hooks
14-
rev: v4.2.0
13+
rev: v4.4.0
1514
hooks:
1615
- id: trailing-whitespace
1716
- id: end-of-file-fixer
18-
- id: fix-encoding-pragma
1917
- id: check-yaml
18+
- repo: https://github.com/asottile/pyupgrade
19+
rev: v3.3.1
20+
hooks:
21+
- id: pyupgrade
22+
args: [--py37-plus]
2023
- repo: https://github.com/asottile/reorder_python_imports
21-
rev: v3.1.0
24+
rev: v3.9.0
2225
hooks:
2326
- id: reorder-python-imports
24-
args: ['--application-directories=execnet']
25-
- repo: local
27+
args: ['--application-directories=execnet', --py37-plus]
28+
- repo: https://github.com/PyCQA/doc8
29+
rev: 'v1.1.1'
30+
hooks:
31+
- id: doc8
32+
args: ["--ignore", "D001"]
33+
34+
- repo: https://github.com/pre-commit/mirrors-mypy
35+
rev: 'v0.991'
2636
hooks:
27-
- id: rst
28-
name: rst
29-
entry: rst-lint --encoding utf-8
30-
files: ^(CHANGELOG.rst|HOWTORELEASE.rst|README.rst)$
31-
language: python
32-
additional_dependencies: [pygments, restructuredtext_lint]
37+
- id: mypy

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
------------------
33

44
* removed support for Python < 3.7
5+
* apply pyupgrade --py37-plus
6+
* minimal mypy fixes and python2 support code drop
57
* migrate packaging to hatch
68

9+
10+
711
1.9.0 (2021-06-13)
812
------------------
913

README.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ execnet: distributed Python deployment and communication
44
Important
55
---------
66

7-
**execnet currently is in maintenance-only mode, mostly because it is still the backend
8-
of the pytest-xdist plugin. Do not use in new projects.**
9-
107
.. image:: https://img.shields.io/pypi/v/execnet.svg
118
:target: https://pypi.org/project/execnet/
129

doc/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# -*- coding: utf-8 -*-
21
#

doc/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# execnet documentation build configuration file, created by
43
# sphinx-quickstart on Wed Sep 30 21:16:59 2009.

doc/example/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import sys
32

43
import py

doc/example/funcmultiplier.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import execnet
32

43

doc/example/popen_read_multiple.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
example
43
54
reading results from possibly blocking code running in sub processes.
65
"""
7-
from __future__ import print_function
8-
96
import execnet
107

118
NUM_PROCESSES = 5

doc/example/py3topy2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import execnet
32

43
gw = execnet.makegateway("popen//python=python2")

doc/example/redirect_remote_output.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
redirect output from remote to a local function
43
showcasing features of the channel object:
@@ -8,8 +7,6 @@
87
- setting a callback for receiving channel data
98
109
"""
11-
from __future__ import print_function
12-
1310
import execnet
1411

1512
gw = execnet.makegateway()

0 commit comments

Comments
 (0)