Skip to content

Commit

Permalink
Clang Format YML
Browse files Browse the repository at this point in the history
- make a workflow to check clang format for me
- updated readme tables again.
  • Loading branch information
carlkidcrypto committed Jan 11, 2025
1 parent 1ae09da commit d3387e2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/clang_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Clang-format

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DoozyX/[email protected]
with:
source: '../ezsnmp/.'
extensions: 'c,cpp,h,hpp'
clangFormatVersion: 20
6 changes: 5 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
EzSnmp
=======

|Python Code Style| |Black| |Pull Request Sphinx Docs Check| |PyPI Distributions| |TestPyPI Distributions| |Tests| |License|
|Python Code Style| |Clang-format Code Style| |Black| |Clang-format| |Pull Request Sphinx Docs Check| |PyPI Distributions| |TestPyPI Distributions| |Tests Homebrew| |Tests Native| |License|

.. |Python Code Style| image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
.. |Clang-format Code Style| image:: https://img.shields.io/badge/code%20style-clang--format-brightgreen.svg
:target: https://clang.llvm.org/docs/ClangFormat.html
.. |Black| image:: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/black.yml/badge.svg
:target: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/black.yml
.. |Clang-format| image:: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/clang_format.yml/badge.svg
:target: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/clang_format.yml
.. |Pull Request Sphinx Docs Check| image:: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/sphinx_build.yml/badge.svg
:target: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/sphinx_build.yml
.. |PyPI Distributions| image:: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/build_and_publish_to_pypi.yml/badge.svg
Expand Down

0 comments on commit d3387e2

Please sign in to comment.