mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-04-19 20:51:00 +00:00
Improve CI config
This commit is contained in:
parent
1157c0897a
commit
b035ee80cd
3 changed files with 31 additions and 4 deletions
|
|
@ -20,6 +20,10 @@ repos:
|
|||
rev: v2.17.4
|
||||
hooks:
|
||||
- id: pylint
|
||||
name: pylint
|
||||
entry: pylint
|
||||
language: system
|
||||
types: [python]
|
||||
|
||||
- repo: https://github.com/PyCQA/bandit
|
||||
rev: 1.7.5
|
||||
|
|
|
|||
6
Makefile
6
Makefile
|
|
@ -16,3 +16,9 @@ migrate:
|
|||
|
||||
shell:
|
||||
poetry run python manage.py shell
|
||||
|
||||
pylint:
|
||||
poetry run pylint --django-settings-module="notifications.settings" notifications/
|
||||
|
||||
bandit:
|
||||
poetry run bandit -c pyproject.toml -r notifications/
|
||||
|
|
|
|||
|
|
@ -110,18 +110,33 @@ pytest-xdist = "^3.3.1"
|
|||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[tool.pylint.MASTER]
|
||||
[tool.pylint.MAIN]
|
||||
load-plugins = [
|
||||
"pylint_django"
|
||||
"pylint_django",
|
||||
"pylint.extensions.mccabe",
|
||||
]
|
||||
ignore = "migrations/"
|
||||
jobs = 0
|
||||
django-settings-module = "notifications.settings"
|
||||
|
||||
[tool.pylint.DESIGN]
|
||||
max-locals = 20
|
||||
max-args = 10
|
||||
max-parents = 10
|
||||
|
||||
[tool.pylint.'MESSAGES CONTROL']
|
||||
disable = [
|
||||
"missing-function-docstring",
|
||||
"missing-class-docstring",
|
||||
"missing-module-docstring",
|
||||
# "invalid-name",
|
||||
"fixme",
|
||||
]
|
||||
|
||||
[tool.pylint.FORMAT]
|
||||
max-line-length = 120
|
||||
|
||||
|
||||
[tool.black]
|
||||
line-length = 120
|
||||
|
||||
|
|
@ -129,10 +144,12 @@ line-length = 120
|
|||
profile = "black"
|
||||
|
||||
[tool.bandit]
|
||||
skips = ["B106"]
|
||||
exclude_dirs = [
|
||||
"notifications/tests",
|
||||
]
|
||||
|
||||
[tool.bandit.assert_used]
|
||||
skips = ["*test*.py"]
|
||||
skips = ["*test*.py"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
minversion = "7.0"
|
||||
|
|
|
|||
Loading…
Reference in a new issue