From 04ee477671d96f0775347e03f067441eef26535d Mon Sep 17 00:00:00 2001 From: Troi Williams <40696868+troiwill@users.noreply.github.com> Date: Mon, 18 Sep 2023 18:50:52 -0400 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eaddcbe..aece2ff 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ This package provides a base class and tools for implementing a Bayes Histogram Filter. Users would need to implement the `histogram.predict(...)` and `histogram.update(...)` methods. -This code was inspired by the code here (https://irwinsnet.github.io/probrob/nb07.html). +This code was inspired by [this code](https://irwinsnet.github.io/probrob/nb07.html). ### How To Set Up Run the following commands to install this package. **Note**: This package was developed using Python 3.8. From 932d270bd30bce22bd0fa28bb702b76b992b1f23 Mon Sep 17 00:00:00 2001 From: Troi Williams <40696868+troiwill@users.noreply.github.com> Date: Mon, 18 Sep 2023 19:06:28 -0400 Subject: [PATCH 2/2] Create code_format_check.yml --- .github/workflows/code_format_check.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/code_format_check.yml diff --git a/.github/workflows/code_format_check.yml b/.github/workflows/code_format_check.yml new file mode 100644 index 0000000..2cd2553 --- /dev/null +++ b/.github/workflows/code_format_check.yml @@ -0,0 +1,24 @@ +name: Code Formatting Check + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint black==23.9.1 + - name: Analysing the code with black and pylint + run: | + black --diff --check $(git ls-files '*.py') + pylint --disable=all --enable=unused-import $(git ls-files '*.py')