Skip to content

Commit

Permalink
Add support for type-checking
Browse files Browse the repository at this point in the history
- Added Mypy to the project
- Removed Polars as a dependency
  • Loading branch information
habedi committed Aug 5, 2024
1 parent fc7f274 commit d45b22d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ coverage.xml
*.tmp
temp/
tmp/
out/

# Database files (SQLite, DuckDB, etc.)
*.duckdb
Expand All @@ -69,5 +70,3 @@ poetry.lock

# Miscellaneous files and directories to ignore
# Add any additional file patterns a directory names that should be ignored down here


10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ python = "^3.9"
pylint = "^3.0.3"
pytest = "^8.0.1"
jupyter = "^1.0.0"
polars = "^0.20.17"
seaborn = "^0.13.2"
pandas = "^2.2.1"

mypy = "^1.11.1"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.pytest.ini_options]
pythonpath = [".", "bin", "src"]

[tool.mypy]
python_version = "3.9"
ignore_missing_imports = true
disallow_untyped_calls = true
strict_optional = true
warn_redundant_casts = true

0 comments on commit d45b22d

Please sign in to comment.