Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISE-183 OpenIMIS Sonar - Backend Module #156

Merged
merged 18 commits into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[flake8]
exclude =
.git,
.gitignore,
*.pot,
*.py[co],
__pycache__,
venv,
.env,
.coverage,
openIMIS/wsgi.py,
dist,
openIMIS/migrations

ignore =
# At least two spaces before inline comment.
E261,
# Too many blank lines (3).
E303,
# Ambiguous variable name.
E741,

max-line-length = 120
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ jobs:
ls -l
cd openIMIS
ls -l
python manage.py test --keepdb $(jq -r '(.modules[]|.name)' ../openimis.json)
coverage run manage.py test --keepdb $(jq -r '(.modules[]|.name)' ../openimis.json)
coverage report
env:
SECRET_KEY: secret
DEBUG: true
Expand Down
1 change: 1 addition & 0 deletions openIMIS/openIMIS/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def SITE_URL():

# TEST_WITHOUT_MIGRATIONS_COMMAND = 'django_nose.management.commands.test.Command'
# TEST_RUNNER = 'core.test_utils.UnManagedModelTestRunner'

# Application definition

INSTALLED_APPS = [
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ drf-spectacular==0.25.1
django-cprofile-middleware==1.0.5
# flake8 and django-nose are needed for sonar scan in backend modules
flake8
django-nose