Skip to content

Commit c695763

Browse files
[pre-commit.ci] pre-commit autoupdate (#869)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/PyCQA/autoflake: v2.0.0 → v2.0.1](PyCQA/autoflake@v2.0.0...v2.0.1) - [github.com/psf/black: 22.12.0 → 23.1.0](psf/black@22.12.0...23.1.0) - [github.com/asottile/blacken-docs: v1.12.1 → 1.13.0](adamchainz/blacken-docs@v1.12.1...1.13.0) * Update .pre-commit-config.yaml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bruno Oliveira <[email protected]>
1 parent 9373ddb commit c695763

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

Diff for: .pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
repos:
22
- repo: https://github.com/PyCQA/autoflake
3-
rev: v2.0.0
3+
rev: v2.0.1
44
hooks:
55
- id: autoflake
66
args: ["--in-place", "--remove-unused-variables", "--remove-all-unused-imports"]
77
- repo: https://github.com/psf/black
8-
rev: 22.12.0
8+
rev: 23.1.0
99
hooks:
1010
- id: black
1111
args: [--safe, --quiet, --target-version, py35]
1212
- repo: https://github.com/asottile/blacken-docs
13-
rev: v1.12.1
13+
rev: 1.13.0
1414
hooks:
1515
- id: blacken-docs
16-
additional_dependencies: [black==20.8b1]
16+
additional_dependencies: [black==23.1.0]
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
1818
rev: v4.4.0
1919
hooks:

Diff for: docs/how-to.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ a test or fixture, you may use the ``worker_id`` fixture to do so:
1515
1616
@pytest.fixture()
1717
def user_account(worker_id):
18-
""" use a different account in each xdist worker """
18+
"""use a different account in each xdist worker"""
1919
return "account_%s" % worker_id
2020
2121
When ``xdist`` is disabled (running with ``-n0`` for example), then
@@ -80,7 +80,7 @@ wanted to create a separate database for each test run:
8080
8181
@pytest.fixture(scope="session", autouse=True)
8282
def create_unique_database(testrun_uid):
83-
""" create a unique database for this particular test run """
83+
"""create a unique database for this particular test run"""
8484
database_url = f"psql://myapp-{testrun_uid}"
8585
8686
with Semaphore(f"/{testrun_uid}-lock", flags=O_CREAT, initial_value=1):
@@ -90,7 +90,7 @@ wanted to create a separate database for each test run:
9090
9191
@pytest.fixture()
9292
def db(testrun_uid):
93-
""" retrieve unique database """
93+
"""retrieve unique database"""
9494
database_url = f"psql://myapp-{testrun_uid}"
9595
return database_get_instance(database_url)
9696

Diff for: src/xdist/looponfail.py

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def pytest_addoption(parser):
3535

3636
@pytest.hookimpl
3737
def pytest_cmdline_main(config):
38-
3938
if config.getoption("looponfail"):
4039
usepdb = config.getoption("usepdb", False) # a core option
4140
if usepdb:

Diff for: src/xdist/scheduler/loadscope.py

-2
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,11 @@ def add_node_collection(self, node, collection):
213213

214214
# A new node has been added later, perhaps an original one died.
215215
if self.collection_is_completed:
216-
217216
# Assert that .schedule() should have been called by now
218217
assert self.collection
219218

220219
# Check that the new collection matches the official collection
221220
if collection != self.collection:
222-
223221
other_node = next(iter(self.registered_collections.keys()))
224222

225223
msg = report_collection_diff(

0 commit comments

Comments
 (0)