-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (75 loc) · 2.1 KB
/
pyproject.toml
File metadata and controls
87 lines (75 loc) · 2.1 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "bis_scraper"
version = "0.1.0"
authors = [
{name = "Magnus Hansson", email = "hansson.carl.magnus@gmail.com"},
]
description = "A Python package to download and transform speeches from central banks globally"
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
]
dependencies = [
"requests>=2.28.0",
"beautifulsoup4~=4.8.0", # Required by textract
"textract==1.6.3", # Pin to a specific version to avoid dependency issues
"click>=8.1.0",
"pydantic>=2.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"isort>=5.12.0",
"mypy>=1.0.0",
"ruff>=0.0.260",
"responses>=0.22.0",
"types-requests>=2.28.0",
"types-beautifulsoup4>=4.8.0",
"pre-commit>=3.0.0",
]
[project.urls]
"Homepage" = "https://github.com/HanssonMagnus/bis-scraper"
"Bug Tracker" = "https://github.com/HanssonMagnus/bis-scraper/issues"
[project.scripts]
bis-scraper = "bis_scraper.cli.main:main"
[tool.hatch.build.targets.wheel]
packages = ["bis_scraper"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
[tool.black]
line-length = 88
target-version = ["py39"]
[tool.isort]
profile = "black"
line_length = 88
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
[tool.ruff]
line-length = 88
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "B", "I"]
ignore = []
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["E501"]
"bis_scraper/utils/date_utils.py" = ["B904"]
"bis_scraper/scrapers/**/*.py" = ["E501"]
"bis_scraper/converters/**/*.py" = ["E501"]
"bis_scraper/utils/**/*.py" = ["E501"]
"bis_scraper/cli/**/*.py" = ["E501"]