-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
75 lines (58 loc) · 1.53 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]
name = "label-approved"
version = "0.1.0"
description = ""
#readme = "README.md"
license = "MIT"
authors = ["Artturin <[email protected]>"]
[tool.poetry.scripts]
label-approved = 'label_approved.cli:main'
[tool.poetry.dependencies]
python = "^3.9"
PyGithub = "^2.1.1"
python-dateutil = "^2.9.0.post0"
requests = "^2.31.0"
[tool.poetry.dev-dependencies]
pytest = "^8.1.1"
pytest-cov = "^4.1.0"
coverage = {extras = ["toml"], version = "^7.4.4"}
types-python-dateutil = "^2.9.0.20240316"
types-requests = "^2.31.0.20240406"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
strict = true
# for the nixpkgs package as some of these types aren't in nixpkgs
[[tool.mypy.overrides]]
module = [
"pytest"
]
ignore_missing_imports = true
[tool.black]
line-length = 120
target_version = ['py310']
[tool.pylint.master]
init-hook = "import sys; sys.path.append('src')"
[tool.pylint.FORMAT]
output-format = "colorized"
max-line-length = 120
[tool.pylint.messages_control]
disable = [
# Many functions (e.g. callbacks) will naturally have unused arguments.
"unused-argument",
# Disable failure for TODO items in the codebase (code will always have TODOs).
"fixme",
"missing-docstring"
]
[tool.coverage.paths]
source = ["src"]
[tool.coverage.run]
branch = true
source = ["label_approved"]
[tool.coverage.report]
show_missing = true
[tool.pytest.ini_options]
# tests, src so that the nix shell doesn't have to be restarted
testpaths = ["tests", "src"]
addopts = "-sv"