-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
175 lines (157 loc) · 4.1 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[tool.poetry]
# name = "ai_13x005_project"
name = "src"
version = "0.1.0"
description = "End of semester artificial intelligence project"
authors = ["."]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
numpy = "^1.26.3"
ruff = "^0.1.11"
pyink = "^23.10.0"
pytest = "^7.4.4"
scipy = "^1.11.4"
matplotlib = "^3.8.2"
scikit-learn = "^1.3.2"
ucimlrepo = "^0.0.3"
pandas = "^2.1.4"
prettyprint = "^0.1.5"
flake8 = "^7.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
select = ["E", "F", "C", "B", "W"]
ignore = [
"B905",
"C901",
"E501",
"E211",
"E401",
"E402",
"E701",
"E741",
"W293",
"W191",
"RET505",
]
line-length = 140
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.black]
line-length = 120
[tool.pyink]
line-length = 124
# use-majority-quotes = true
[tool.pyright]
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-pyprojecttoml-file
exclude = [
"**/node_modules",
"**/__pycache__",
"src/experimental",
"src/typestubs",
]
typeCheckingMode = "basic"
# pyright is only used as a type checker. all other linting should be *disabled*
reportMissingImports = false
reportMissingTypeStubs = false
enableExperimentalFeatures = false
reportMissingModuleSource = false
reportUnusedImport = false
reportUnusedClass = false
reportUnusedFunction = false
reportUnusedVariable = false
reportUnusedDuplicateImport = false
reportUndefinedVariable = false
reportWildcardImportFromLibrary = false
reportConstantRedefinition = false
strictParameterNoneValue = false
[tool.pylint.'MESSAGES CONTROL']
disable = [
"B905",
"C901",
"E501",
"E211",
"E401",
"E402",
"E701",
"E704",
"W293",
"W191",
"RET505",
"E0211",
"E0401",
"C0103",
"C0111",
"C0112",
"C0114",
"C0115",
"C0116",
"C0301",
"C0302",
"C0303",
"C0321",
"C0326",
"C0330",
"C0411",
"C0413",
"R0022",
"W0105",
"W0611",
"W0621",
"W0622",
"W0401",
"format",
"R0903",
"R1710",
]
[tool.mypy]
warn_return_any = false
warn_unused_configs = true
exclude = [
'^file1\.py$', # TOML literal string (single-quotes, no escaping necessary)
"^file2\\.py$", # TOML basic string (double-quotes, backslash and other characters need escaping)
]
ignore_missing_imports = true
ignore_errors = true
[tool.pylint.'BASIC']
argument-naming-style = "any" # Naming style matching correct argument names.
class-const-naming-style = "any" # Naming style matching correct class constant names.
# class-const-rgx = "" # Regular expression matching correct class constant names.
# Overrides class-const-naming-style. If left empty, class constant names will be checked with the set naming style.
class-naming-style = "any" # Naming style matching correct class names.
const-naming-style = "any" # Naming style matching correct constant names.
inlinevar-naming-style = "any" # Naming style matching correct inline iteration names.
method-naming-style = "any" # Naming style matching correct method names.
variable-naming-style = "any" # Naming style matching correct variable names.
[tool.pylint.'FORMAT']
ignore-long-lines = ".*" # Regexp for a line that is allowed to be longer than the limit.
max-line-length = 0 # Maximum number of characters on a single line.
max-module-lines = 0 # Maximum number of lines in a module.
single-line-class-stmt = "yes" # Allow the body of a class to be on the same line as the declaration if body contains a single statement.
single-line-if-stmt = "yes" # Allow the body of an if to be on the same line as the test if there is no else.