diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 26b7c8e05..b53fe8d26 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,21 +1,21 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.3.0 + rev: v4.4.0 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 23.1.0 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.10.1 + rev: 5.12.0 hooks: - id: isort name: isort (python) args: ["--profile", "black"] - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v13.0.0 + rev: v15.0.7 hooks: - id: clang-format diff --git a/src/query/v2/requests.hpp b/src/query/v2/requests.hpp index b2d7f9123..1b7217324 100644 --- a/src/query/v2/requests.hpp +++ b/src/query/v2/requests.hpp @@ -79,6 +79,18 @@ struct Vertex { friend bool operator==(const Vertex &lhs, const Vertex &rhs) { return lhs.id == rhs.id; } }; +struct Path { + // TODO(gitbuda): Define how a path should look like. +}; +struct Graph { + std::vector<Vertex> vertices; + std::vector<Edge> edges; + friend bool operator==(const Graph &lhs, const Graph &rhs) { + LOG_FATAL("Implement memgraph::msgs::Graph::operator=="); + } +}; +// TODO(gitbuda): Figure out how to serialize memgraph::msgs::Graph/Path. + struct Null {}; struct Value { @@ -582,7 +594,6 @@ using WriteResponses = std::variant<CreateVerticesResponse, DeleteVerticesRespon } // namespace memgraph::msgs namespace std { - template <> struct hash<memgraph::msgs::Value>;