mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
* do better with loop cleanup * changelog * remove redundant line * Do this a bit better than the initial pass * Improve windows support Make some other things coroutines to work with improved design * Wish we'd have done this right from the start... * Update deps surrounding this - see bpo-23057 - neccessary for windows users - nice for consistent support channel info / feature availability * dep issue * Fix tests * duplication plugin py version * actually handle this * Reconfigure some checks with codeclimate, disable pylint for now * style * Is my exasperation showing yet? * handle some stupid stuff * meh * dep changelog
34 lines
803 B
Makefile
34 lines
803 B
Makefile
PYTHON ?= python3.8
|
|
|
|
# Python Code Style
|
|
reformat:
|
|
$(PYTHON) -m black -l 99 --target-version py37 `git ls-files "*.py"`
|
|
stylecheck:
|
|
$(PYTHON) -m black --check -l 99 --target-version py37 `git ls-files "*.py"`
|
|
|
|
# Translations
|
|
gettext:
|
|
$(PYTHON) -m redgettext --command-docstrings --verbose --recursive redbot --exclude-files "redbot/pytest/**/*"
|
|
upload_translations:
|
|
$(MAKE) gettext
|
|
crowdin upload sources
|
|
download_translations:
|
|
crowdin download
|
|
|
|
# Dependencies
|
|
bumpdeps:
|
|
$(PYTHON) tools/bumpdeps.py
|
|
|
|
# Development environment
|
|
newenv:
|
|
$(PYTHON) -m venv --clear .venv
|
|
.venv/bin/pip install -U pip setuptools
|
|
$(MAKE) syncenv
|
|
syncenv:
|
|
.venv/bin/pip install -Ur ./tools/dev-requirements.txt
|
|
|
|
# Changelog check
|
|
checkchangelog:
|
|
bash tools/check_changelog_entries.sh
|
|
$(PYTHON) -m towncrier --draft
|