Skip to content

Commit

Permalink
remove obsolete pylint config
Browse files Browse the repository at this point in the history
  • Loading branch information
flopp committed Apr 9, 2024
1 parent 2a8fbe1 commit 7e5464e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
34 changes: 17 additions & 17 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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,_
Expand All @@ -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.
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions staticmaps/cairo_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7e5464e

Please sign in to comment.