-
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.
- Loading branch information
Aldrian Harjati
committed
Sep 7, 2023
1 parent
ade2867
commit d521dcd
Showing
7 changed files
with
742 additions
and
23 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
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,81 @@ | ||
[tool.poetry] | ||
name = "regtech-data-validator" | ||
version = "0.1.0" | ||
description = "" | ||
authors = [] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
black = "23.3.0" | ||
ruff = "0.0.259" | ||
pandas = "2.1.0" | ||
pandera = "0.16.1" | ||
pytest = "7.4.0" | ||
pytest-cov = "4.1.0" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
# Black formatting | ||
[tool.black] | ||
preview = true | ||
skip-string-normalization = true | ||
line-length = 120 | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
| .gitignore # list of files or directories to be excluded in the | ||
| .git # root of the project | ||
| Dockerfile | ||
| .github | ||
| .devcontainer | ||
| data | ||
)/ | ||
''' | ||
|
||
# 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 | ||
# Regexes for lines to exclude from consideration | ||
exclude_also = [ | ||
# Don't complain about missing debug-only code: | ||
"def __repr__", | ||
"if self\\.debug", | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
"raise AssertionError", | ||
"raise NotImplementedError", | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
"if 0:", | ||
"if __name__ == .__main__.:", | ||
|
||
# Don't complain about abstract methods, they aren't run: | ||
"@(abc\\.)?abstractmethod", | ||
] |