-
Notifications
You must be signed in to change notification settings - Fork 22
/
pyproject.toml
75 lines (65 loc) · 1.45 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
[tool.poetry]
package-mode = false
[tool.poetry.dependencies]
python = "^3.9"
beautifulsoup4 = "4.12.3"
everypolitician = "0.0.13"
lxml = "5.2.1"
python-dateutil = "2.2"
requests = { version = "2.32.3", extras = ["security"] }
requests-cache = "0.4.13"
Click = "^8.0"
click-log = "0.3.2"
mysoc-validator = "^0.9.3"
tqdm = "^4.67.1"
jinja2 = "^3.1.4"
[tool.poetry.group.dev.dependencies]
ruff = "^0.6.7"
[tool.ruff]
extend-include = ["scripts/*"]
extend-exclude = [
'scripts/.gitignore',
'scripts/2016_data_update/README.txt',
'scripts/config.pm.incvs',
'scripts/consts',
'scripts/crontab',
'scripts/dailyupdate',
'scripts/datadotparl/mp-party-check',
'scripts/datadotparl/one-off-add-pims-ids',
'scripts/datadotparl/one-off-sync-lord-parties',
'scripts/dircmp',
'scripts/divisionextractor.pl',
'scripts/morningupdate',
'scripts/ni-format-revert',
'scripts/ni_membership.php',
'scripts/one-off-move-names-to-persons',
'scripts/other-sites-update',
'scripts/updatedaterange-parse',
'scripts/updatedaterange-scrape',
'scripts/weeklyupdate',
'scripts/ynmp/tests.txt'
]
[tool.ruff.lint]
select = [
"E",
# flake8
"F",
# isort
"I",
]
ignore = [
# line too long, sorted with formatter where it can be
"E501",
]
[tool.ruff.lint.isort]
known-first-party = ["hub"]
section-order = [
"future",
"standard-library",
"django",
"third-party",
"first-party",
"local-folder"
]
[tool.ruff.lint.isort.sections]
django = ["django"]