Skip to content

Commit

Permalink
Fix flake8 errors (#359)
Browse files Browse the repository at this point in the history
* Fix flake8 errors

* Fix wrong comparison

* Bump codecov action version; add codecov token

---------

Co-authored-by: Jay Qi <[email protected]>
  • Loading branch information
jayqi and jayqi authored Jul 31, 2023
1 parent 45ae4ee commit d2079cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ jobs:
- name: Upload coverage to codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: true

Expand Down
2 changes: 1 addition & 1 deletion cloudpathlib/cloudpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def _patched_close_empty_cache(*args, **kwargs):
return buffer

def replace(self, target: Self) -> Self:
if type(self) != type(target):
if type(self) is not type(target):
raise TypeError(
f"The target based to rename must be an instantiated class of type: {type(self)}"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_interface(cloud_class, local_class):
cloud_attr = getattr(cloud_class, attr_name)
local_attr = getattr(local_class, attr_name)

assert type(cloud_attr) == type(local_attr)
assert type(cloud_attr) is type(local_attr)
if callable(cloud_attr):
assert signature(cloud_attr).parameters == signature(local_attr).parameters

Expand Down

0 comments on commit d2079cc

Please sign in to comment.