-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
93 lines (82 loc) · 2.14 KB
/
setup.cfg
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
[metadata]
name = vkit-open-model
version = 0.1.0
author = Hunt Zhan
author_email = huntzhan@vkit-x.com
description = Open Models For OCR, Document Understanding
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/vkit-x/vkit-open-model
license = Dual-licensed
license_files =
LICENSE.txt
LICENSE_COMMERCIAL.txt
LICENSE_SSPL.txt
[options]
packages = find:
python_requires = ~=3.8
install_requires =
torch >= 1.12.0
torchvision >= 0.13.0
scipy >= 1.9.1
[options.extras_require]
dev =
torchinfo >= 1.7.0
build >= 0.2.1
pytest >= 6.1.2
pytest-parallel >= 0.1.1
yapf >= 0.30.0
flake8 >= 3.8.4
pdoc3 >= 0.9.2
twine >= 3.2.0
ipython >= 7.20.0
pdbpp >= 0.10.2
rope >= 0.18.0
# Code linting.
[flake8]
max-line-length = 100
ignore =
# From AllenNLP
# these rules don't play well with black
E203 # whitespace before :
W503 # line break before binary operator
# From Yapf
# indentation is not a multiple of four,
E111
E114
# visually indented line with same indent as next logical line,
E129
exclude =
build/**
dist/**
data/**
doc/**
per-file-ignores =
# __init__.py files are allowed to have unused imports and lines-too-long
*/__init__.py:F401
*/**/**/__init__.py:F401,E501
# tests don't have to respect
# E731: do not assign a lambda expression, use a def
# F403: from module import *’ used; unable to detect undefined names
# F405: name may be undefined, or defined from star imports: module
tests/**:E731,F403,F405
# scripts don't have to respect
# E402: imports not at top of file (because we mess with sys.path)
scripts/**:E402
# Code formatting.
[yapf]
based_on_style = google
column_limit = 100
dedent_closing_brackets = true
coalesce_brackets = true
split_before_bitwise_operator = true
split_before_arithmetic_operator = true
split_before_logical_operator = true
align_closing_bracket_with_visual_indent = true
allow_multiline_lambdas = true
# Test.
[tool:pytest]
addopts =
-m 'not local'
# TODO: I don't known why it fails.
# --workers auto