-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update multiple documentation for pre-commit hooks
- Loading branch information
Showing
12 changed files
with
78 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
@import url('https://fonts.cdnfonts.com/css/century-gothic'); | ||
@import url("https://fonts.cdnfonts.com/css/century-gothic"); | ||
html, | ||
body, | ||
[class*="css"] { | ||
font-family: "Century Gothic"; | ||
} | ||
:root { | ||
--md-primary-fg-color: #18A48C; | ||
--md-accent-fg-color: #EB003B; | ||
} | ||
--md-primary-fg-color: #18a48c; | ||
--md-accent-fg-color: #eb003b; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,27 +8,28 @@ In this page you will learn how to set up a project using the cookiecutter. The | |
|
||
1. **Request repository setup**: First things first, you need a repo created for you. Submit a [Create a repo in the Nesta GitHub org](https://github.com/nestauk/github_support/issues/new/choose) issue from the [github_support](https://github.com/nestauk/github_support) issue page. You will need to provide a project name, suggested repo name, whether public/private, github teams involved, team leading the project, short and long description of the project. An empty repo will be set up for you and you will receive a notification when this is done. | ||
|
||
2. **Set up your project locally**: It is important that you *do not clone the repo yet!* Instead, follow these steps: | ||
|
||
* Open the terminal and `cd` to a folder where you eventually want your repo to be | ||
* Run `cookiecutter https://github.com/nestauk/ds-cookiecutter`. This will automatically install the latest version. If you want to install a different version run `cookiecutter https://github.com/nestauk/ds-cookiecutter -c <VERSION TAG>` | ||
* You will be presented with the following: | ||
- `You've downloaded ~.cookiecutters/ds-cookiecutter before. Is it okay to delete and re-download it?[yes]` press Enter to confirm yes, it's always best to use the latest version. | ||
- `project_name [Project_name]`: add_a_name_here | ||
- `repo_name [add_a_name_here]`: add_a_name_here | ||
- `author_name [Nesta]`: add_author or press Enter to confirm Nesta | ||
- `description [A short description of the project.]`: add short description | ||
- `Select openness: 1 - public 2 - private Choose from 1, 2 [1]`: regardless of the choice you can always change it in the future | ||
|
||
* `cd` to project directory and run `make install` to: | ||
* Create a conda environment with a name corresponding to the repo_name prompt and install the project package and its dependencies | ||
* Configure and install Git pre-commit hooks | ||
2. **Set up your project locally**: It is important that you _do not clone the repo yet!_ Instead, follow these steps: | ||
|
||
- Open the terminal and `cd` to a folder where you eventually want your repo to be | ||
- Run `cookiecutter https://github.com/nestauk/ds-cookiecutter`. This will automatically install the latest version. If you want to install a different version run `cookiecutter https://github.com/nestauk/ds-cookiecutter -c <VERSION TAG>` | ||
- You will be presented with the following: | ||
|
||
- `You've downloaded ~.cookiecutters/ds-cookiecutter before. Is it okay to delete and re-download it?[yes]` press Enter to confirm yes, it's always best to use the latest version. | ||
- `project_name [Project_name]`: add_a_name_here | ||
- `repo_name [add_a_name_here]`: add_a_name_here | ||
- `author_name [Nesta]`: add_author or press Enter to confirm Nesta | ||
- `description [A short description of the project.]`: add short description | ||
- `Select openness: 1 - public 2 - private Choose from 1, 2 [1]`: regardless of the choice you can always change it in the future | ||
|
||
- `cd` to project directory and run `make install` to: | ||
- Create a conda environment with a name corresponding to the repo_name prompt and install the project package and its dependencies | ||
- Configure and install Git pre-commit hooks | ||
|
||
3. **Connect your local project to github**: You have set up your project locally and now you have to connect it to the remote repo. When you change directory to your created project folder, you will see that you are in a git repository and the generated cookiecutter has committed itself to the `0_setup_cookiecutter` branch. Connect to the git repo by running `git remote add origin [email protected]:nestauk/<REPONAME>` to point your local project to the configured repository. | ||
|
||
4. **Merging your new branch**: You are on `0_setup_cookiecutter`, whist `dev` is empty. They have diverging histories so you won't be able to push any work to `dev`. For this reason you need to merge `0_setup_cookiecutter` to `dev` by running: | ||
|
||
``` bash | ||
```bash | ||
|
||
git checkout 0_setup_cookiecutter | ||
git branch dev 0_setup_cookiecutter -f | ||
|
@@ -38,9 +39,8 @@ In this page you will learn how to set up a project using the cookiecutter. The | |
|
||
5. **You are all set!** You can delete the `0_setup_cookicutter` branch and enjoy coding! | ||
|
||
|
||
### Team Members | ||
|
||
* Open the terminal and `cd` into a folder where you want the project set up. | ||
* Clone the repository by running `git clone <REPONAME>` and `cd` into the repository. | ||
* Run `make install` to configure the development environment. | ||
- Open the terminal and `cd` into a folder where you want the project set up. | ||
- Clone the repository by running `git clone <REPONAME>` and `cd` into the repository. | ||
- Run `make install` to configure the development environment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,4 +62,3 @@ nav: | |
- Quickstart: quickstart.md | ||
- Structure: structure.md | ||
- Python Environments: guidelines.md | ||
|
Oops, something went wrong.