-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
125 lines (112 loc) · 3.15 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[tool.poetry]
name = "expense-tracker"
version = "0.1.0"
description = ""
authors = ["Puneeth Chaganti <[email protected]>"]
package-mode = false
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
seleniumbase = "^4.29.3"
pytest-parallel = "^0.1.1"
numpy = "^2.0.1"
pandas = "^2.2.2"
SQLAlchemy = "^2.0.31"
streamlit = "^1.13.0"
alembic = "^1.8.1"
pyperclip = "^1.8.2"
openpyxl = "^3.1.5"
gitpython = "^3.1.43"
pytz = "^2024.2"
toml = "^0.10.2"
[tool.poetry.group.dev.dependencies]
zulint = {git = "https://github.com/zulip/zulint.git"}
ruff = "^0.6.7"
mypy = "^1.11.2"
pandas-stubs = "^2.2.2.240909"
types-requests = "^2.32.0.20240914"
types-beautifulsoup4 = "^4.12.0.20240907"
black = "^24.8.0"
gitlint = "^0.19.1"
types-toml = "^0.10.8.20240310"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
[tool.ruff.lint]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
# https://beta.ruff.rs/docs/rules/#tryceratops-try
select = [
"ANN", # annotations
"B", # bugbear
"C4", # comprehensions
"COM", # trailing comma
"DJ", # Django
"DTZ", # naive datetime
"E", # style errors
"EXE", # shebang
"F", # flakes
"FLY", # string formatting
"G", # logging format
"I", # import sorting
"INT", # gettext
"ISC", # string concatenation
"N", # naming
"PGH", # pygrep-hooks
"PIE", # miscellaneous
"PL", # pylint
"PYI", # typing stubs
"Q", # quotes
"RSE", # raise
"RUF", # Ruff
"S", # security
"SIM", # simplify
"T10", # debugger
"UP", # upgrade
"W", # style warnings
"YTT", # sys.version
]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `cls` in classmethod
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"COM812", # Trailing comma missing
"DJ001", # Avoid using `null=True` on string-based fields
"DJ008", # Model does not define `__str__` method
"E402", # Module level import not at top of file
"E501", # Line too long
"PLR0915", # Too many statements
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"S105", # Possible hardcoded password
"S607", # Starting a process with a partial executable path
]
[tool.mypy]
scripts_are_modules = true
show_traceback = true
# Enable strict mode, with some exceptions.
strict = true
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_decorators = false
warn_return_any = false
# Enable optional errors.
enable_error_code = [
"redundant-expr",
"truthy-bool",
"ignore-without-code",
"unused-awaitable",
]
# Display the codes needed for # type: ignore[code] annotations.
show_error_codes = true
# Warn of unreachable or redundant code.
warn_unreachable = true
# To suppress all missing import errors for all untyped libraries
ignore_missing_imports = true
plugins = "sqlalchemy.ext.mypy.plugin"
exclude = '''sample/.*'''