-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy path.ruff.toml
263 lines (258 loc) · 8.16 KB
/
.ruff.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
# https://docs.astral.sh/ruff/configuration/
exclude = [
# Anywhere
"**/*.aliases",
"**/*.asv",
"**/*.cache",
"**/*.cf",
"**/*.DotSettings.user",
"**/*.ghw",
"**/*.iml",
"**/*.lvlps",
"**/*.mexmaca64",
"**/*.mexmaci64",
"**/*.slxc",
"**/*.swc",
"**/*.tfstate",
"**/*.unsealed.yaml",
"**/.DS_Store",
"**/.env.development.local",
"**/.env.production.local",
"**/.gitkeep",
"**/.idea",
"**/.pytest_cache",
"**/.ruff_cache",
"**/.terraform",
"**/.vagrant",
"**/.venv",
"**/.vscode",
"**/__pycache__",
"**/build",
"**/cmake-build-debug",
"**/codegen",
"**/coverage",
"**/node_modules",
"**/slprj",
"**/target",
# Root (Cannot have leading /)
".git",
".github",
".mypy_cache",
"build-desktop-qt-Qt_6_4_1_for_macOS-Debug",
"dump.rdb",
"logs",
"logs.log",
"submodules",
"vendor",
"west-master-k3s.yaml",
# Directories
"aerospace/hm-openaerostruct/reports",
"aerospace/hm-openaerostruct/n2.html",
"api-go/config/config_loader/server.crt",
"api-go/config/config_loader/server.key",
"api-go/config/config_loader/opal_auth_public_key.pem",
"api-go/coverage.txt",
"api-node/.clinic",
"api-node/.stryker-tmp",
"api-node/public",
"api-node/reports",
"api-python/dist",
"api-rust/models",
"caddy/public",
"cloud-cost/komiser/komiser.db",
"cloud-infrastructure/hm-pulumi/passphrase.txt",
"cloud-infrastructure/terraform/environments/production/aws/data/files/amazon-msk/*/plugins/*.zip",
"cloud-platform/aws/aws-secrets-manager/secrets/*-credentials.json",
"cloud-security/hm-prowler/output",
"compiler-infrastructure/llvm-ir/output",
"computational-fluid-dynamics/openfoam/simulations/*/0.*",
"computational-fluid-dynamics/openfoam/simulations/*/constant/polyMesh",
"computer-vision/hm-imagebind/.checkpoints",
"computer-vision/hm-imagebind/data",
"computer-vision/hm-supervision/*/data",
"computer-vision/open-clip/data",
"data-analytics/hm-geopandas/data",
"data-ingestion/fluent-bit/*/data",
"data-ingestion/vector/*/data",
"data-orchestration/hm-prefect/workflows/*/*-deployment.yaml",
"data-orchestration/hm-prefect/workflows/*/.coverage",
"data-orchestration/hm-prefect/workflows/*/coverage.xml",
"data-processing/flink/applications/*/.classpath",
"data-processing/flink/applications/*/.project",
"data-processing/flink/applications/*/.settings",
"data-processing/flink/applications/*/dependency-reduced-pom.xml",
"data-processing/flink/applications/*/src/main/resources/*.properties",
"data-processing/hm-spark/applications/*/.bsp",
"data-processing/hm-spark/applications/*/data",
"data-processing/kafka/kafka-client/kafka-c/*/config.ini",
"data-storage/hm-duckdb/*/data",
"data-storage/hm-keydb/dump.rdb",
"data-storage/hm-keydb/modules",
"data-storage/hm-protobuf/data",
"data-transformation/dbt/projects/*/dbt_packages",
"data-transformation/dbt/projects/*/logs",
"data-visualization/grafana/hm-dashboard/output",
"data-visualization/grafana/hm-panel-plugin/.config",
"data-visualization/iads/iads-data-manager/iads-data-reader/src/data",
"data-visualization/metabase/plugins",
"desktop-qt/CMakeLists.txt.user",
"digital-design/verilog/output",
"embedded-system/decode-can-blf-data/data",
"embedded-system/decode-can-mf4-data/data",
"embedded-system/decode-can-trc-data/data",
"hardware-in-the-loop/national-instruments/hm-tdms/data",
"hardware-in-the-loop/national-instruments/veristand/VeriStandZeroMQBridge/packages",
"hardware-in-the-loop/national-instruments/veristand/VeriStandZeroMQBridge/VeriStandZeroMQBridge/bin",
"hardware-in-the-loop/national-instruments/veristand/VeriStandZeroMQBridge/VeriStandZeroMQBridge/obj",
"kubernetes/certificates",
"kubernetes/data/config-loader",
"kubernetes/data/elastic-apm",
"kubernetes/data/hasura/hasura-graphql-engine",
"kubernetes/data/hm-alpine",
"kubernetes/data/hm-kafka/hm-kafka",
"kubernetes/data/hm-kafka/logging-kafka-connect",
"kubernetes/data/hm-kafka/opa-kafka-connect",
"kubernetes/data/minio",
"kubernetes/data/model-server/model-store",
"kubernetes/data/opal-server",
"kubernetes/data/yugabyte",
"kubernetes/manifests-raw",
"machine-learning/convolutional-neural-network/output/models",
"machine-learning/convolutional-neural-network/output/reports",
"machine-learning/convolutional-neural-network/wandb",
"machine-learning/feature-store/driver_features/data",
"machine-learning/graph-neural-network/dataset",
"machine-learning/graph-neural-network/wandb",
"machine-learning/hm-autogluon/AutogluonModels",
"machine-learning/hm-docling/data",
"machine-learning/hm-faster-whisper/data",
"machine-learning/hm-faster-whisper/output",
"machine-learning/hm-langchain/applications/*/data",
"machine-learning/hm-langgraph/applications/*/data",
"machine-learning/hm-llama-index/applications/*/data",
"machine-learning/hm-mlflow/experiments/*/data",
"machine-learning/hm-mlflow/experiments/*/lightning_logs",
"machine-learning/hm-mlflow/experiments/*/mlruns",
"machine-learning/hm-mlflow/experiments/*/wandb",
"machine-learning/hm-rasa/.rasa",
"machine-learning/hm-rasa/graph.html",
"machine-learning/hm-rasa/models",
"machine-learning/hm-rasa/results",
"machine-learning/hm-rasa/story_graph.dot",
"machine-learning/mineru/data",
"machine-learning/mineru/output",
"machine-learning/neural-forecasting/*/lightning_logs",
"machine-learning/hm-nvidia-modulus/launch.log",
"machine-learning/hm-nvidia-modulus/output",
"machine-learning/nvidia-triton-inference-server/amazon-sagemaker-triton-resnet-50/infer/data",
"machine-learning/stable-diffusion/output",
"mobile/mobile-android/.gradle",
"mobile/mobile-android/local.properties",
"mobile/mobile-ios/HMMobile.xcodeproj/project.xcworkspace",
"mobile/mobile-ios/HMMobile.xcodeproj/xcuserdata",
"mobile/mobile-react-native/.expo",
"reverse-engineering/*/main",
"robotics/robot-operating-system/bags",
"robotics/robot-operating-system/install",
"robotics/robot-operating-system/log",
"spark/.bsp/sbt.json",
"spark/project/target",
"spark/target",
"web-cypress/cypress/fixtures/example.json",
"web-cypress/cypress/screenshots",
"web/.eslintcache",
"web/.lighthouseci",
"web/dist",
"web/public/sitemap.xml",
"web/storybook-static",
"web/tmp",
# .ruff.toml specific
"**/*_pb2.py",
]
# https://docs.astral.sh/ruff/rules/
[lint]
select = [
"A", # flake8-builtins
"AIR", # Airflow
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"ASYNC", # flake8-async
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # mccabe
"COM", # flake8-commas
"D", # pydocstyle
"DTZ", # flake8-datetimez
"E", # pycodestyle
"EM", # flake8-errmsg
"EXE", # flake8-executable
"F", # Pyflakes
"FAST", # FastAPI
"FBT", # flake8-boolean-trap
"FIX", # flake8-fixme
"FLY", # flynt
"FURB", # Refurb
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"NPY", # NumPy
"PD", # pandas-vet
"PERF", # Perflint
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # Pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # Ruff
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLF", # flake8-self
"SLOT", # flake8-slots
"T10", # flake8-debugger
"T20", # flake8-print
"TC", # flake8-type-checking
"TD", # flake8-todos
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle
# "CPY", # flake8-copyright
# "DJ", # flake8-django
# "DOC", # pydoclint
# "ERA", # eradicate
# "FA", # flake8-future-annotations
# "INP", # flake8-no-pep420
# "YTT", # flake8-2020
]
ignore = [
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D107",
"D203", # Conflicts with D211
"D212",
"E501",
"FBT001",
"FBT002",
"G004",
"ISC001",
"PD901",
"PLR0913",
"PLR0915",
"PLR2004",
"S101",
"TC002",
"TRY003",
]