Skip to content

Commit 86f92a0

Browse files
committed
Tidy and fixup tidy checks
1 parent 228b76b commit 86f92a0

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
path = third-party/fmt
66
url = https://github.com/fmtlib/fmt
77
[submodule "third-party/cppcoro"]
8-
path = third-party/cppcoro
9-
url = https://github.com/mmore500/cppcoro.git
8+
path = third-party/cppcoro
9+
url = https://github.com/mmore500/cppcoro.git

hstrat/stratum_retention_strategy/stratum_retention_algorithms/fixed_resolution_algo/_PolicySpec_/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
import cppimport.import_hook
1111

1212
from ._PolicySpecNative import PolicySpecNative
13+
1314
impls.append(PolicySpecNative)
1415
except (CompileError, ImportError, SystemExit):
1516
import os
17+
1618
os.environ["HSTRAT_NATIVE_ERROR"] = "1"
1719
pass

hstrat/stratum_retention_strategy/stratum_retention_algorithms/fixed_resolution_algo/_enact/_GenDropRanks_/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
import cppimport.import_hook
1313

1414
from ._GenDropRanksNative import GenDropRanksNative
15+
1516
impls.append(GenDropRanksNative)
1617
except (CompileError, ImportError, SystemExit):
1718
import os
19+
1820
os.environ["HSTRAT_NATIVE_ERROR"] = "1"
1921
pass

include/hstrat_pybind/shim_py_object_generator.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
2-
#ifndef HSTRAT_PYBIND_PYOBJECTITERATORSHIM_HPP_INCLUDE
3-
#define HSTRAT_PYBIND_PYOBJECTITERATORSHIM_HPP_INCLUDE
2+
#ifndef HSTRAT_PYBIND_SHIM_PY_OBJECT_GENERATOR_HPP_INCLUDE
3+
#define HSTRAT_PYBIND_SHIM_PY_OBJECT_GENERATOR_HPP_INCLUDE
44

55
#include <pybind11/pybind11.h>
66

@@ -20,4 +20,4 @@ cppcoro::generator<T> shim_py_object_generator(py::object object) {
2020

2121
} // namespace hstrat_pybind
2222

23-
#endif // #ifndef HSTRAT_PYBIND_PYOBJECTITERATORSHIM_HPP_INCLUDE
23+
#endif // #ifndef HSTRAT_PYBIND_SHIM_PY_OBJECT_GENERATOR_HPP_INCLUDE

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[tool.black]
22
line_length = 79
3+
exclude = "third-party/"
34

45
[tool.isort]
56
force_sort_within_sections = true
67
line_length = 79
78
profile = "black"
9+
skip = "third-party/"
810
skip_gitignore = true

0 commit comments

Comments
 (0)