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

Add linting #6

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Add linting #6

wants to merge 13 commits into from

Conversation

JunAishima
Copy link
Contributor

in addition to adding pre-commit linting, also clean up some of my code that I had left around after moving all of the necessary functions for the task into tasks.py

 * flake8, black, isort
 * do flake8 separately because it only reports errors, does not
   actually change files
 * still have some variable issues to verify
 * prevent conflicts with black in handling spaces around array slicing
   with ":"
 * see pre-commit/pre-commit-hooks#112 comment
   from April 28, 2016 by dwaynebailey for where I saw this
   configuration method used
 * resolve the conflict between flake8 and black, which follows the
   anti-pattern described here https://www.flake8rules.com/rules/W503.html
 * after all code moved into tasks
 * looking back at the beamline profile_collection, the tomography
   images are to be used here
 * use "ell" instead of the lowercase letter "l" to prevent possible
   mis-reading (as capital I, for instance)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants