-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (78 loc) · 2.57 KB
/
pyproject.toml
File metadata and controls
87 lines (78 loc) · 2.57 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
82
83
84
85
86
87
[project]
name = "python-wherescape"
version = "0.1.0"
description = "Python library for WhereScape RED"
requires-python = ">=3.14"
dependencies = [
"hubspot-api-client>=12.0.0",
"notion-client>=3.0.0",
"numpy>=2.4.2",
"pandas>=3.0.0",
"pyodbc>=5.3.0",
"python-slugify>=8.0.4",
"requests>=2.32.5",
]
[dependency-groups]
dev = [
"ruff>=0.15.1",
]
[tool.ruff]
# Target Python 3.14
target-version = "py314"
# Set line length to match common Python conventions
line-length = 119
# Exclude common directories
extend-exclude = [
"__pycache__",
"*.pyc",
".venv",
"venv",
]
# Enable specific rule sets
[tool.ruff.lint]
ignore = [
"D100", # Checks for undocumented public module definitions.
"D101", # Checks for undocumented public class definitions.
"D102", # Checks for undocumented public method definitions.
"D103", # Checks for undocumented public function definitions.
"D104", # Checks for undocumented public package definitions.
"D105", # Checks for undocumented magic method definitions.
"D106", # Checks for undocumented public class definitions, for nested classes.
"D107", # Checks for public __init__ method definitions that are missing docstrings.
"D200", # Checks for single-line docstrings that are broken across multiple lines.
"D205", # Checks for docstring summary lines that are not separated from the docstring description by one blank line.
"D401", # Checks for docstring first lines that are not in an imperative mood.
"D402", # Checks for function docstrings that include the function's signature in the summary line.
"SIM108", # if-else-block-instead-of-if-exp
"SIM117" # multiple-with-statements
]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
# "COM", # flake8-commas
# "D", # pydocstyle
# "D405", # capitalize-section-name
# "D411", # no-blank-line-before-section
# "D416", # section-name-ends-in-colon
# "D417", # undocumented-param
"E", # pycodestyle errors
"F", # pyflakes
# "G004", # Logging statements should not use f"..." for their first argument
"I", # isort
"N", # pep8-naming
# "PIE", # flake8-pie
# "PT", # flake8-pytest
"SIM", # flake8-simplify
# "TID252", # relative-imports
"UP", # pyupgrade
"W" # pycodestyle warnings
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.isort]
combine-as-imports = true
lines-after-imports = 2
[tool.ruff.lint.pycodestyle]
max-doc-length = 119
[tool.ruff.lint.pydocstyle]
convention = "pep257"