Skip to content

Latest commit

History

History
29 lines (24 loc) 路 1.55 KB

File metadata and controls

29 lines (24 loc) 路 1.55 KB

Getting Started

We use GitHub to host code, to track issues and feature requests, as well as accept pull requests. Before raising a pull request, ensure you have raised a corresponding issue and discussed a possible solution with a maintainer. This gives your pull request the highest chance of getting merged quickly.

馃嵈 Git Workflow

We use GitHub Flow, so all code changes happen through pull requests.

  1. Fork the repo and create a new branch from the develop branch.
  2. Branches are named as fix/fix-name or feature/feature-name
  3. Please test your changes.
  4. Once you are confident in your code changes, create a pull request in your fork to the develop branch in the WikimediaNorge/UKBot base repository.
  5. Link the issue of the base repository in your Pull request description. Guide
  6. When you raise a pull request, we automatically run tests on our CI. Please ensure that all the tests are passing for your code change. We will not be able to accept your change if the test suite doesn't pass.

馃彙 Setup for local development

Install packages needed for development

pip install -r requirements.txt  -r requirements_dev.txt

Install pre-commit

pre-commit install

When you have done your changes pre-commit will run when running git commit. To run it whenever you want type:

pre-commit run --all-files