From 7e5464e1608be5b2c6034c6871557427374b7994 Mon Sep 17 00:00:00 2001 From: Florian Pigorsch Date: Tue, 9 Apr 2024 20:18:56 +0200 Subject: [PATCH] remove obsolete pylint config --- .pylintrc | 34 +++++++++++++++++----------------- staticmaps/cairo_renderer.py | 4 ++-- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.pylintrc b/.pylintrc index b07c3ce..2c83fe7 100644 --- a/.pylintrc +++ b/.pylintrc @@ -16,7 +16,7 @@ persistent=yes # List of plugins (as comma separated values of python modules names) to load, # usually to register additional checkers. -load-plugins = pylint.extensions.check_docs +###load-plugins = pylint.extensions.check_docs # Use multiple processes to speed up Pylint. jobs=0 @@ -51,11 +51,11 @@ confidence= # --enable=similarities". If you want to run only the classes checker, but have # no Warning level messages displayed, use"--disable=all --enable=classes # --disable=W" +### bad-continuation, +### no-init, disable= - bad-continuation, duplicate-code, missing-docstring, - no-init, no-member, no-value-for-parameter, too-few-public-methods, @@ -72,7 +72,7 @@ output-format=colorized # Put messages in a separate file for each module / package specified on the # command line instead of printing them on stdout. Reports (if any) will be # written in a file name "pylint_global.[txt|html]". -files-output=no +###files-output=no # Tells whether to display a full report or only the messages reports=no @@ -151,7 +151,7 @@ single-line-if-stmt=no # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. # `trailing-comma` allows a space between comma and closing bracket: (a, ). # `empty-line` allows space-only lines. -no-space-check=trailing-comma +###no-space-check=trailing-comma # Maximum number of lines in a module max-module-lines=500 @@ -170,7 +170,7 @@ expected-line-ending-format=LF [BASIC] # List of builtins function names that should not be used, separated by a comma -bad-functions=map,filter,input +###bad-functions=map,filter,input # Good variable names which should always be accepted, separated by a comma good-names=i,_ @@ -189,61 +189,61 @@ include-naming-hint=yes function-rgx=([a-z_][a-z0-9_]{1,40}|test_[A-Za-z0-9_]{3,70})$ # Naming hint for function names -function-name-hint=[a-z_][a-z0-9_]{1,40}$ +###function-name-hint=[a-z_][a-z0-9_]{1,40}$ # Regular expression matching correct variable names variable-rgx=[a-z_][a-z0-9_]{0,40}$ # Naming hint for variable names -variable-name-hint=[a-z_][a-z0-9_]{0,40}$ +###variable-name-hint=[a-z_][a-z0-9_]{0,40}$ # Regular expression matching correct constant names const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__)|(urls|urlpatterns|register))$ # Naming hint for constant names -const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ +###const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ # Regular expression matching correct attribute names attr-rgx=[a-z_][a-z0-9_]{0,30}$ # Naming hint for attribute names -attr-name-hint=[a-z_][a-z0-9_]{0,30}$ +###attr-name-hint=[a-z_][a-z0-9_]{0,30}$ # Regular expression matching correct argument names argument-rgx=[a-z_][a-z0-9_]{0,30}$ # Naming hint for argument names -argument-name-hint=[a-z_][a-z0-9_]{0,30}$ +###argument-name-hint=[a-z_][a-z0-9_]{0,30}$ # Regular expression matching correct class attribute names class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{1,40}|(__.*__))$ # Naming hint for class attribute names -class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{1,40}|(__.*__))$ +###class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{1,40}|(__.*__))$ # Regular expression matching correct inline iteration names inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ # Naming hint for inline iteration names -inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ +###inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ # Regular expression matching correct class names class-rgx=[A-Z_][a-zA-Z0-9]+$ # Naming hint for class names -class-name-hint=[A-Z_][a-zA-Z0-9]+$ +###class-name-hint=[A-Z_][a-zA-Z0-9]+$ # Regular expression matching correct module names module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ # Naming hint for module names -module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ +###module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ # Regular expression matching correct method names method-rgx=[a-z_][a-z0-9_]{1,30}$ # Naming hint for method names -method-name-hint=[a-z_][a-z0-9_]{1,30}$ +###method-name-hint=[a-z_][a-z0-9_]{1,30}$ # Regular expression which should only match function or class names that do # not require a docstring. @@ -373,4 +373,4 @@ int-import-graph= # Exceptions that will emit a warning when being caught. Defaults to # "Exception" -overgeneral-exceptions=Exception +overgeneral-exceptions=builtins.Exception diff --git a/staticmaps/cairo_renderer.py b/staticmaps/cairo_renderer.py index d27d151..8f60a6e 100644 --- a/staticmaps/cairo_renderer.py +++ b/staticmaps/cairo_renderer.py @@ -32,8 +32,8 @@ def cairo_is_supported() -> bool: # Dummy types, so that type annotation works if cairo is missing. -cairo_Context = typing.Any -cairo_ImageSurface = typing.Any +cairo_Context = typing.Any # pylint: disable=invalid-name +cairo_ImageSurface = typing.Any # pylint: disable=invalid-name class CairoRenderer(Renderer):