Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Latest commit

 

History

History
46 lines (32 loc) · 971 Bytes

File metadata and controls

46 lines (32 loc) · 971 Bytes
domain github.com
shortname 8/STYLE
name Coding Style Guidelines
status stable
editor Valery V. Vorotyntsev <valery.vorotyntsev@seagate.com>

Coding Style Guidelines

  • All error messages should go to stderr.

Bash code

  • Use 4 spaces for indentation.

  • Executable scripts should start with

    #!/usr/bin/env bash
    set -eu -o pipefail
  • For the rest, follow bahamas10's Bash Style Guide.

Python code

  • Use Python version 3.6.

  • flake8 linter check should pass.

  • mypy type check should pass. Type annotations are optional.

  • Executable scripts should start with

    #!/usr/bin/env python3

C code