From 16f39970fe0161df68c38d4abfa59e0a696a60c6 Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Sun, 29 Jan 2023 14:39:45 -0700 Subject: [PATCH] Use black formatting dev --- README.md | 16 ++++++++++++++++ polar-plot | 2 -- requirements-dev.txt | 1 + 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 requirements-dev.txt diff --git a/README.md b/README.md index 11d55e8..3dcb7f2 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,22 @@ source env/bin/activate ``` +# Development +Setup like above, and also: + +``` +cd plot-freely/ +source env/bin/activate +pip install -r requirements-dev.txt +``` + +Then before committing new code, make sure it is enprettified: + +``` +black polar-plot +``` + + # See Also CygnusRFI diff --git a/polar-plot b/polar-plot index 7a530d8..5a8d88b 100755 --- a/polar-plot +++ b/polar-plot @@ -27,7 +27,6 @@ # Example: # polar_plot - import numpy as np import matplotlib.pyplot as plt @@ -44,4 +43,3 @@ if __name__ == "__main__": ax.set_ylim(0.0, 90.0) plt.show() - diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..7e66a17 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1 @@ +black