Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 18, 2024
1 parent 2f65fcc commit 6d86ddf
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/atom/type/expected.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,4 @@ auto make_unexpected(E&& error) -> unexpected<std::decay_t<E>> {

} // namespace atom::type

#endif // ATOM_TYPE_EXPECTED_HPP
#endif // ATOM_TYPE_EXPECTED_HPP
2 changes: 1 addition & 1 deletion src/client/phd2/phd2client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ auto PHD2Client::disconnect(bool force, int timeout, int maxRetry) -> bool {

auto PHD2Client::reconnect(int timeout, int maxRetry) -> bool { return true; }

auto PHD2Client::isConnected() -> bool { return true; }
auto PHD2Client::isConnected() -> bool { return true; }
2 changes: 1 addition & 1 deletion src/client/phd2/phd2client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ class PHD2Client : public AtomGuider {
std::unique_ptr<
};

#endif
#endif
2 changes: 1 addition & 1 deletion src/device/template/filterwheel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ class AtomFilterWheel : public AtomDriver {
virtual auto setCFWPosition(int position) -> bool = 0;
virtual auto getCFWSlotName() -> std::optional<std::string> = 0;
virtual auto setCFWSlotName(std::string_view name) -> bool = 0;
};
};
2 changes: 1 addition & 1 deletion src/device/template/guider.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ class AtomGuider : public AtomDriver {
public:
explicit AtomGuider(std::string name) : AtomDriver(name) {}


};
2 changes: 1 addition & 1 deletion src/python/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Python to Custom Script Converter
This tool converts Python code into a custom script format defined by the user.
It utilizes Python's Abstract Syntax Tree (AST) to parse the code and translate it
It utilizes Python's Abstract Syntax Tree (AST) to parse the code and translate it
into the custom format. The tool supports command-line usage and batch processing of files.
Features:
Expand Down
2 changes: 1 addition & 1 deletion src/task/sequencer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@ void ExposureSequence::executeSequence(std::stop_token stopToken) {
});
}
}
}
}
2 changes: 1 addition & 1 deletion tests/atom/type/expected.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ TEST(ExpectedTest, DifferentErrorTypes) {
expected<int, std::string> string_error(make_unexpected("error message"));
EXPECT_FALSE(string_error.has_value());
EXPECT_EQ(string_error.error().error(), "error message");
}
}
2 changes: 1 addition & 1 deletion tests/atom/type/no_offset_ptr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ TEST(UnshiftedPtrTest, MoveConstructorDisabled) {
TEST(UnshiftedPtrTest, CopyConstructorDisabled) {
static_assert(!std::is_copy_constructible_v<UnshiftedPtr<TestObject>>,
"UnshiftedPtr should not be copyable");
}
}
2 changes: 1 addition & 1 deletion tests/atom/type/pod_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@ TEST(StackTest, Popx) {
int last = stack.popx();
EXPECT_EQ(last, 3);
EXPECT_EQ(stack.size(), 2);
}
}
2 changes: 1 addition & 1 deletion tests/atom/type/static_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ TEST(StaticStringTest, ComparisonWithStringView) {
std::string_view sv("Hello");
EXPECT_TRUE(str == sv);
EXPECT_FALSE(str != sv);
}
}
4 changes: 2 additions & 2 deletions tests/task/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ TEST_F(TaskInterpreterTest, FunctionDefinitionWithClosureAndRecursion) {
{"type": "call", "function": "factorial", "params": {"n": 5}, "result": "factorial_result"}
]
})"_json;
interpreter->loadScript("factorial_script", script);
interpreter->execute("factorial_script");
Expand Down Expand Up @@ -537,4 +537,4 @@ TEST_F(TaskInterpreterTest, FullAbilityTest)

interpreter->loadScript("main_script", script);
interpreter->execute("main_script");
}
}

0 comments on commit 6d86ddf

Please sign in to comment.