Skip to content

Commit

Permalink
Merge pull request #100 from datalad/delint
Browse files Browse the repository at this point in the history
Get CI to pass again
  • Loading branch information
jwodder committed Jan 18, 2024
2 parents df61d59 + 44f09c6 commit 383fbab
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install --upgrade asv virtualenv
python -m pip install --upgrade 'asv[virtualenv]'
- name: Set up machine profile
run: asv machine --yes
Expand All @@ -52,13 +52,13 @@ jobs:
git update-ref refs/bm/merge-target HEAD^1
- name: Run benchmarks on newest code
run: asv run --strict --show-stderr --python 3.7 HEAD^-1
run: asv run --show-stderr --python 3.7 HEAD^-1

- name: Check out previous code
run: git checkout --force refs/bm/merge-target

- name: Run benchmarks on previous code
run: asv run --strict --show-stderr --python 3.7 HEAD^-1
run: asv run --show-stderr --python 3.7 HEAD^-1

- name: Compare benchmarks on previous & newest code
run: asv compare refs/bm/merge-target refs/bm/pr
Expand Down
4 changes: 2 additions & 2 deletions datalad_fuse/fuse_.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ def getattr(self, path: str, fh: Optional[int] = None) -> dict[str, Any]:
fsspec_file = self._adapter.open(path)
to_close = True
if fsspec_file is not None:
if isinstance(fsspec_file, io.BufferedIOBase):
if isinstance(fsspec_file, io.BufferedIOBase): # type: ignore[unreachable]
# full file was already fetched locally
lgr.debug("File object is io.BufferedIOBase")
lgr.debug("File object is io.BufferedIOBase") # type: ignore[unreachable]
r = self._filter_stat(os.stat(fsspec_file.name))
else:
lgr.debug("File object is fsspec object")
Expand Down
10 changes: 6 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
master_doc = "index"

# General information about the project.
project = u"Datalad Extension Template"
copyright = u"2018-{}, DataLad team".format(datetime.datetime.now().year)
author = u"DataLad team"
project = "Datalad Extension Template"
copyright = "2018-{}, DataLad team".format(datetime.datetime.now().year)
author = "DataLad team"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand All @@ -113,7 +113,9 @@
todo_include_todos = True

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {"https://docs.python.org/": None}
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
}

# -- Options for HTML output ----------------------------------------------

Expand Down

0 comments on commit 383fbab

Please sign in to comment.