Fahad Mattoo mattoofahaddcube commited on
Commit
46acf9f
·
unverified ·
1 Parent(s): 0783e88

Toml file into main (#1)

Browse files

* added toml file

* updating toml

* adding an app file

---------

Co-authored-by: mattoofahadD3 <[email protected]>

Files changed (3) hide show
  1. pyproject.toml +190 -0
  2. requirements.txt +0 -0
  3. src/app.py +1 -0
pyproject.toml ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "simple-chat-bot"
3
+ authors = [
4
+ {name = "Fahad Mattoo", email = "[email protected]"},
5
+ ]
6
+ description = "A simple chat bot."
7
+ readme = "README.md"
8
+ classifiers = [
9
+ "Development Status :: beta",
10
+ "Programming Language :: Python :: 3 :: Only",
11
+ "Programming Language :: Python :: 3.10",
12
+ "Programming Language :: Python :: 3.11"
13
+ ]
14
+ requires-python = ">=3.10"
15
+ dynamic = ["version"]
16
+
17
+ [tool.black]
18
+ line-length = 120
19
+ fast = true
20
+
21
+ [tool.coverage.run]
22
+ branch = true
23
+
24
+ [tool.coverage.report]
25
+ fail_under = 100
26
+
27
+ [tool.pytest.ini_options]
28
+ addopts = "--cov-report xml:coverage.xml --cov src --cov-fail-under 0 --cov-append -m 'not integration'"
29
+ pythonpath = [
30
+ "src"
31
+ ]
32
+ testpaths = "tests"
33
+
34
+ [tool.pylint]
35
+ extension-pkg-whitelist= [
36
+ "numpy",
37
+ "torch",
38
+ "cv2",
39
+ "pyodbc",
40
+ "pydantic",
41
+ "ciso8601",
42
+ "netcdf4",
43
+ "scipy"
44
+ ]
45
+ ignore="CVS"
46
+ ignore-patterns="test.*?py,conftest.py"
47
+ init-hook='import sys; sys.setrecursionlimit(8 * sys.getrecursionlimit())'
48
+ jobs=0
49
+ limit-inference-results=100
50
+ persistent="yes"
51
+ suggestion-mode="yes"
52
+ unsafe-load-any-extension="no"
53
+
54
+ [tool.pylint.'MESSAGES CONTROL']
55
+ enable="c-extension-no-member"
56
+
57
+ [tool.pylint.'REPORTS']
58
+ evaluation="10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)"
59
+ output-format="text"
60
+ reports="no"
61
+ score="yes"
62
+
63
+ [tool.pylint.'REFACTORING']
64
+ max-nested-blocks=5
65
+ never-returning-functions="sys.exit"
66
+
67
+ [tool.pylint.'BASIC']
68
+ argument-naming-style="snake_case"
69
+ attr-naming-style="snake_case"
70
+ bad-names= [
71
+ "foo",
72
+ "bar"
73
+ ]
74
+ class-attribute-naming-style="any"
75
+ class-naming-style="PascalCase"
76
+ const-naming-style="UPPER_CASE"
77
+ docstring-min-length=-1
78
+ function-naming-style="snake_case"
79
+ good-names= [
80
+ "i",
81
+ "j",
82
+ "k",
83
+ "ex",
84
+ "Run",
85
+ "_"
86
+ ]
87
+ include-naming-hint="yes"
88
+ inlinevar-naming-style="any"
89
+ method-naming-style="snake_case"
90
+ module-naming-style="any"
91
+ no-docstring-rgx="^_"
92
+ property-classes="abc.abstractproperty"
93
+ variable-naming-style="snake_case"
94
+
95
+ [tool.pylint.'FORMAT']
96
+ ignore-long-lines="^\\s*(# )?.*['\"]?<?https?://\\S+>?"
97
+ indent-after-paren=4
98
+ indent-string=' '
99
+ max-line-length=120
100
+ max-module-lines=1000
101
+ single-line-class-stmt="no"
102
+ single-line-if-stmt="no"
103
+
104
+ [tool.pylint.'LOGGING']
105
+ logging-format-style="old"
106
+ logging-modules="logging"
107
+
108
+ [tool.pylint.'MISCELLANEOUS']
109
+ notes= [
110
+ "FIXME",
111
+ "XXX",
112
+ "TODO"
113
+ ]
114
+
115
+ [tool.pylint.'SIMILARITIES']
116
+ ignore-comments="yes"
117
+ ignore-docstrings="yes"
118
+ ignore-imports="yes"
119
+ min-similarity-lines=7
120
+
121
+ [tool.pylint.'SPELLING']
122
+ max-spelling-suggestions=4
123
+ spelling-store-unknown-words="no"
124
+
125
+ [tool.pylint.'STRING']
126
+ check-str-concat-over-line-jumps="no"
127
+
128
+ [tool.pylint.'TYPECHECK']
129
+ contextmanager-decorators="contextlib.contextmanager"
130
+ generated-members="numpy.*,np.*,pyspark.sql.functions,collect_list"
131
+ ignore-mixin-members="yes"
132
+ ignore-none="yes"
133
+ ignore-on-opaque-inference="yes"
134
+ ignored-classes="optparse.Values,thread._local,_thread._local,numpy,torch,swagger_client"
135
+ ignored-modules="numpy,torch,swagger_client,netCDF4,scipy"
136
+ missing-member-hint="yes"
137
+ missing-member-hint-distance=1
138
+ missing-member-max-choices=1
139
+
140
+ [tool.pylint.'VARIABLES']
141
+ additional-builtins="dbutils"
142
+ allow-global-unused-variables="yes"
143
+ callbacks= [
144
+ "cb_",
145
+ "_cb"
146
+ ]
147
+ dummy-variables-rgx="_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_"
148
+ ignored-argument-names="_.*|^ignored_|^unused_"
149
+ init-import="no"
150
+ redefining-builtins-modules="six.moves,past.builtins,future.builtins,builtins,io"
151
+
152
+ [tool.pylint.'CLASSES']
153
+ defining-attr-methods= [
154
+ "__init__",
155
+ "__new__",
156
+ "setUp",
157
+ "__post_init__"
158
+ ]
159
+ exclude-protected= [
160
+ "_asdict",
161
+ "_fields",
162
+ "_replace",
163
+ "_source",
164
+ "_make"
165
+ ]
166
+ valid-classmethod-first-arg="cls"
167
+ valid-metaclass-classmethod-first-arg="cls"
168
+
169
+ [tool.pylint.'DESIGN']
170
+ max-args=5
171
+ max-attributes=7
172
+ max-bool-expr=5
173
+ max-branches=12
174
+ max-locals=15
175
+ max-parents=7
176
+ max-public-methods=20
177
+ max-returns=6
178
+ max-statements=50
179
+ min-public-methods=2
180
+
181
+ [tool.pylint.'IMPORTS']
182
+ allow-wildcard-with-all="no"
183
+ analyse-fallback-blocks="no"
184
+ deprecated-modules="optparse,tkinter.tix"
185
+
186
+ [tool.pylint.'EXCEPTIONS']
187
+ overgeneral-exceptions= [
188
+ "BaseException",
189
+ "Exception"
190
+ ]
requirements.txt ADDED
File without changes
src/app.py ADDED
@@ -0,0 +1 @@
 
 
1
+ import os