Skip to content

Instantly share code, notes, and snippets.

@vparitskiy
Forked from xgenvn/blackd.service
Last active January 4, 2022 12:01
Show Gist options
  • Save vparitskiy/90fb9b589b87fd53d1bee0a202e5126c to your computer and use it in GitHub Desktop.
Save vparitskiy/90fb9b589b87fd53d1bee0a202e5126c to your computer and use it in GitHub Desktop.
BlackD Formatter as service
# /etc/systemd/system/blackd.service
# sudo systemctl start blackd
# sudo systemctl enable blackd
# sudo systemctl status blackd
[Unit]
Description=Black Formatter Service
[Service]
# User=<user> # specify user if black[d] installed into local pythonpath
ExecStart=/home/brian/bin/miniconda3/bin/blackd --bind-host=127.0.0.1
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment