Skip to content

HumanCellAtlas/bronze

bronze

people used to make stable and durable bronze ancient bells as instruments and alarms in the early days.

We build bronze in this repo as:

  • A library that talks to Slack API, Google Docs/Sheets API in a high-level and friendly way.
  • A deployable and automated alarm service that sends reminders to Slack based on interpretable data files and Google Docs.

Note: we started this project primaryly for HCA DCP deployment and notification automation purposes.

Development

Github GitHub Code style: black

Code style

The bronze code base is complying with the PEP-8 and using Black to format our code, in order to avoid "nitpicky" comments during the code review process so we spend more time discussing about the logic, not code styles.

In order to enable the auto-formatting in the development process, you have to spend a few seconds setting up the pre-commit the first time you clone the repo. It's highly recommended that you install the packages within a virtualenv.

  1. Install pre-commit by running: pip install pre-commit (or simply run pip install -r requirements.txt).
  2. Run pre-commit install to install the git hook.

Once you successfully install the pre-commit hook to this repo, the Black linter/formatter will be automatically triggered and run on this repo. Please make sure you followed the above steps, otherwise your commits might fail at the linting test!

If you really want to manually trigger the linters and formatters on your code, make sure Black and flake8 are installed in your Python environment and run flake8 DIR1 DIR2 and black DIR1 DIR2 --skip-string-normalization respectively.

Deploy

Coming soon...

About

A minimal alarm that reads data from Google Sheets and alerts people via Slack

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published