-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
72 lines (62 loc) · 1.81 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[tool.poetry]
name = "hand-writing-generation"
version = "0.1.0"
description = ""
authors = ["Alex Haslam <[email protected]>"]
[[tool.poetry.source]]
name = "torch"
url = "https://download.pytorch.org/whl/cpu"
priority = "supplemental"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[tool.poetry.dependencies]
python = "~3.11"
numpy = "1.23.5"
pandas = "1.5.2"
scipy = "1.10.0"
ipython = "^8.15.0"
jupyter = "1.0.0"
matplotlib = "^3.8.0"
mypy = "~1.0.0"
pandas-stubs = "~1.5.2"
plotly = "5.15.0"
streamlit = "1.37.0"
scikit-learn = "^1.5.0"
torch = {version="2.0.0",source="torch"}
torchvision = {version="0.15.1",source="torch"}
kaggle = "^1.5.16"
aws-requests-auth = "^0.4.3"
requests = "^2.32.1"
streamlit-drawable-canvas = "^0.9.3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["F", "E", "W", "I", "PLE", "RUF001", "RUF002", "RUF003", "INP", "UP006", "UP007", "ICN"]
ignore = [
"E402", # Module level import not at top of file [Issues with streamlit/pydantic and pre-import path alterations]
]
unfixable = ["RUF001", "RUF002", "RUF003"]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F401"]
[tool.ruff.lint.flake8-import-conventions.aliases]
# Default aliases from Ruff (removed unused).
numpy = "np"
pandas = "pd"
scipy = "sp"
datetime = "dt"
"plotly.express" = "px"
"plotly.graph_objects" = "go"
streamlit = "st"
typing = "t"
[tool.mypy]
strict=true
sqlite_cache=true # Faster because doesn't need to read defaults
show_column_numbers=true # Necessary to properly highlight issues in VSCode
disallow_any_generics=false # pd.Series is not a fully supported generic
[[tool.mypy.overrides]] # Packages without type information
module=['scipy', 'scipy.*', 'plotly', 'plotly.*']
ignore_missing_imports=true