Skip to content

Commit

Permalink
Relocated app.py & config.yaml to repo root
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-florentin-charles committed Nov 29, 2023
1 parent cf1a524 commit ab66ae8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# bcn-rainfall-models

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![coverage badge](coverage.svg)](https://github.com/nedbat/coveragepy)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

🚧 WIP 🚧

## Requirements

- Python 3
- Pip

## Get started

1. Clone repository
Expand All @@ -18,7 +23,6 @@
git clone https://github.com/paul-florentin-charles/bcn-rainfall-models.git
cd bcn-rainfall-models
pip3 install -r requirements.txt
cd src
python3 app.py
```

Expand All @@ -27,6 +31,5 @@ python3 app.py
git clone https://github.com/paul-florentin-charles/bcn-rainfall-models.git
cd bcn-rainfall-models
python3 -m pip install -r requirements.txt
cd src
python3 app.py
```
2 changes: 1 addition & 1 deletion src/app.py → app.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
)

app = Flask(__name__)
swagger = Swagger(app, template_file=f"{cfg.get_api_doc_path()}/template.yaml")
swagger = Swagger(app, template_file=f"src/{cfg.get_api_doc_path()}/template.yaml")
base_path: str = swagger.template["basePath"]


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tst/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from src.config import Config, CONFIG_FNAME

config: Config = Config(path=f"src/{CONFIG_FNAME}")
config: Config = Config(path=CONFIG_FNAME)


class TestConfig:
Expand Down

0 comments on commit ab66ae8

Please sign in to comment.