Skip to content

Commit

Permalink
Merge pull request #7 from astrandb/DevEnv
Browse files Browse the repository at this point in the history
Modernize dev env
  • Loading branch information
astrandb authored May 20, 2022
2 parents 5ee945f + 4ec2790 commit 56feffd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
27 changes: 20 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
__VERSION__ = "0.1.5"
src_dir := custom_components/teracom

bump:
bump2version --allow-dirty --current-version $(__VERSION__) patch Makefile custom_components/teracom/const.py custom_components/teracom/manifest.json
bump2version --allow-dirty patch $(src_dir)/const.py $(src_dir)/manifest.json

bump_minor:
bump2version --allow-dirty minor $(src_dir)/const.py $(src_dir)/manifest.json

bump_major:
bump2version --allow-dirty major $(src_dir)/const.py $(src_dir)/manifest.json

lint:
isort custom_components
black custom_components
flake8 custom_components
isort $(src_dir)
black $(src_dir)
flake8 $(src_dir)

.venv:
python3.9 -m venv .venv

install_dev: | .venv
(. .venv/bin/activate; \
pip install -Ur requirements-dev.txt )

install_dev:
pip install -r requirements-dev.txt
clean:
rm -rf .venv $(src_dir)/__pycache__
8 changes: 8 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
black
bump2version
colorlog
flake8
isort
wheel

homeassistant

0 comments on commit 56feffd

Please # to comment.