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/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index 7e95016..40f0ae4 100644 --- a/IPython/core/tests/test_magic.py +++ b/IPython/core/tests/test_magic.py @@ -1339,11 +1339,11 @@ def test_run_module_from_import_hook(): return importlib.util.spec_from_loader(fullname, self) def get_filename(self, fullname): - assert fullname == "my_tmp": + assert fullname == "my_tmp" return fullpath def get_data(self, path): - assert Path(path).samefile(fullpath): + assert Path(path).samefile(fullpath) return Path(fullpath).read_text() sys.meta_path.insert(0, MyTempImporter())