Skip to content

Commit

Permalink
Add noqa on A003 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Nov 21, 2023
1 parent 8662786 commit 47f5467
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ line_length = 120
# In the future, add "B", "S", "N"
select = ["A", "D", "E", "W", "F", "I", "PT", "TID", "C90", "Q", "T10", "T20"]
line-length = 120
ignore = ["D417", "A003"]
ignore = ["D417"]

[tool.ruff.per-file-ignores]
"satpy/tests/*" = ["S101"] # assert allowed in tests
Expand Down
2 changes: 1 addition & 1 deletion satpy/composites/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(self, name, prerequisites=None, optional_prerequisites=None, **kwar
self.attrs = kwargs

@property
def id(self):
def id(self): # noqa: A003
"""Return the DataID of the object."""
try:
return self.attrs["_satpy_id"]
Expand Down
2 changes: 1 addition & 1 deletion satpy/readers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ def __repr__(self):
"""Representation of the object."""
return '<FSFile "' + str(self._file) + '">'

def open(self, *args, **kwargs):
def open(self, *args, **kwargs): # noqa: A003
"""Open the file.
This is read-only.
Expand Down
2 changes: 1 addition & 1 deletion satpy/readers/avhrr_l1b_gaclac.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def get_dataset(self, key, info):

return res

def slice(self, data, times):
def slice(self, data, times): # noqa: A003
"""Select user-defined scanlines and/or strip invalid coordinates.
Furthermore, update scanline timestamps.
Expand Down
2 changes: 1 addition & 1 deletion satpy/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ def _slice_datasets(self, dataset_ids, slice_key, new_area, area_only=True):
else:
replace_anc(new_ds, pres)

def slice(self, key):
def slice(self, key): # noqa: A003
"""Slice Scene by dataset index.
.. note::
Expand Down

0 comments on commit 47f5467

Please sign in to comment.