-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
137 lines (124 loc) · 3.31 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
[tool.poetry]
name = "sickchill-exceptions"
version = "2021.6.26-1"
description = "Tool to generate lists of scene and season exceptions from sources such as theTVDB, theXEM, and aniDB"
authors = ["miigotu <[email protected]>"]
license = "GPLv3"
readme = "README.md"
packages = [{include = "sickchill_exceptions"}]
[tool.poetry.dependencies]
python = " >=3.6.2,<4.0"
poethepoet = "^0.10.0"
requests-cache = "^0.6.4"
coloredlogger = "^1.3.12"
coloredlogs = "^15.0.1"
verboselogs = "^1.7"
requests-html = "^0.10.0"
GitPython = "^3.1.18"
subliminal = "^2.1.0"
[tool.poetry.dev-dependencies]
isort = "^5.9.1"
black = "^21.6-beta.0"
flake9 = "^3.8.3-post2"
coveralls = "^3.1.0"
mock = "^4.0.3"
pytest-vcr = "^1.0.2"
pytest-cov = "^2.12.1"
pytest-isort = "^2.0.0"
flake8-pytest-style = "^1.5.0"
flake8-commas = "^2.0.0"
flake8-quotes = "^3.2.0"
flake8-bandit = "^2.1.2"
flake8-docstrings = "^1.6.0"
codecov = "^2.1.11"
pytest = "^6.2.4"
poethepoet = "^0.10.0"
flake8-coding = "^1.3.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = ["tests", "update_exceptions.py"]
addopts = "--cov=update_exceptions.py --cov-report xml --no-cov-on-fail"
[tool.isort]
line_length = 160
combine_as_imports = true
order_by_type = false
remove_imports = [ "from __future__ import absolute_import", "from __future__ import print_function", "from __future__ import unicode_literals" ]
extra_standard_library = [ "posixpath", "ntpath" ]
use_parentheses = true
src_paths = [ "update_exceptions.py" ]
profile = "black"
[tool.black]
line-length = 160
target_version = ['py38']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.venv # exclude virtualenv
| \.venv
| build
| dist
)/
)
'''
[tool.flake8]
exclude = [
".eggs",
".git",
"__pycache__",
"docs/source/conf.py",
"build",
"dist",
".venv",
]
inline-quotes = "double"
docstring-convention = "numpy"
ignore = [
"C812",
"D4",
"D400",
"D401",
"D403",
"D406",
"D407",
"D200",
"D202",
"D205",
"D100",
"D101",
"D102",
"D103",
"D104",
"D106",
"S101",
"PT009",
"PT017"
]
max_line_length = 160
show_source = "True"
no-accept-encodings = "True"
builtins = ["_"]
select = 'C103'
[tool.poe.tasks]
ava = "which ava && ava"
codecov = "codecov"
pytest = "pytest"
xo = "which xo && xo"
yarn = "which yarn && yarn"
black = {cmd = "black .", help = "Reformat code using black"}
_black = {cmd = "black . --check --diff", help = "Check code style using black"}
isort = {cmd = "isort .", help = "Fix import order"}
_isort = {cmd = "isort . --check-only --diff", help = "Check import order"}
flake8 = {cmd = "flake8 --select C103 update_network_lists.py", help = "Check for undefined variables"}
lint = ["_black", "_isort", "flake8"]
format = ["black", "isort", "flake8"]
install_yarn = {shell = "which npm && npm install -G"}
yarn_upgrade = {cmd = "yarn upgrade", help = "update yarn dependancies"}
poetry_update = {shell = "poetry update", help = "update python dependancies"}
_add_locks = {shell = "git add poetry.lock yarn.lock", help = "Add yarn and poetry lock files"}
depup = ["poetry_update", "yarn_upgrade", "_add_locks"]
run = "python sickchill_exceptions/main.py"