Skip to content

Commit

Permalink
checks: Remove fixed Ruff exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Jan 3, 2025
1 parent a563234 commit 67471e0
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ ignore = [
"E501", # line-too-long
"E721", # type-comparison
"E722", # bare-except
"E731", # lambda-assignment
"E741", # ambiguous-variable-name
"F403", # undefined-local-with-import-star
"F405", # undefined-local-with-import-star-usage
Expand All @@ -149,7 +148,6 @@ ignore = [
"N803", # invalid-argument-name
"N806", # non-lowercase-variable-in-function
"N812", # lowercase-imported-as-non-lowercase
"N814", # camelcase-imported-as-constant
"N815", # mixed-case-variable-in-class-scope
"N816", # mixed-case-variable-in-global-scope
"N818", # error-suffix-on-exception-name
Expand Down Expand Up @@ -220,7 +218,6 @@ ignore = [
"S108", # hardcoded-temp-file
"S110", # try-except-pass
"S112", # try-except-continue
"S113", # request-without-timeout
"S202", # tarfile-unsafe-members
"S307", # suspicious-eval-usage
"S310", # suspicious-url-open-usage
Expand All @@ -240,12 +237,10 @@ ignore = [
"SIM102", # collapsible-if
"SIM105", # suppressible-exception
"SIM113", # enumerate-for-loop
"SIM116", # if-else-block-instead-of-dict-lookup
"SIM118", # in-dict-keys
"SIM223", # expr-and-false
"SLF001", # private-member-access
"TRY002", # raise-vanilla-class
"TRY003", # raise-vanilla-args
"TRY004", # type-check-without-type-error
"TRY201", # verbose-raise
"TRY300", # try-consider-else
Expand All @@ -262,10 +257,8 @@ ignore = [
# "A005", # builtin-module-shadowing
# "PLW0108", # unnecessary-lambda
# "SIM115", # open-file-with-context-handler
# Ignore `E402` (import violations) in all `__init__.py` files
"**.py" = ["PYI066"]
"*/testsuite/**.py" = ["PT009", "PT027"]
"__init__.py" = ["E402"]
"display/d.mon/render_cmd.py" = ["SIM115"]
"gui/**" = ["PLW0108"] # See https://github.com/OSGeo/grass/issues/4124
"gui/wxpython/animation/temporal_manager.py" = ["SIM115"]
Expand All @@ -283,15 +276,15 @@ ignore = [
"gui/wxpython/icons/grass_icons.py" = ["PTH208"]
"gui/wxpython/image2target/*.py" = ["SIM115"]
"gui/wxpython/image2target/ii2t_manager.py" = ["PTH208"]
"gui/wxpython/iscatt/plots.py" = ["PLW0108"]
"gui/wxpython/lmgr/workspace.py" = ["SIM115"]
"gui/wxpython/location_wizard/wizard.py" = ["SIM115"]
"gui/wxpython/mapdisp/main.py" = ["SIM115"]
"gui/wxpython/modules/colorrules.py" = ["SIM115"]
"gui/wxpython/modules/mcalc_builder.py" = ["SIM115"]
"gui/wxpython/photo2image/*.py" = ["SIM115"]
"gui/wxpython/psmap/*.py" = ["SIM115"]
"gui/wxpython/photo2image/ip2i_manager.py" = ["SIM115"]
"gui/wxpython/psmap/dialogs.py" = ["PTH208"]
"gui/wxpython/psmap/frame.py" = ["SIM115"]
"gui/wxpython/psmap/instructions.py" = ["SIM115"]
"gui/wxpython/psmap/utils.py" = ["PGH004"]
"gui/wxpython/rdigit/controller.py" = ["SIM115"]
"gui/wxpython/rlisetup/*.py" = ["SIM115"]
Expand All @@ -300,7 +293,9 @@ ignore = [
"gui/wxpython/tools/update_menudata.py" = ["SIM115"]
"gui/wxpython/tplot/frame.py" = ["FLY002"]
"gui/wxpython/vdigit/mapwindow.py" = ["SIM115"]
"gui/wxpython/vnet/*.py" = ["SIM115"]
"gui/wxpython/vnet/vnet_core.py" = ["SIM115"]
"gui/wxpython/vnet/vnet_data.py" = ["SIM115"]
"gui/wxpython/vnet/widgets.py" = ["SIM115"]
"gui/wxpython/web_services/dialogs.py" = ["SIM115"]
"gui/wxpython/wxplot/profile.py" = ["A005", "SIM115"]
"imagery/i.atcorr/create_iwave.py" = ["SIM115"]
Expand Down Expand Up @@ -382,7 +377,6 @@ ignore = [
"temporal/t.register/testsuite/test_t_register_raster.py" = ["FLY002"]
"temporal/t.register/testsuite/test_t_register_raster_file.py" = ["FLY002"]
"temporal/t.remove/t.remove.py" = ["SIM115"]
"temporal/t.unregister/t.unregister.py" = ["SIM115"]
"utils/**.py" = ["SIM115"]
"utils/generate_release_notes.py" = ["PGH004"]
"utils/thumbnails.py" = ["PTH208"]
Expand Down

0 comments on commit 67471e0

Please sign in to comment.