djangosnippets.org: Latest snippets posted by MrtnBckrhttps://djangosnippets.org/users/MrtnBckr/2019-04-18T08:43:18.039984-05:00MrtnBckrCalculating Maintainability Index for a whole project
2019-04-18T08:43:18.039984-05:00MrtnBckrhttps://djangosnippets.org/snippets/10665/<p>With this command you can calculate the maintainability index for your whole project. </p>
<p>In your settings you have to add a dictionary called <code>RADON_MI_SETTINGS</code>. It could be like this: </p>
<p><code>python
RADON_MI_SETTINGS = {
'paths': ['projectname'],
'exclude': 'projectname/some_app/some_file.py',
'ignore': 'migrations,tests',
}</code></p>
<p>I had to add following packages:
<code>radon==3.0.1
progress==1.5
plotly==3.7.0 …</code></p>
Freely redistributable