fix pylint

This commit is contained in:
Alvaro Mariano 2023-11-02 21:06:10 -03:00
parent a08ebaa0a3
commit f202d31709
5 changed files with 390 additions and 382 deletions

View file

@ -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:

View file

@ -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

View file

@ -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

File diff suppressed because it is too large Load diff

View file

@ -113,8 +113,8 @@ load-plugins = [
"pylint_django",
"pylint.extensions.mccabe",
]
ignore = [
"migrations",
ignore-paths = [
"notifications/migrations/",
]
jobs = 0
django-settings-module = "notifications.settings"