Skip to content

Commit

Permalink
Switch to Poetry; upgrade deps (#7)
Browse files Browse the repository at this point in the history
* Initial

* Lints
  • Loading branch information
jeffcasavant authored Sep 8, 2021
1 parent a3638be commit 0ed2a4e
Show file tree
Hide file tree
Showing 12 changed files with 1,488 additions and 50 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
__pycache__
.venv
*.mbp
maubot.yaml
requirements.txt
27 changes: 20 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
test:
safety check -r requirements.txt
bandit plugin.py
FILES=twilio_plugin scripts/build_maubot_yaml.py

security:
poetry run safety check
poetry run bandit $(FILES)

lint:
pylint twilio_plugin
poetry run pylint $(FILES)
poetry run black --check $(FILES)
poetry run isort --check $(FILES)

format:
black --line-length 120 twilio_plugin
poetry run black $(FILES)
poetry run isort $(FILES)

build: maubot.yaml
poetry run mbc build

requirements.txt: poetry.lock
poetry export -f requirements.txt --without-hashes | sed 's/;.*//g' > requirements.txt

maubot.yaml: pyproject.toml requirements.txt
poetry run scripts/build_maubot_yaml.py

build:
mbc build
test: lint security
14 changes: 0 additions & 14 deletions maubot.yaml

This file was deleted.

Loading

0 comments on commit 0ed2a4e

Please sign in to comment.