You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To ensure code quality and consistency, OpenAdapt uses pre-commit hooks. These hooks
258
+
To ensure code quality and consistency, OpenAdapt uses pre-commit hooks. These hooks
259
259
will be executed automatically before each commit to perform various checks and
260
260
validations on your codebase.
261
261
@@ -264,12 +264,13 @@ The following pre-commit hooks are used in OpenAdapt:
264
264
-[check-yaml](https://github.com/pre-commit/pre-commit-hooks#check-yaml): Validates the syntax and structure of YAML files.
265
265
-[end-of-file-fixer](https://github.com/pre-commit/pre-commit-hooks#end-of-file-fixer): Ensures that files end with a newline character.
266
266
-[trailing-whitespace](https://github.com/pre-commit/pre-commit-hooks#trailing-whitespace): Detects and removes trailing whitespace at the end of lines.
267
+
-[black](https://github.com/psf/black): Formats Python code to adhere to the Black code style.
267
268
-[isort](https://github.com/PyCQA/isort): Sorts Python import statements in a consistent and standardized manner.
268
269
269
270
To set up the pre-commit hooks, follow these steps:
270
271
271
272
1. Navigate to the root directory of your OpenAdapt repository.
272
-
273
+
273
274
2. Run the following command to install the hooks:
0 commit comments