-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (76 loc) · 1.96 KB
/
pyproject.toml
File metadata and controls
81 lines (76 loc) · 1.96 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
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
73
74
75
76
77
78
79
80
81
[project]
name = "caldata-mdsa-caltrans-pems"
version = "0.1.0"
description = "Traffic Operations PeMS Modernization"
authors = ["Traffic Operations <Zhenyu.Zhu@dot.ca.gov>"]
license = "MIT"
readme = "README.md"
requires-python = "==3.12.*"
dependencies = [
"dbt-core~=1.10",
"dbt-snowflake~=1.10",
"geopandas~=1.1",
"mkdocs-material~=9.6.14",
"snowflake-connector-python[pandas]>=3.16.0",
"snowflake-snowpark-python>=1.35.0",
]
[dependency-groups]
dev = [
"pre-commit>=4.2.0",
"sqlfluff>=3.4.1",
"sqlfluff-templater-dbt>=3.4.1",
]
[tool.ruff]
line-length = 88
select = [
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # comprehensions
"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"PLC", # pylint
"PLE", # pylint
"PLR", # pylint import style
"PLW", # pylint
"RET", # flake8-return
"RUF", # ruff-specific rules
"SIM", # flake8-simplify
"T10", # flake8-debugger
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
respect-gitignore = true
ignore = [
"D100", # public module
"D101", # public class
"D102", # public method
"D103", # public function
"D104", # public package
"D203", # blank line before docstring
"D212", # Start multi-line docstring at the second line.
"E501", # line length handled by black
"ISC001", # Handled by formatter
"PGH003", # specific mypy ignore codes
"PLR0913", # too many arguments
"PLR0912", # too many branches
"RET505", # no-else-return
"RET506", # no-else-raise
]
target-version = "py310"
[tool.ruff.lint]
exclude = ["jobs/data_relay/*.py"]
[tool.mypy]
python_version = "3.10"
allow_untyped_decorators = true # would love to enable this, but airflow decorators are untyped
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
warn_redundant_casts = true
warn_unused_ignores = false
warn_unreachable = true