Skip to content

Commit

Permalink
Merge pull request #2 from du-phan/W2/input-validation-framework
Browse files Browse the repository at this point in the history
Input Validation Framework
  • Loading branch information
du-phan authored Dec 31, 2024
2 parents 0915f3a + dfaef4e commit 0337874
Show file tree
Hide file tree
Showing 35 changed files with 2,528 additions and 218 deletions.
2 changes: 0 additions & 2 deletions .flake8

This file was deleted.

13 changes: 3 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,12 @@ jobs:
- name: Install Dependencies
run: poetry install

# Step 6: Run Linting (optional, remove if using pre-commit hooks)
- name: Lint Code with Black
run: poetry run black --check .

- name: Lint Code with Flake8
run: poetry run flake8 .

# Step 7: Run Unit Tests with Coverage
# Step 6: Run Unit Tests with Coverage
- name: Run Unit Tests with Coverage
run: |
poetry run pytest --maxfail=3 --disable-warnings --cov=core --cov=methodologies --cov-report=xml --cov-report=html tests/
poetry run pytest --maxfail=3 --disable-warnings --cov=core --cov=methodologies --cov-report=xml --cov-report=html sequestrae_engine/tests/
# Step 8: Upload Coverage Report as an Artifact (optional)
# Step 7: Upload Coverage Report as an Artifact (optional)
- name: Upload Coverage Report
uses: actions/upload-artifact@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.python-version
.vscode/
.DS_Store

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
12 changes: 0 additions & 12 deletions .isort.cfg

This file was deleted.

15 changes: 4 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
repos:
- repo: https://github.com/psf/black
rev: 24.10.0 # Replace with the version of Black you're using
rev: 24.10.0 # Replace with the version of Black you're using
hooks:
- id: black
args: ["--line-length=88"]
args: ["--line-length=100"]

- repo: https://github.com/pycqa/isort
rev: 5.13.2 # Replace with the version of isort you're using
rev: 5.13.2 # Replace with the version of isort you're using
hooks:
- id: isort
args: ["--profile=black"]

- repo: https://github.com/pycqa/flake8
rev: 7.1.1 # Replace with the version of Flake8 you're using
hooks:
- id: flake8
args: ["--max-line-length=88"]
additional_dependencies: []

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # Replace with the version of pre-commit you're using
rev: v5.0.0 # Replace with the version of pre-commit you're using
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
2 changes: 1 addition & 1 deletion PRD.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ Establish the foundational structure and implement core utilities to support met
- Fully functional directory structure with placeholder files.
- Implemented and tested `utilities.py`and `constants.py`

## Week 2: Input Validation Framework
## Week 2: Input Validation Framework [DONE]

### Goal

Expand Down
1 change: 0 additions & 1 deletion core/input_validation.py

This file was deleted.

51 changes: 0 additions & 51 deletions core/utilities.py

This file was deleted.

33 changes: 0 additions & 33 deletions data/input_schema.json

This file was deleted.

21 changes: 0 additions & 21 deletions methodologies/abstract_methodology.py

This file was deleted.

13 changes: 0 additions & 13 deletions methodologies/factory.py

This file was deleted.

15 changes: 0 additions & 15 deletions methodologies/puro_earth_v3.py

This file was deleted.

1 change: 0 additions & 1 deletion methodologies/templates/__init__.py

This file was deleted.

Loading

0 comments on commit 0337874

Please sign in to comment.