diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index ad71791..3c33db3 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -9,6 +9,6 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - - uses: pre-commit/action@v3.0.0 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + - uses: pre-commit/action@v3.0.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ac785b6..8f48746 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,37 +1,43 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: -- repo: https://github.com/maxwinterstein/shfmt-py - rev: v3.4.3.1 - hooks: - - id: shfmt - exclude: examples/t6.sh - args: ["-w", "-i", "4", "-ci"] + - repo: https://github.com/maxwinterstein/shfmt-py + rev: v3.4.3.1 + hooks: + - id: shfmt + exclude: examples/t6.sh + args: ["-w", "-i", "4", "-ci"] -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 - hooks: - - id: trailing-whitespace - - id: end-of-file-fixer + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.3.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer -- repo: https://github.com/psf/black - rev: 23.1a1 - hooks: - - id: black + - repo: https://github.com/psf/black + rev: 23.1a1 + hooks: + - id: black -- repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 - hooks: - - id: pyupgrade - args: ["--py37-plus"] + - repo: https://github.com/asottile/pyupgrade + rev: v3.3.1 + hooks: + - id: pyupgrade + args: ["--py37-plus"] -- repo: https://github.com/pycqa/flake8 - rev: 5.0.4 # 6.0.0 requires Python 3.8 - hooks: - - id: flake8 + - repo: https://github.com/pycqa/flake8 + rev: 5.0.4 # 6.0.0 requires Python 3.8 + hooks: + - id: flake8 -- repo: https://github.com/pycqa/isort - rev: 5.12.0 - hooks: - - id: isort - name: isort (python) + - repo: https://github.com/pycqa/isort + rev: 5.12.0 + hooks: + - id: isort + name: isort (python) + + - repo: https://github.com/adrienverge/yamllint.git + rev: v1.29.0 + hooks: + - id: yamllint + args: [--strict] diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..cfe6bac --- /dev/null +++ b/.yamllint @@ -0,0 +1,9 @@ +--- +extends: default + +rules: + document-start: disable + truthy: + check-keys: false + line-length: + max: 120 diff --git a/builder/configs/trex_cfg.yaml b/builder/configs/trex_cfg.yaml index bf53ea0..2d3b026 100644 --- a/builder/configs/trex_cfg.yaml +++ b/builder/configs/trex_cfg.yaml @@ -7,14 +7,14 @@ # something with running on AWS. limit_memory: 1024 port_info: - - ip: 192.168.1.1 - default_gw: 192.168.2.1 - - ip: 192.168.2.1 - default_gw: 192.168.1.1 + - ip: 192.168.1.1 + default_gw: 192.168.2.1 + - ip: 192.168.2.1 + default_gw: 192.168.1.1 platform: - master_thread_id: 0 - latency_thread_id: 1 - dual_if: - - socket: 0 - threads: [4,5,6,7,8,9,10,11,12,13,14,15] + master_thread_id: 0 + latency_thread_id: 1 + dual_if: + - socket: 0 + threads: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]