Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and braingram committed Sep 8, 2023
1 parent c3461ab commit 7404ae3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions asdf/_tests/test_asdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def test_unclosed_file(tmp_path):
pass


@pytest.importorskip('fsspec')
@pytest.importorskip("fsspec")
def test_fsspec(tmp_path):
"""
Issue #1146 reported errors when opening a fsspec 'file'
Expand All @@ -385,7 +385,7 @@ def test_fsspec(tmp_path):
assert_tree_match(tree, af.tree)


@pytest.importorskip('fsspec')
@pytest.importorskip("fsspec")

Check warning on line 388 in asdf/_tests/test_asdf.py

View check run for this annotation

Codecov / codecov/patch

asdf/_tests/test_asdf.py#L388

Added line #L388 was not covered by tests
@pytest.mark.remote_data()
def test_fsspec_http(httpserver):
"""
Expand Down
4 changes: 2 additions & 2 deletions asdf/_tests/test_generic_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ def test_io_subclasses(tmp_path):
f.close()


@pytest.importorskip('fsspec')
@pytest.importorskip("fsspec")
def test_fsspec(tmp_path):
"""
Issue #1146 reported errors when opening a fsspec 'file'
Expand All @@ -804,7 +804,7 @@ def test_fsspec(tmp_path):
assert ai == i


@pytest.importorskip('fsspec')
@pytest.importorskip("fsspec")

Check warning on line 807 in asdf/_tests/test_generic_io.py

View check run for this annotation

Codecov / codecov/patch

asdf/_tests/test_generic_io.py#L807

Added line #L807 was not covered by tests
@pytest.mark.remote_data()
def test_fsspec_http(httpserver):
"""
Expand Down
3 changes: 1 addition & 2 deletions asdf/asdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1337,8 +1337,7 @@ def add_history_entry(self, description, software=None):
software = Software(software)

time_ = datetime.datetime.fromtimestamp(
int(os.environ.get("SOURCE_DATE_EPOCH", time.time())),
datetime.timezone.utc
int(os.environ.get("SOURCE_DATE_EPOCH", time.time())), datetime.timezone.utc
)

entry = HistoryEntry(
Expand Down

0 comments on commit 7404ae3

Please sign in to comment.