This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
85 lines (76 loc) · 1.95 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
76
77
78
79
80
81
82
83
84
85
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "bamboo_crawler/_version.py"
[tool.mypy]
# https://mypy.readthedocs.io/en/latest/config_file.html
ignore_missing_imports = true
disallow_any_decorated = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_unused_ignores = true
warn_return_any = true
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
[tool.black]
line-length = 79
[tool.flake8]
max-line-length = 79
[tool.poetry]
# I use poetry as just a package manager.
# So, I only write the settings that poetry needs.
# The actual package metadata is written in setup.cfg.
# I use pypa/build for packaging.
name = "bamboo-crawler"
version = "0.0.0"
description = ""
authors = []
packages = [{ include = "bamboo_crawler" }]
[tool.poetry.dependencies]
python = "^3.8"
boto3 = '*'
cssselect = '*'
lxml = '*'
requests = '*'
PyYAML = '*'
SQLAlchemy = { extras = ["mypy"], version = ">=2.0.0" }
types-pyyaml = "*"
lxml-stubs = "*"
types-requests = "*"
boto3-stubs = "*"
[tool.poetry.group.dev.dependencies]
moto = { extras = ["server"], version = '*' }
flake8 = "*"
mypy = '*'
httpbin = '*'
black = "*"
isort = "*"
coverage = "*"
pytest = "*"
pytest-cov = "*"
pyupgrade = "*"
build = "*"
setuptools-scm = "*"
poethepoet = "*"
[tool.poe.tasks]
test = "pytest"
coverage-xml = "pytest --cov=bamboo_crawler --doctest-modules --cov-report=xml"
format = [
{ cmd = "isort bamboo_crawler" },
{ cmd = "black bamboo_crawler" },
{ cmd = "pyupgrade --py38-plus bamboo_crawler/*.py" },
]
check = [
{ cmd = "isort --check-only --diff bamboo_crawler" },
{ cmd = "black --check --diff bamboo_crawler" },
{ cmd = "flake8 bamboo_crawler" },
{ cmd = "mypy bamboo_crawler" },
]
build = [{ cmd = "python -m build" }]