Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️πŸͺ update pre-commit hooks #370

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ repos:

# Python linting using ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.7
rev: v0.4.2
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand All @@ -82,7 +82,7 @@ repos:

# Clang-format the C++ part of the code base automatically
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.3
rev: v18.1.4
hooks:
- id: clang-format
types_or: [c++, c, cuda]
Expand All @@ -96,7 +96,7 @@ repos:

# Check static types with mypy
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
rev: v1.10.0
hooks:
- id: mypy
files: ^(src/mqt|test/python)
Expand All @@ -122,7 +122,7 @@ repos:

# Check best practices for scientific Python code
- repo: https://github.com/scientific-python/cookie
rev: 2024.03.10
rev: 2024.04.23
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
4 changes: 2 additions & 2 deletions include/PathSimulator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PathSimulator: public CircuitSimulator<Config> {
std::pair<std::size_t, std::size_t> children;

explicit Step(const std::size_t id_, std::vector<std::size_t> operations_ = {}, const std::size_t parent_ = UNKNOWN, std::pair<std::size_t, std::size_t> children_ = {UNKNOWN, UNKNOWN}):
id(id_), operations(std::move(operations_)), parent(parent_), children(std::move(children_)){};
id(id_), operations(std::move(operations_)), parent(parent_), children(std::move(children_)) {};

static constexpr size_t UNKNOWN = std::numeric_limits<size_t>::max();
};
Expand Down Expand Up @@ -69,7 +69,7 @@ class PathSimulator: public CircuitSimulator<Config> {

//Add new variables here
explicit Configuration(const Mode mode_ = Mode::Sequential, const std::size_t bracketSize_ = 2, const std::size_t startingPoint_ = 0, std::list<std::size_t> gateCost_ = {}, const std::size_t seed_ = 0):
mode(mode_), bracketSize(bracketSize_), startingPoint(startingPoint_), gateCost(std::move(gateCost_)), seed(seed_){};
mode(mode_), bracketSize(bracketSize_), startingPoint(startingPoint_), gateCost(std::move(gateCost_)), seed(seed_) {};

static Mode modeFromString(const std::string& mode) {
if (mode == "sequential" || mode == "0") {
Expand Down
Loading