Commit ed71ac4 1 parent 7c6afb9 commit ed71ac4 Copy full SHA for ed71ac4
File tree 7 files changed +811
-1
lines changed
7 files changed +811
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Data files - we do not want to populate data files into this repository.
2
+ * .nc
3
+ * .ncdf
4
+ * .tiff
5
+ * .tif
6
+ * .geotiff
7
+ * .xlsx
8
+ * .xls
9
+ * .csv
10
+ * .dat
11
+ * .txt
12
+
1
13
# History files
2
14
.Rhistory
3
15
.Rapp.history
Original file line number Diff line number Diff line change
1
+ linters: linters_with_defaults(
2
+ cyclocomp_linter(complexity_limit = 10L),
3
+ indentation_linter(indent = 4L)
4
+ )
Original file line number Diff line number Diff line change
1
+ # See https://pre-commit.com for more information
2
+ # See https://pre-commit.com/hooks.html for more hooks
3
+ repos :
4
+ - repo : https://github.com/pre-commit/pre-commit-hooks
5
+ # These are generic hooks to keep files clean and tidy
6
+ rev : v5.0.0
7
+ hooks :
8
+ - id : trailing-whitespace
9
+ - id : end-of-file-fixer
10
+ - id : check-yaml
11
+ - id : check-added-large-files
12
+ - id : check-merge-conflict
13
+ - id : debug-statements
14
+ - repo : https://github.com/astral-sh/ruff-pre-commit
15
+ # This is python specific linting and formatting using ruff
16
+ rev : v0.9.3
17
+ hooks :
18
+ - id : ruff # Run the linter.
19
+ args : [--fix, --exit-non-zero-on-fix]
20
+ - id : ruff-format # Run the formatter.
21
+ - repo : https://github.com/igorshubovych/markdownlint-cli
22
+ # This is markdown linting
23
+ rev : v0.44.0
24
+ hooks :
25
+ - id : markdownlint
26
+ - repo : https://github.com/lorenzwalthert/precommit
27
+ # These are R specific tools to format and lint the code and check for common errors
28
+ rev : v0.4.3.9003
29
+ hooks :
30
+ - id : style-files
31
+ args : [--style_pkg=styler, --indent_by=4, --style_fun=tidyverse_style]
32
+ - id : lintr
33
+ - id : readme-rmd-rendered
34
+ - id : parsable-R
35
+ - id : no-browser-statement
36
+ - id : no-debug-statement
37
+ - id : deps-in-desc
Original file line number Diff line number Diff line change
1
+ {
2
+ // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3
+ // Extension identifier format: ${publisher }.${name}. Example: vscode.csharp
4
+ // List of extensions which should be recommended for users of this workspace.
5
+ "recommendations" : [
6
+ " ms-python.python" ,
7
+ " ms-toolsai.jupyter" ,
8
+ " davidanson.vscode-markdownlint" ,
9
+ " executablebookproject.myst-highlight" ,
10
+ " reditorsupport.r"
11
+ ],
12
+ // List of extensions recommended by VS Code that should not be recommended for users of this workspace.
13
+ "unwantedRecommendations" : []
14
+ }
Original file line number Diff line number Diff line change 1
1
# The Virtual Ecosystem data science repository
2
2
3
- This repository is the data science repository for the Virtual Ecosystem project. It is used to store all the research and analysis being used to parameterise and run the Virtual Ecosystem model.
3
+ This repository is the data science repository for the Virtual Ecosystem project. It is
4
+ used to store all the research and analysis being used to parameterise and run the
5
+ Virtual Ecosystem model.
6
+
7
+ ## Getting started with the repository
8
+
9
+ The first step is to clone the repository
10
+
11
+ ``` sh
12
+ git clone https://github.com/ImperialCollegeLondon/ve_data_science.git
13
+ ```
14
+
15
+ That gives you a complete copy of all of the current files across all branches and all
16
+ of the changes ever made to those files.
17
+
18
+ However, we use a number of quality assurance tools (QA) to help manage the code files
19
+ and documents within this repository. You also need to do the following to get this set
20
+ up working:
21
+
22
+ 1 . Install python
23
+
24
+ 2 . Install ` poetry ` : ` pip install poetry `
25
+
26
+ 3 . Run ` poetry install `
27
+
28
+ 4 . Set the interpreter path
29
+ * Run ` poetry env list --full-path ` , copy the result and add ` /bin/python ` to the
30
+ end. For example:
31
+ ` /Users/dorme/Library/Caches/pypoetry/virtualenvs/ve-data-science-ND1juKN--py3.12/bin/python `
32
+ * In the menus, select View > Command Palette and then enter ` interpreter ` in the
33
+ box to find the ` Python: Select Interpreter ` command. Click on `Enter interpreter
34
+ path` and paste in the path from above.
35
+
36
+ 5 . Run ` poetry run pre-commit install `
37
+
38
+ 6 . Whenever you are working in the repo, use ` poetry shell ` to start up the environment
39
+ first.
You can’t perform that action at this time.
0 commit comments