Skip to content

Commit f5d47af

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent da977bc commit f5d47af

File tree

17 files changed

+21
-23
lines changed

17 files changed

+21
-23
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ jobs:
4444
run: |
4545
sonar-scanner \
4646
--define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json" \
47-
--define sonar.coverageReportPaths=coverage.xml
47+
--define sonar.coverageReportPaths=coverage.xml

modules/atom.sysinfo/_component.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ std::string SysInfoComponent::getKernelVersion() {
9292

9393
std::string SysInfoComponent::getArchitecture() {
9494
return atom::system::getOperatingSystemInfo().architecture;
95-
}
95+
}

modules/atom.sysinfo/_main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ std::shared_ptr<Component> getInstance([[maybe_unused]] const json &params) {
2626
return std::make_shared<SysInfoComponent>("atom.sysinfo");
2727
}
2828
}
29-

modules/atom.sysinfo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
"entry": "getInstance"
2929
}
3030
]
31-
}
31+
}

modules/lithium.pyastro/src/api/astap/astap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,4 +283,4 @@ def astap_solve_blocking(
283283
logger.error(traceback.format_exc())
284284
result.message = 'Solve result retrieval failed'
285285

286-
return result.__dict__
286+
return result.__dict__

modules/lithium.pyastro/src/api/astrometry/astrometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,4 @@ async def solve(
155155
ret_struct["message"] = "Solve failed"
156156
return ret_struct
157157

158-
return ret_struct
158+
return ret_struct

modules/lithium.pytools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@
3737
"pylint": "^2.7.0",
3838
"sphinx": "^3.5.0"
3939
}
40-
}
40+
}

modules/lithium.pytools/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
"Programming Language :: Python :: 3.10",
4242
"Programming Language :: Python :: 3.11",
4343
],
44-
)
44+
)

modules/lithium.pytools/tools/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,4 +297,4 @@ def main():
297297
compiler.compile(args.source_files, args.output, cpp_version, additional_flags + additional_compile_flags)
298298

299299
if __name__ == "__main__":
300-
main()
300+
main()

modules/lithium.pytools/tools/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def view_log(repo_dir):
191191
def add_remote(repo_dir, remote_name, remote_url):
192192
"""
193193
Add a remote repository.
194-
194+
195195
Args:
196196
repo_dir (str): Path to the local repository directory。
197197
remote_name (str): Name of the remote repository。

modules/lithium.pytools/tools/package.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def main():
147147
None
148148
"""
149149
package_name = input("Enter the package name: ").strip()
150-
150+
151151
if is_package_installed(package_name):
152152
installed_version = get_installed_version(package_name)
153153
print(f"Package '{package_name}' is already installed, version: {installed_version}")
@@ -168,21 +168,21 @@ def main():
168168
print(f"Could not fetch versions for '{package_name}'.")
169169
else:
170170
print(f"Package '{package_name}' is not installed.")
171-
171+
172172
action = input(
173173
"Choose an action:\n"
174174
"1. Install or Upgrade to the latest version\n"
175175
"2. Install a specific version\n"
176176
"3. List available versions\n"
177177
"Enter your choice (1/2/3): "
178178
).strip()
179-
179+
180180
if action == '1':
181181
if is_package_installed(package_name):
182182
upgrade_package(package_name)
183183
else:
184184
install_package(package_name)
185-
185+
186186
elif action == '2':
187187
available_versions = list_available_versions(package_name)
188188
if available_versions:
@@ -196,7 +196,7 @@ def main():
196196
print("Invalid version. Please choose a valid version from the list.")
197197
else:
198198
print(f"No versions found for package '{package_name}'.")
199-
199+
200200
elif action == '3':
201201
available_versions = list_available_versions(package_name)
202202
if available_versions:
@@ -205,9 +205,9 @@ def main():
205205
print(v)
206206
else:
207207
print(f"No versions found for package '{package_name}'.")
208-
208+
209209
else:
210210
print("Invalid choice.")
211211

212212
if __name__ == "__main__":
213-
main()
213+
main()

modules/lithium.pytools/tools/pyjson.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ def query_json(json_obj: dict, query_path: str):
116116
elif args.query:
117117
query_json(data, args.query)
118118
else:
119-
print_json(data, minify=args.minify, indent=None if args.minify else 4)
119+
print_json(data, minify=args.minify, indent=None if args.minify else 4)

modules/lithium.pytools/tools/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ def main():
139139
execute_script(config, args.script)
140140

141141
if __name__ == "__main__":
142-
main()
142+
main()

modules/lithium.webserver/_main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ std::shared_ptr<Component> getInstance([[maybe_unused]] const json &params) {
2626
return std::make_shared<ServerComponent>("lithium.webserver");
2727
}
2828
}
29-

modules/lithium.webserver/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
"entry": "getInstance"
2929
}
3030
]
31-
}
31+
}

modules/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ add_subdirectories_recursively(os.scriptdir())
3232
-- 示例模块配置
3333
target("example_module")
3434
set_kind("shared")
35-
add_files("example_module/*.c")
35+
add_files("example_module/*.c")

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ sonar.projectVersion=1.0
99

1010
# SQ standard properties
1111
sonar.sources=src
12-
sonar.sourceEncoding=UTF-8
12+
sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)