mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-05 18:58:53 -05:00
- uvloop is now a dependency on non-Windows CPython systems - `make setupenv` renamed to `make newenv` - `make syncenv` added to sync local venv to current dependencies - `dev-requirements.txt` moved into `tools` directory
27 lines
590 B
Makefile
27 lines
590 B
Makefile
# Python Code Style
|
|
reformat:
|
|
black -l 99 `git ls-files "*.py"`
|
|
stylecheck:
|
|
black --check -l 99 `git ls-files "*.py"`
|
|
|
|
# Translations
|
|
gettext:
|
|
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:
|
|
python3.7 -m venv --clear .venv
|
|
.venv/bin/pip install -U pip setuptools
|
|
$(MAKE) syncenv
|
|
syncenv:
|
|
.venv/bin/pip install -Ur ./tools/dev-requirements.txt
|