Skip to content

Commit

Permalink
Use the alpha pylint config
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Oct 18, 2024
1 parent 094b4bc commit e55f94b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ ignore=CVS
# ignore-list. The regex matches against paths and can be in Posix or Windows
# format. Because '\\' represents the directory delimiter on Windows systems,
# it can't be used as an escape character.
ignore-paths=
ignore-paths=.*/migrations

# Files or directories matching the regular expression patterns are skipped.
# The regex matches against base names, not paths. The default value ignores
# Emacs file locks
ignore-patterns=^\.#
ignore-patterns=^\.#,fabfile.py

# List of module names for which member attributes should not be checked
# (useful for modules/projects where namespaces are manipulated during runtime
Expand Down Expand Up @@ -294,7 +294,7 @@ max-attributes=7
max-bool-expr=5

# Maximum number of branch for function / method body.
max-branches=12
max-branches=15

# Maximum number of locals for function / method body.
max-locals=15
Expand Down Expand Up @@ -337,7 +337,7 @@ indent-after-paren=4
indent-string=' '

# Maximum number of characters on a single line.
max-line-length=100
max-line-length=120

# Maximum number of lines in a module.
max-module-lines=1000
Expand Down Expand Up @@ -431,7 +431,17 @@ disable=raw-checker-failed,
use-symbolic-message-instead,
use-implicit-booleaness-not-comparison-to-string,
use-implicit-booleaness-not-comparison-to-zero,
duplicate-code
duplicate-code,
missing-docstring,
subprocess-run-check,
invalid-name,
too-few-public-methods,
too-many-ancestors,
logging-fstring-interpolation,
no-member,
ungrouped-imports,
unsubscriptable-object,
protected-access

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
2 changes: 1 addition & 1 deletion cms/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

# Try to install the django debug toolbar, if exists
if apps.is_installed("debug_toolbar"):
import debug_toolbar
import debug_toolbar # pylint: disable=import-error

debug_urlpatterns = [path("__debug__/", include(debug_toolbar.urls)), *debug_urlpatterns]

Expand Down

0 comments on commit e55f94b

Please sign in to comment.