mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-04-16 03:01:02 +00:00
fix pylint
This commit is contained in:
parent
a08ebaa0a3
commit
f202d31709
5 changed files with 390 additions and 382 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
- name: Run Pylint
|
||||
run: poetry run pylint --rcfile=pyproject.toml notifications/ sample_website/
|
||||
- name: Run Bandit
|
||||
run: poetry run bandit -c pyproject.toml -r notifications/
|
||||
run: poetry run bandit -c pyproject.toml -r notifications/ sample_website/
|
||||
|
||||
|
||||
test:
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ repos:
|
|||
entry: poetry run pylint
|
||||
language: system
|
||||
args: ["--rcfile=pyproject.toml"]
|
||||
exclude: "migrations"
|
||||
|
||||
- repo: https://github.com/PyCQA/bandit
|
||||
rev: 1.7.5
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class NotificationSettings:
|
|||
notification_settings = NotificationSettings(NOTIFICATION_DEFAULTS)
|
||||
|
||||
|
||||
def reload_notification_settings(*args: Any, **kwargs: Any):
|
||||
def reload_notification_settings(*args: Any, **kwargs: Any): # pylint: disable=unused-argument
|
||||
setting = kwargs["setting"]
|
||||
if setting == "DJANGO_NOTIFICATIONS_CONFIG":
|
||||
notification_settings.reload()
|
||||
|
|
|
|||
763
poetry.lock
generated
763
poetry.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -113,8 +113,8 @@ load-plugins = [
|
|||
"pylint_django",
|
||||
"pylint.extensions.mccabe",
|
||||
]
|
||||
ignore = [
|
||||
"migrations",
|
||||
ignore-paths = [
|
||||
"notifications/migrations/",
|
||||
]
|
||||
jobs = 0
|
||||
django-settings-module = "notifications.settings"
|
||||
|
|
|
|||
Loading…
Reference in a new issue