diff --git a/ruff.toml b/ruff.toml index 2c1dddc2..bf6c4dbf 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,19 +1,16 @@ +line-length = 88 target-version = "py39" -include = [ - "autotest/**/*.py", - "scripts/**/*.py", - "etc/**/*.py", - ".doc/**/*.py", -] -extend-include = [ - ".doc/**/*.ipynb" -] [lint] -select = ["F", "E", "I001"] +select = [ + "D409", # pydocstyle - section-underline-matches-section-length + "E", # pycodestyle error + "F", # Pyflakes + "I001", # isort - unsorted-imports +] ignore = [ "E501", # line too long TODO FIXME "E722", # do not use bare `except` "E741", # ambiguous variable name "F841", # local variable assigned but never used -] \ No newline at end of file +] diff --git a/scripts/ex-gwf-curvilinear-90.py b/scripts/ex-gwf-curvilinear-90.py index b9f06e2a..4d47fb5c 100644 --- a/scripts/ex-gwf-curvilinear-90.py +++ b/scripts/ex-gwf-curvilinear-90.py @@ -978,7 +978,7 @@ def iter_row_col(self): """Generator that iterates through each rows' columns. Yields - ------- + ------ (int, int) Row index, column index """ @@ -995,7 +995,7 @@ def iter_row_cellid(self, row): Row index. Yields - ------- + ------ int cellid index """ @@ -1012,7 +1012,7 @@ def iter_column_cellid(self, col): Column index. Yields - ------- + ------ int cellid index """ @@ -1141,7 +1141,7 @@ class DisvGridMerger: name, and value is the merged grid's cellid. Notes - ------- + ----- The following is always true: ``cell2name[cell] == name2vert[cell2name[cell]]`` @@ -2066,7 +2066,7 @@ def iter_rad_col(self): """Generator that iterates through the radial band columns, then bands. Yields - ------- + ------ (int, int) radial band index, column index """ @@ -2082,7 +2082,7 @@ def iter_radial_cellid(self, rad): Radial index. Yields - ------- + ------ int cellid index """ @@ -2102,7 +2102,7 @@ def iter_column_cellid(self, col): Column index. Yields - ------- + ------ int cellid index """ @@ -2120,7 +2120,7 @@ def iter_columns(self, rad): Radial index. Yields - ------- + ------ int column index """ diff --git a/scripts/ex-gwf-curvilinear.py b/scripts/ex-gwf-curvilinear.py index 4e185394..e06a6d14 100644 --- a/scripts/ex-gwf-curvilinear.py +++ b/scripts/ex-gwf-curvilinear.py @@ -978,7 +978,7 @@ def iter_row_col(self): """Generator that iterates through each rows' columns. Yields - ------- + ------ (int, int) Row index, column index """ @@ -995,7 +995,7 @@ def iter_row_cellid(self, row): Row index. Yields - ------- + ------ int cellid index """ @@ -1012,7 +1012,7 @@ def iter_column_cellid(self, col): Column index. Yields - ------- + ------ int cellid index """ @@ -1141,7 +1141,7 @@ class DisvGridMerger: name, and value is the merged grid's cellid. Notes - ------- + ----- The following is always true: ``cell2name[cell] == name2vert[cell2name[cell]]`` @@ -2066,7 +2066,7 @@ def iter_rad_col(self): """Generator that iterates through the radial band columns, then bands. Yields - ------- + ------ (int, int) radial band index, column index """ @@ -2082,7 +2082,7 @@ def iter_radial_cellid(self, rad): Radial index. Yields - ------- + ------ int cellid index """ @@ -2102,7 +2102,7 @@ def iter_column_cellid(self, col): Column index. Yields - ------- + ------ int cellid index """ @@ -2120,7 +2120,7 @@ def iter_columns(self, rad): Radial index. Yields - ------- + ------ int column index """