Skip to content

Commit 1a5bfee

Browse files
committed
readme
1 parent c5e3817 commit 1a5bfee

1 file changed

Lines changed: 45 additions & 29 deletions

File tree

README.md

Lines changed: 45 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -129,42 +129,58 @@ Here is an example image of the predictions made by Detectree2.
129129
## Project Organization
130130

131131
```
132+
├── .github/ # CI workflows, badges and logos
133+
│ └── workflows/
134+
├── CODE_OF_CONDUCT.md
132135
├── LICENSE
133136
├── Makefile
134137
├── README.md
135-
├── detectree2
136-
   ├── data_loading
137-
   ├── models
138-
   ├── preprocessing
139-
   ├── R
140-
   └── tests
141-
├── docs
142-
   └── source
143-
├── model_garden
144-
── notebooks
145-
│   ├── colab
146-
│   ├── colabJB
147-
   ├── colabJH
148-
   ├── colabKoay
149-
   ├── colabPan
150-
   ├── colabSeb
151-
│   ├── exploratory
152-
   ├── mask_rcnn
153-
   │   ├── testing
154-
│   │   └── training
155-
   ├── reports
156-
   └── turing
157-
── report
158-
│   ├── figures
159-
│   └── sections
160-
└── requirements
138+
├── detectree2/ # Python package (models, data loading, preprocessing, tests, etc.)
139+
├── data_loading/
140+
├── models/
141+
├── preprocessing/
142+
├── R/
143+
└── tests/
144+
├── docker/ # Container recipe for reproducible builds
145+
└── Dockerfile
146+
├── docs/ # Sphinx documentation sources
147+
│ └── source/
148+
├── model_garden/ # Pre-trained model metadata
149+
├── notebooks/ # Exploratory, Colab, and Turing workflows
150+
├── colab/
151+
├── exploratory/
152+
├── reports/
153+
── turing/
154+
├── report/ # Paper figures and manuscript sections
155+
├── figures/
156+
── sections/
157+
── requirements/ # Runtime, test, and dev requirement files
158+
├── requirements.txt
159+
── dev-requirements.txt
160+
│ └── test-requirements.txt
161+
├── setup.cfg # Lint/format config used by CI
162+
── setup.py
163+
└── .setup_scripts/ # Helper scripts for local tooling
161164
```
162165

163166
## Code formatting
164167

165-
To automatically format your code, make sure you have `black` installed (`pip install black`) and call
166-
```black .```
167-
from within the project directory.
168+
We rely on the `pre-commit` hooks defined in `.pre-commit-config.yaml` to keep formatting, linting, and type checking consistent (yapf, isort, flake8, and mypy share the configuration in `setup.cfg`).
169+
170+
```bash
171+
python -m pip install pre-commit -r requirements/dev-requirements.txt
172+
pre-commit install
173+
pre-commit run --all-files
174+
```
175+
176+
If you need to run the tools individually you can use:
177+
178+
```bash
179+
yapf -ir detectree2
180+
isort detectree2
181+
flake8 detectree2
182+
mypy detectree2
183+
```
168184

169185
---
170186

0 commit comments

Comments
 (0)