@@ -28,7 +28,9 @@ separate subsections for Python, C++, and other file types below.
2828
2929* Tests must be independent and must not rely on the state of other tests.
3030 Setup and teardown functions should be used to create a clean environment
31- for each test run.
31+ for each test run. External dependencies (e.g., databases, network
32+ services, file system) must be mocked to ensure the test is isolated to the
33+ unit under test.
3234
3335* Make sure to cover edge cases: write tests for invalid inputs, null values,
3436 empty arrays, zero values, and off-by-one errors.
@@ -39,8 +41,8 @@ separate subsections for Python, C++, and other file types below.
3941
4042### Overall code format conventions
4143
42- This project generally follows Google coding conventions, with a few changes.
43- The following Google style guides are the starting points:
44+ Quantum AI projects generally follows Google coding conventions, with a few
45+ changes. The following Google style guides are the starting points:
4446
4547* [ Google C++ Style Guide] (
4648 https://google.github.io/styleguide/cppguide.html )
@@ -54,12 +56,13 @@ The following Google style guides are the starting points:
5456* [ Google Shell Style Guide] (
5557 https://google.github.io/styleguide/shellguide.html )
5658
57- To learn the conventions for line length, indentation, and other style
58- characteristics , please inspect the following configuration files (if present at
59- the top level of this project repository):
59+ To learn this project's conventions for line length, indentation, and other
60+ details of coding style , please inspect the following configuration files (if
61+ present at the top level of this project repository):
6062
61- * [ ` .editorconfig ` ] ( ../.editorconfig ) for basic code editor configuration for
62- indentation and line length.
63+ * [ ` .editorconfig ` ] ( ../.editorconfig ) for basic code editor configuration
64+ (e.g., indentation and line length) specified using the
65+ [ EditorConfig] ( https://editorconfig.org/ ) format.
6366
6467* [ ` .clang-format ` ] ( ../.clang-format ) for C++ code and also protobuf (Protocol
6568 Buffers) data structure definitions.
@@ -160,7 +163,7 @@ naming, we can reduce cognitive load on human users and developers.
160163
161164### Docstrings and documentation
162165
163- This project uses [ Google style doc strings] (
166+ For Python code, this project uses [ Google style doc strings] (
164167http://google.github.io/styleguide/pyguide.html#381-docstrings ) with a Markdown
165168flavor and support for LaTeX. Docstrings use tripe double quotes, and the first
166169line should be a concise one-line summary of the function or object.
0 commit comments