-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
46 lines (39 loc) · 1.2 KB
/
pyproject.toml
File metadata and controls
46 lines (39 loc) · 1.2 KB
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
[project]
name = "autobiographer"
version = "0.1.0"
description = "A personal data platform for reconstructing the narrative arc of your life from digital traces."
requires-python = ">=3.9"
[tool.ruff]
target-version = "py39"
line-length = 100
exclude = ["venv", ".venv"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"S", # flake8-bandit (security)
"UP", # pyupgrade
]
ignore = [
"S101", # assert statements (used in tests)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S", "B"]
"record_flythrough.py" = ["E501"] # long lines are embedded JS inside f-strings
[tool.mypy]
python_version = "3.9"
files = ["autobiographer.py", "analysis_utils.py", "visualize.py", "record_flythrough.py", "find_checkin.py", "tools"]
ignore_missing_imports = true
warn_unused_ignores = true
warn_return_any = true
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = ["streamlit.*", "pydeck.*", "plotly.*", "geopandas.*", "moviepy.*", "imageio.*", "playwright.*"]
ignore_errors = true
follow_imports = "skip"
[tool.bandit]
exclude_dirs = ["venv", "tests"]
skips = ["B101"] # assert statements