-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update repo to use poetry (ticket #41) Changes: - Removed requirements.txt - Removed setup.cfg - Updated devcontainer's dockerfile to use poetry (instead of pip) - Created pyproject containing requirements and setup.cfg content - Created poetry.lock - Updated few comments in phase_validations and schema_template (that were not formatted properly). - Updated github-actions tests to use poetry (instead of pip) Tests: - Validate that we still able to execute python through VSCode - Validate that we still able to run Tests through VSCode - Passed linters - Passed unit-tests --------- Co-authored-by: Aldrian Harjati <[email protected]>
- Loading branch information
Showing
15 changed files
with
868 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,9 @@ __pycache__ | |
.DS_Store | ||
.ruff_cache/ | ||
|
||
#pytest | ||
.coverage | ||
coverage.xml | ||
|
||
# excel artifact | ||
~$example_sblar.xlsx |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[tool.poetry] | ||
name = "regtech-data-validator" | ||
version = "0.1.0" | ||
description = "RegTech submission data parser and validator" | ||
authors = [] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
pandas = "2.1.0" | ||
pandera = "0.16.1" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "7.4.0" | ||
pytest-cov = "4.1.0" | ||
black = "23.3.0" | ||
ruff = "0.0.259" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
# Black formatting | ||
[tool.black] | ||
preview = true | ||
line-length = 120 | ||
skip-string-normalization = true | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
| .devcontainer | ||
| .git | ||
| .gitignore | ||
| .github | ||
| data | ||
| tools | ||
)/ | ||
''' | ||
|
||
# Linting | ||
[tool.ruff] | ||
# Same as Black. | ||
line-length = 120 | ||
|
||
# Testing | ||
[tool.pytest.ini_options] | ||
addopts = [ | ||
"--cov-report=term-missing", | ||
"--cov-branch", | ||
"--cov-report=xml", | ||
"--cov-report=term", | ||
"--cov=src", | ||
"-vv", | ||
"--strict-markers", | ||
"-rfE", | ||
] | ||
testpaths = [ | ||
"src/tests", | ||
] | ||
|
||
[tool.coverage.run] | ||
relative_files = true | ||
source = ["src"] | ||
|
||
[tool.coverage.report] | ||
skip_empty = true |
Oops, something went wrong.