@@ -4,70 +4,70 @@ requires = ["flit_core >=3.2,<4"]
4
4
5
5
[project ]
6
6
name = " segmentador"
7
- version = " 0.1.0 "
7
+ version = " 0.2.1 "
8
8
description = " Segmentador de textos legais para a Câmara dos Deputados."
9
9
authors = [
10
- {
name =
" felsiq" ,
email =
" [email protected] " }
10
+ {
name =
" felsiq" ,
email =
" [email protected] " }
11
11
]
12
12
13
13
requires-python = " >=3.7"
14
14
15
15
dependencies = [
16
- " numpy >= 1.21.6" ,
17
- " torch >= 1.11.0" ,
18
- " transformers == 4.16.2" ,
19
- " regex >= 2022.3.15" ,
20
- " buscador @ git+https://github.com/ulysses-camara/[email protected] " ,
16
+ " numpy >= 1.21.6" ,
17
+ " torch >= 1.11.0" ,
18
+ " transformers == 4.16.2" ,
19
+ " regex >= 2022.3.15" ,
20
+ " buscador @ git+https://github.com/ulysses-camara/[email protected] " ,
21
21
]
22
22
23
23
[project .optional-dependencies ]
24
24
optimize = [
25
- " optimum[onnxruntime] >= 1.1.0" ,
26
- " onnxruntime >= 1.11.0" ,
27
- " colorama >= 0.4.4" ,
25
+ " optimum[onnxruntime] >= 1.1.0" ,
26
+ " onnxruntime >= 1.11.0" ,
27
+ " colorama >= 0.4.4" ,
28
28
]
29
29
30
30
codestyle = [
31
- " black >= 22.1.0" ,
31
+ " black >= 22.1.0" ,
32
32
]
33
33
34
34
notebooks = [
35
- " seaborn >= 0.11.2" ,
36
- " notebook >= 6.4.8" ,
37
- " jupyter-contrib-nbextensions >= 0.5.1" ,
38
- " ipywidgets >= 7.6.5" ,
39
- " autopep8 >= 1.6.0" ,
40
- " flask >= 2.0.3" ,
41
- " flask-cors >= 3.0.10" ,
42
- " onnx >= 1.11.0" ,
35
+ " seaborn >= 0.11.2" ,
36
+ " notebook >= 6.4.8" ,
37
+ " jupyter-contrib-nbextensions >= 0.5.1" ,
38
+ " ipywidgets >= 7.6.5" ,
39
+ " autopep8 >= 1.6.0" ,
40
+ " flask >= 2.0.3" ,
41
+ " flask-cors >= 3.0.10" ,
42
+ " onnx >= 1.11.0" ,
43
43
]
44
44
45
45
train = [
46
- " datasets >= 1.18.3" ,
47
- " pandas >= 1.3.5" ,
48
- " scikit-learn >= 1.0.2" ,
49
- " nltk >= 3.7" ,
50
- " colorama >= 0.4.4" ,
51
- " tqdm >= 4.63.0" ,
52
- " sentencepiece >= 0.1.96" ,
53
- " psutil >= 5.9.0" ,
54
- " pytorch_lightning >= 1.5.10" ,
46
+ " datasets >= 1.18.3" ,
47
+ " pandas >= 1.3.5" ,
48
+ " scikit-learn >= 1.0.2" ,
49
+ " nltk >= 3.7" ,
50
+ " colorama >= 0.4.4" ,
51
+ " tqdm >= 4.63.0" ,
52
+ " sentencepiece >= 0.1.96" ,
53
+ " psutil >= 5.9.0" ,
54
+ " pytorch_lightning >= 1.5.10" ,
55
55
]
56
56
57
57
test = [
58
- " mypy >= 0.942" ,
59
- " pylint >= 2.13.5" ,
60
- " pytest >= 7.1.0" ,
61
- " pytest-cov >= 3.0.0" ,
62
- " tox >= 3.24.5" ,
63
- " pytest-html >= 3.1.1" ,
64
- " pandas >= 1.3.5" ,
65
- " datasets >= 1.18.3" ,
66
- " onnx >= 1.11.0" ,
58
+ " mypy >= 0.942" ,
59
+ " pylint >= 2.13.5" ,
60
+ " pytest >= 7.1.0" ,
61
+ " pytest-cov >= 3.0.0" ,
62
+ " tox >= 3.24.5" ,
63
+ " pytest-html >= 3.1.1" ,
64
+ " pandas >= 1.3.5" ,
65
+ " datasets >= 1.18.3" ,
66
+ " onnx >= 1.11.0" ,
67
67
]
68
68
69
69
doc = [
70
- " grip >= 4.6.0" ,
70
+ " grip >= 4.6.0" ,
71
71
]
72
72
73
73
[tool .mypy ]
@@ -87,26 +87,26 @@ install_types = true
87
87
88
88
[tool .pytest .ini_options ]
89
89
addopts = """
90
- --cov=segmentador
91
- --last-failed
92
- --failed-first
93
- --new-first
94
- --cov-report=html
90
+ --cov=segmentador
91
+ --last-failed
92
+ --failed-first
93
+ --new-first
94
+ --cov-report=html
95
95
"""
96
96
testpaths = [
97
- " tests" ,
97
+ " tests" ,
98
98
]
99
99
100
100
[tool .pylint .messages_control ]
101
101
generated-members = " torch.*"
102
102
jobs = 4
103
103
disable = """
104
- too-few-public-methods,
105
- too-many-locals,
106
- too-many-arguments,
107
- too-many-statements,
108
- too-many-branches,
109
- import-outside-toplevel
104
+ too-few-public-methods,
105
+ too-many-locals,
106
+ too-many-arguments,
107
+ too-many-statements,
108
+ too-many-branches,
109
+ import-outside-toplevel
110
110
"""
111
111
min-similarity-lines =10
112
112
@@ -122,34 +122,34 @@ isolated_build = true
122
122
[gh-actions]
123
123
python =
124
124
3.9: py39, mypy, pylint
125
- 3.7: py37
125
+ 3.7: py37
126
126
127
127
[testenv]
128
128
whitelist_externals = flit
129
129
commands =
130
- pip install .
131
- pip install '.[test]'
132
- pip install '.[optimize]'
133
- python -m pytest src/ --doctest-modules --doctest-glob='**/*.py'
134
- python -m pytest
130
+ pip install .
131
+ pip install '.[test]'
132
+ pip install '.[optimize]'
133
+ python -m pytest src/ --doctest-modules --doctest-glob='**/*.py'
134
+ python -m pytest
135
135
136
136
[testenv:mypy]
137
137
basepython = python3.9
138
138
deps = mypy
139
139
commands =
140
- python -m mypy --install-types --non-interactive src/
141
- python -m mypy src/
140
+ python -m mypy --install-types --non-interactive src/
141
+ python -m mypy src/
142
142
143
143
[testenv:pylint]
144
144
basepython = python3.9
145
145
deps =
146
- pylint
147
- buscador @ git+https://github.com/ulysses-camara/ulysses-fetcher
148
- pytest
149
- datasets
150
- onnx
151
- onnxruntime
146
+ pylint
147
+ buscador @ git+https://github.com/ulysses-camara/ulysses-fetcher
148
+ pytest
149
+ datasets
150
+ onnx
151
+ onnxruntime
152
152
commands =
153
- python -m pylint --disable='missing-function-docstring' tests/
154
- python -m pylint src/
153
+ python -m pylint --disable='missing-function-docstring' tests/
154
+ python -m pylint src/
155
155
"""
0 commit comments