-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
72 lines (60 loc) · 2.1 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
[tool.poetry]
authors = ["Robb Shecter <robb@public.law>"]
description = "Open-gov spiders written with Python"
name = "open-gov-crawlers"
packages = [ { include = "public_law" } ]
repository = "https://github.com/public-law/open-gov-crawlers"
version = "1.1.2"
[tool.poetry.dependencies]
beautifulsoup4 = "^4.10"
cryptography = "*"
lxml = "*"
more-itertools = "*"
progressbar2 = "*"
pydantic = "^2.5"
python = "^3.12"
pytz = "*"
scrapy = {git = "https://github.com/scrapy/scrapy.git", branch = "master"}
scrapy-crawlera = "*"
tika = "^1.24"
titlecase = "*"
toolz = "*"
# spidermon = {extras = ["monitoring", "validation"], version = "^1.16.2"}
[tool.poetry.group.dev.dependencies]
pyright = "^1.1"
pytest = "*"
pytest-watch = "*"
vcrpy = "*"
[tool.pyright]
pythonVersion = "3.12"
include = ["public_law", "tests"]
ignore = ["**/typings"]
# As strict as possible: strict mode plus the optional strict checks.
typeCheckingMode = "strict"
reportCallInDefaultInitializer = "error"
reportImplicitStringConcatenation = "error"
reportMissingSuperCall = "error"
reportPropertyTypeMismatch = "error"
reportUninitializedInstanceVariable = "error"
reportUnnecessaryTypeIgnoreComment = "error"
reportUnusedCallResult = "error"
reportUnusedImport = false
reportMissingTypeStubs = false # I don't know the purpose. Scrapy does better w/out type stubs.
[tool.pytest.ini_options]
addopts = "-q --no-header --doctest-modules -p no:pastebin"
minversion = "7.1"
pythonpath = "."
python_files = ["*_test.py",]
python_classes = ["Test", "Describe"]
python_functions = ["test_", "it_", "and_", "but_", "they_"]
testpaths = ["tests", "public_law"]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.pylint.main]
disable = [
"missing-function-docstring",
"missing-module-docstring",
"no-value-for-parameter",
"too-few-public-methods",
]