-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
62 lines (51 loc) · 1.51 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
[tool.poetry]
name = "googly-eyes"
version = "0.1.0"
description = ""
authors = ["Alex Haslam <[email protected]>"]
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[tool.poetry.dependencies]
python = "~3.11"
numpy = "1.23.5"
streamlit = "1.37.0"
pillow = "~10"
requests = "^2.31.0"
aws-requests-auth = "^0.4.3"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
tensorflow = "~2.14.0"
mypy = "~1.0.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
[tool.lint.ruff]
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