-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
12 changed files
with
1,488 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
__pycache__ | ||
.venv | ||
*.mbp | ||
maubot.yaml | ||
requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.