Skip to content

Commit a27ab8f

Browse files
committed
fixing github workflows, updating .gitignore and pre-commit config
1 parent 830a51e commit a27ab8f

File tree

14 files changed

+4208
-23
lines changed

14 files changed

+4208
-23
lines changed

.github/workflows/pylint.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
20-
pip install pylint
20+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2121
- name: Analysing the code with pylint
2222
run: |
23-
pylint $(git ls-files '*.py') --rcfile=.pylintrc
23+
pip install pylint
24+
pylint $(git ls-files '*.py') --rcfile=.pylintrc

.github/workflows/test_on_push.yaml renamed to .github/workflows/test.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,15 @@ jobs:
1010
python-version: ["3.10"]
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v4
15+
uses: actions/setup-python@v3
1616
with:
1717
python-version: ${{ matrix.python-version }}
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip
2121
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
22-
- name: Python Black
23-
run: |
24-
pip install black==24.10.0
25-
black . --check
2622
- name: Test with pytest
2723
run: |
28-
pytest --cov-report html:./results/cov_html --cov=src tests/
24+
pytest --cov-report html:./results/cov_html tests/

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ logs/
22
ipynb_checkpoints/
33
mlruns
44
mlartifacts
5-
*.csv
5+
# *.csv
66

77
# Byte-compiled / optimized / DLL files
88
__pycache__/

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ repos:
66
- id: check-yaml
77
- id: end-of-file-fixer
88
- id: trailing-whitespace
9-
- id: check-added-large-files
109
- id: debug-statements
1110
language_version: python3
1211

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ dvc pull
6161
Reproduces the pipeline using DVC
6262
```
6363
dvc repro
64-
```
64+
```

config/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
author: Rafael Greca Vieira
22
model_type: scikit-learn_0.23
33
project_name: e2e-mlops-project
4-
project_version: v0.1
4+
project_version: v0.1

config/settings.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ EXPERIMENT_ID: '708342276728582022'
77
VERSION: '1.0'
88

99
# GENERAL SETTINGS
10-
DATA_PATH: '/media/greca/HD/GitHub/e2e-mlops-project/data/'
10+
DATA_PATH: './data/'
1111
RAW_FILE_NAME: 'Original_ObesityDataSet.csv'
12-
ARTIFACTS_PATH: '/media/greca/HD/GitHub/e2e-mlops-project/models/artifacts/'
13-
FEATURES_PATH: '/media/greca/HD/GitHub/e2e-mlops-project/models/features/'
14-
RESEARCH_ENVIRONMENT_PATH: '/media/greca/HD/GitHub/e2e-mlops-project/notebooks/'
12+
ARTIFACTS_PATH: './models/artifacts/'
13+
FEATURES_PATH: './models/features/'
14+
RESEARCH_ENVIRONMENT_PATH: './notebooks/'
1515
TARGET_COLUMN: 'NObeyesdad'
1616
LOG_LEVEL: 'INFO'
17-
LOG_PATH: '/media/greca/HD/GitHub/e2e-mlops-project/'
17+
LOG_PATH: './'

data/Original_ObesityDataSet.csv

Lines changed: 2112 additions & 0 deletions
Large diffs are not rendered by default.

data/Preprocessed_ObesityDataSet.csv

Lines changed: 2077 additions & 0 deletions
Large diffs are not rendered by default.

models/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
The models and artifacts will not be stored locally but rather in an AWS S3 Bucket to simulate a real-world scenario where models will have different versions (model versioning).
44

5-
This folder will be used temporarily to save the models and artifacts locally and then transfer it to your AWS S3 bucket. After that, the files will be deleted. If you choose to not use an AWS S3 Bucket and an AWS RDS Databaset, then the `artifacts` and the `features` will be stored into the `models` folder.
5+
This folder will be used temporarily to save the models and artifacts locally and then transfer it to your AWS S3 bucket. After that, the files will be deleted. If you choose to not use an AWS S3 Bucket and an AWS RDS Databaset, then the `artifacts` and the `features` will be stored into the `models` folder.

0 commit comments

Comments
 (0)