Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 5924a06

Browse files
committed
Update pyproject.toml
1 parent 317b646 commit 5924a06

File tree

1 file changed

+37
-41
lines changed

1 file changed

+37
-41
lines changed

pyproject.toml

Lines changed: 37 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
[build-system]
2+
requires = ["poetry-core>=1.0.0"]
3+
build-backend = "poetry.core.masonry.api"
4+
15
[tool.poetry]
26
name = "twitter_video_tools"
37
description = "Twitter Video Tools is a multi-processing supported video downloader, supports videos from twitter (or specific user from twitter) && monsnode."
4-
version = "0.0.1"
58
authors = []
69
license = "MIT"
710
readme = "README.md"
@@ -24,6 +27,31 @@ classifiers = [
2427
"Typing :: Typed",
2528
]
2629
include = ["LICENSE"]
30+
version = "2022.11.17"
31+
32+
[tool.mypy]
33+
disallow_untyped_defs = true
34+
disallow_any_unimported = true
35+
no_implicit_optional = true
36+
check_untyped_defs = true
37+
warn_return_any = true
38+
show_error_codes = true
39+
warn_unused_ignores = true
40+
python_version = 3.9
41+
disable_error_code = ["no-untyped-call"]
42+
43+
[tool.pydantic-mypy]
44+
init_forbid_extra = true
45+
init_typed = true
46+
warn_required_dynamic_aliases = true
47+
warn_untyped_fields = true
48+
49+
[tool.yapf]
50+
based_on_style = "pep8"
51+
spaces_before_comment = 4
52+
split_before_logical_operator = true
53+
column_limit = 119
54+
allow_split_before_dict_value = false
2755

2856
[tool.poetry.dependencies]
2957
python = "^3.9"
@@ -47,51 +75,19 @@ types-requests = "^2.28.11"
4775
types-beautifulsoup4 = "^4.11.6"
4876
types-invoke = "^1.7.3"
4977

50-
[build-system]
51-
requires = ["poetry-core>=1.0.0"]
52-
build-backend = "poetry.core.masonry.api"
53-
54-
[tool.mypy]
55-
plugins = ["pydantic.mypy"]
56-
disallow_untyped_defs = true
57-
disallow_any_unimported = true
58-
no_implicit_optional = true
59-
check_untyped_defs = true
60-
warn_return_any = true
61-
show_error_codes = true
62-
warn_unused_ignores = true
63-
python_version = 3.9
64-
disable_error_code = [
65-
"no-untyped-call",
66-
] # not all python modules are typed correctly
67-
68-
[tool.pydantic-mypy]
69-
init_forbid_extra = true
70-
init_typed = true
71-
warn_required_dynamic_aliases = true
72-
warn_untyped_fields = true
73-
7478
[tool.pylint.MASTER]
75-
load-plugins = 'pylint_quotes'
76-
persistent = 'yes'
77-
suggestion-mode = 'yes'
78-
unsafe-load-any-extension = 'yes'
79+
load-plugins = "pylint_quotes"
80+
persistent = "yes"
81+
suggestion-mode = "yes"
82+
unsafe-load-any-extension = "yes"
7983

8084
[tool.pylint.format]
8185
max-line-length = 119
8286

83-
[tool.pylint.'MESSAGES CONTROL']
87+
[tool.pylint."MESSAGES CONTROL"]
8488
extension-pkg-whitelist = "pydantic"
85-
disable = '''missing-docstring
86-
'''
89+
disable = "missing-docstring\n"
8790

8891
[tool.pylint.IMPORTS]
89-
allow-any-import-level = ''
90-
allow-wildcard-with-all = 'no'
91-
92-
[tool.yapf]
93-
based_on_style = "pep8"
94-
spaces_before_comment = 4
95-
split_before_logical_operator = true
96-
column_limit = 119
97-
allow_split_before_dict_value = false # https://github.com/google/yapf/issues/392#issuecomment-407958737
92+
allow-any-import-level = ""
93+
allow-wildcard-with-all = "no"

0 commit comments

Comments
 (0)