diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 36ae818..9c2ae9c 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -10,10 +10,10 @@ on: branches: [ master, 7.x ] jobs: - build: + formatting: runs-on: ubuntu-latest - timeout-minutes: 10 + timeout-minutes: 5 strategy: matrix: python-version: [3.8] @@ -29,7 +29,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install darker isort + pip install darker - name: Lint with darker run: | darker -r 60625f241f298b5039cb2debc365db38aa7bb522 --check --diff . || ( diff --git a/IPython/utils/timing.py b/IPython/utils/timing.py index 92f6883..c20b5c9 100644 --- a/IPython/utils/timing.py +++ b/IPython/utils/timing.py @@ -66,6 +66,7 @@ else: # There is no distinction of user/system time under windows, so we just use # time.perff_counter() for everything... clocku = clocks = clock = time.perf_counter + def clock2(): """Under windows, system CPU time can't be measured.