Skip to content

Instantly share code, notes, and snippets.

@MMesch
Created March 5, 2018 14:11
Show Gist options
  • Save MMesch/9274c8d88fde2778837de2ad75b462e9 to your computer and use it in GitHub Desktop.
Save MMesch/9274c8d88fde2778837de2ad75b462e9 to your computer and use it in GitHub Desktop.
python refactoring commands

Python Refactoring Strategies

project structure and workflow

git and CI

check if git and CI are setup

folder tree

tree -L 2

test coverage

coverage run setup.py test

documentation

check if there is a documentation

code structure and style

check class and module dependencies

conda install -c conda-forge pylint pygraphviz
pyreverse -my -s 1 -o png -p rova ROVA/*.py

check code duplication

pylint --disable=all --enable=duplicate-code ROVA

check code style

flake8 src/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment