Browse Source

pylint: disable optional extensions that triggered irrelevant warnings in other projects

https://github.com/fphammerle/freesurfer-volume-reader/commit/c02a5655a6edfa5155625dd3e002f9e3a91a0635
https://github.com/fphammerle/freesurfer-stats/commit/f0e1a0c5c90641e13911f992f7f8d395ac199a0c
https://github.com/fphammerle/pubmed-bibtex/commit/30b274aa28d10b4ba69cbf6bcdc42b4198918e19
Fabian Peter Hammerle 1 year ago
parent
commit
4dcddd2d1b
2 changed files with 3 additions and 6 deletions
  1. 2 5
      .pylintrc
  2. 1 1
      ical2vdir/__init__.py

+ 2 - 5
.pylintrc

@@ -1,8 +1,6 @@
 [MASTER]
 
-load-plugins=pylint.extensions.bad_builtin,
-             pylint.extensions.broad_try_clause,
-             pylint.extensions.check_elif,
+load-plugins=pylint.extensions.check_elif,
              pylint.extensions.comparison_placement,
              pylint.extensions.confusing_elif,
              pylint.extensions.consider_ternary_expression,
@@ -16,8 +14,7 @@ load-plugins=pylint.extensions.bad_builtin,
              pylint.extensions.redefined_loop_name,
              pylint.extensions.redefined_variable_type,
              pylint.extensions.set_membership,
-             pylint.extensions.typing,
-             pylint.extensions.while_used
+             pylint.extensions.typing
 
 [MESSAGES CONTROL]
 

+ 1 - 1
ical2vdir/__init__.py

@@ -97,7 +97,7 @@ def _write_event(event: icalendar.cal.Event, path: pathlib.Path) -> None:
     temp_fd, temp_path = tempfile.mkstemp(
         prefix="ical2vdir-", suffix=_VDIR_EVENT_FILE_EXTENSION
     )
-    try:  # pylint: disable=too-many-try-statements
+    try:
         # > Content lines are delimited by a line break,
         # > which is a CRLF sequence [...]
         # https://tools.ietf.org/html/rfc5545#section-3.1