diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 494aab710e7..d7a602d5c55 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,4 @@ repos: - - repo: https://github.com/asottile/pyupgrade - rev: v2.23.1 - hooks: - - id: pyupgrade - args: ["--py36-plus"] - repo: https://github.com/pycqa/isort rev: 5.9.3 diff --git a/src/twisted/newsfragments/11700.misc b/src/twisted/newsfragments/11700.misc new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tox.ini b/tox.ini index 1be5cc7c3f6..3d97fd83d67 100644 --- a/tox.ini +++ b/tox.ini @@ -93,12 +93,12 @@ commands = posix: python -c "print('Running on POSIX (no special dependencies)')" ; Run tests without wrapping them using coverage. - nocov: python -m twisted.trial --temp-directory={envtmpdir}/_trial_temp --reporter={env:TRIAL_REPORTER:verbose} {env:TRIAL_ARGS:} {posargs:twisted} + nocov: python -m twisted.trial --temp-directory={envtmpdir}/_trial_temp --reporter={env:TRIAL_REPORTER:verbose} {env:TRIAL_ARGS:-j8} {posargs:twisted} ; Run the tests wrapped using coverage. withcov: python {toxinidir}/admin/_copy.py {toxinidir}/admin/zz_coverage.pth {envsitepackagesdir}/zz_coverage.pth withcov: coverage erase - withcov: coverage run -p --rcfile={toxinidir}/.coveragerc -m twisted.trial --temp-directory={envtmpdir}/_trial_temp --reporter={env:TRIAL_REPORTER:verbose} {env:TRIAL_ARGS:} {posargs:twisted} + withcov: coverage run -p --rcfile={toxinidir}/.coveragerc -m twisted.trial --temp-directory={envtmpdir}/_trial_temp --reporter={env:TRIAL_REPORTER:verbose} {env:TRIAL_ARGS:-j8} {posargs:twisted} lint: pre-commit {posargs:run --all-files --show-diff-on-failure}