aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-08-12 11:42:57 +0200
committerMartin Czygan <martin.czygan@gmail.com>2020-08-12 11:42:57 +0200
commit031e1a70dab2d8c6bcc93ce64a7cc42d5eb7fcda (patch)
tree41605e881a83f7a489f72a71b5dda4e16f170842
parent179d9fcfc67fba02a409692be3d47a8e59cf86ac (diff)
downloadfuzzycat-031e1a70dab2d8c6bcc93ce64a7cc42d5eb7fcda.tar.gz
fuzzycat-031e1a70dab2d8c6bcc93ce64a7cc42d5eb7fcda.zip
add makefile style target
-rw-r--r--Makefile5
-rw-r--r--setup.py3
2 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d4ec061..5e2bab1 100644
--- a/Makefile
+++ b/Makefile
@@ -16,8 +16,9 @@ data/release_export_expanded.json.gz: ## Download release export
mkdir -p data
wget -c https://archive.org/download/fatcat_bulk_exports_2020-08-05/release_export_expanded.json.gz -O $@
-.PHONY: black
-black: ## Format all Python files
+.PHONY: style
+style: ## Apply import sorting and black source formatting on all files
+ isort -c --atomic .
find . -name "*.py" -exec black {} \;
.PHONY: dist
diff --git a/setup.py b/setup.py
index f3723ef..4ceb6e8 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,5 @@
import setuptools
+
from fuzzycat import __version__
with open("README.md", "r") as fh:
@@ -23,5 +24,5 @@ with open("README.md", "r") as fh:
zip_safe=False,
entry_points={"console_scripts": ["fuzzycat=fuzzycat.main:main",],},
install_requires=[],
- extras_require={"dev": ["black", "twine"],},
+ extras_require={"dev": ["black", "twine", "isort"],},
)