-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (113 loc) · 3.24 KB
/
pyproject.toml
File metadata and controls
121 lines (113 loc) · 3.24 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
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
[project]
name = "ltr_license_scraper_portland_maine"
version = "1.0.1"
readme = "README.md"
requires-python = ">=3.10"
license = { "file" = "LICENSE" }
authors = [{ "name" = "Ramona T", "email" = "ramona.t.dsa@pm.me" }]
urls = { "GitHub" = "https://github.com/MaineDSA/ltr_license_scraper_portland" }
dependencies = [
"pandas~=2.3.3",
"requests~=2.32.5",
"tqdm~=4.67.1",
]
[project.scripts]
ltr_license_scraper_portland = "src.license_downloader:main"
[build-system]
requires = ["setuptools>=80.0"]
build-backend = "setuptools.build_meta"
[dependency-groups]
dev = [
{include-group = "lint"},
{include-group = "pre-commit"},
{include-group = "security"},
{include-group = "types"},
]
lint = [
"ruff==0.14.7",
"ssort==0.16.0",
]
pre-commit = [
"pre-commit~=4.5.0",
]
security = [
"bandit[sarif]==1.9.4",
]
types = [
"mypy~=1.19.1",
"pandas-stubs~=2.3.3.251219",
"types-requests~=2.32.4.20250913",
"types-tqdm~=4.67.3.20260205"
]
[tool]
[tool.setuptools.packages.find]
where = ["."]
include = ["src*"]
[tool.ruff]
line-length = 160
include = [
"src/**/*.py",
"tests/**/*.py",
]
[tool.ruff.lint]
extend-select = [
"A", # flake8-builtins (A)
"ANN", # flake8-annotations (ANN)
"ARG", # flake8-unused-arguments (ARG)
"B", # flake8-bugbear (B)
"BLE", # flake8-blind-except (BLE)
"C4", # flake8-comprehensions (C4)
"C90", # mccabe (C90)
"D", # pydocstyle (D)
"DTZ", # flake8-datetimez (DTZ)
"E", # pycodestyle-error (E)
"EM", # flake8-errmsg (EM)
"EXE", # flake8-executable (EXE)
"F", # Pyflakes (F)
"FA", # flake8-future-annotations (FA)
"FBT", # flake8-boolean-trap (FBT)
"FIX", # flake8-fixme (FIX)
"G", # flake8-logging-format (G)
"I", # isort (I)
"ICN", # flake8-import-conventions (ICN)
"INP", # flake8-no-pep420 (INP)
"INT", # flake8-gettext (INT)
"ISC", # flake8-implicit-str-concat (ISC)
"LOG", # flake8-logging (LOG)
"N", # pep8-naming (N)
"PIE", # flake8-pie (PIE)
"PL", # Pylint (PL)
"PT", # flake8-pytest-style (PT)
"PTH", # flake8-use-pathlib (PTH)
"Q", # flake8-quotes (Q)
"RET", # flake8-return (RET)
"RSE", # flake8-raise (RSE)
"RUF", # Ruff-specific rules (RUF)
"SIM", # flake8-simplify (SIM)
"SLF", # flake8-self (SLF)
"T10", # flake8-debugger (T10)
"T20", # flake8-print (T20)
"TC", # flake8-type-checking (TC)
"TD", # flake8-todos (TD)
"TID", # flake8-tidy-imports (TID)
"UP", # pyupgrade (UP)
"W", # pycodestyle-warning (W)
"YTT", # flake8-2020 (YTT)
]
ignore = [
"ANN002", # missing-type-args (ANN002)
"ANN003", # missing-type-kwargs (ANN003)
"D100", # undocumented-public-module (D100)
"D102", # undocumented-public-method (D102)
"D103", # undocumented-public-function (D103)
"D104", # undocumented-public-package (D104)
"D107", # undocumented-public-init (D107)
"D203", # incorrect-blank-line-before-class (D203)
"D212", # multi-line-summary-first-line (D212)
"FIX002", # line-contains-todo (FIX002)
]
[tool.ruff.lint.per-file-ignores]
"**/{tests,docs}/*" = [
"SLF001", # private-member-access (SLF001)
"PLR2004", # magic-value-comparison (PLR2004)
]