Skip to content

macdice/cfbot

Folders and files

NameName
Last commit message
Last commit date
Feb 17, 2025
Jun 18, 2024
Feb 17, 2025
Jun 19, 2024
Jan 31, 2025
Feb 10, 2021
Feb 17, 2025
Mar 1, 2025
Apr 14, 2025
May 13, 2025
Mar 20, 2025
Mar 1, 2025
Apr 12, 2025
Feb 17, 2025
May 13, 2025
Apr 14, 2025
Apr 13, 2025
Apr 13, 2025
Apr 12, 2025
Mar 2, 2025
Feb 17, 2025
Feb 17, 2025
Feb 17, 2025
Feb 22, 2025
Apr 13, 2025
Feb 17, 2025

Repository files navigation

How to run cfbot locally

Setup database and config

cp example_cfbot_config.py cfbot_config.py
createdb cfbot
createuser cfbot
psql -v ON_ERROR_STOP=1 -f create.sql "dbname=cfbot"

Setup python dependencies

If you want to install them globally:

pip install --user -r requirements.txt

If that doesn't work for some reason or you prefer to scope these dependencies to the project, you can instead use a virtual env:

# create a virtual environment (only needed once)
python3 -m venv env

# activate the environment. You will need to activate this environment in
# your shell every time you want to run the tests. (so it's needed once per
# shell).
source env/bin/activate

# Install the dependencies (only needed once, or whenever extra dependencies
# get added to requirements.txt)
pip install -r requirements.txt

Initialize patch burner template

On Linux

./cfbot_patchburner_docker_ctl.sh init-template

On FreeBSD

./cfbot_patchburner_ctl.sh init-template

Run cfbot

./cfbot.py

Debug a specific patch

./cfbot_patch.py 48 4496

Code formatting and linting

# Format code
make format
# lint code
make lint
# Automatically fix linting errors
make lint-fix
# Automatically fix linting errors including unsafe fixes
# Unsafe fixes are those that may change the behavior of the code, but usually
# you want that behavior
make lint-fix-unsafe
# Run both "make format" and "make lint-fix-unsafe" (usually what you want)
make fix

About

Experimental commitfest machinery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages