From 06b1fa889b4d834ff985a86debac4a20384d1188 Mon Sep 17 00:00:00 2001 From: vcu-pstojanovic <78378662+vcu-pstojanovic@users.noreply.github.com> Date: Mon, 15 Feb 2021 19:26:38 -0500 Subject: [PATCH 1/5] Create linter.yml --- .github/workflows/linter.yml | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..bd8879d --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,54 @@ +########################### +########################### +## Linter GitHub Actions ## +########################### +########################### +name: Lint Code Base + +# +# Documentation: +# https://help.github.com/en/articles/workflow-syntax-for-github-actions +# + +############################# +# Start the job on all push # +############################# +on: + push: + branches-ignore: [master] + # Remove the line above to run when pushing to master + pull_request: + branches: [master] + +############### +# Set the Job # +############### +jobs: + build: + # Name the Job + name: Lint Code Base + # Set the agent to run on + runs-on: ubuntu-latest + + ################## + # Load all steps # + ################## + steps: + ########################## + # Checkout the code base # + ########################## + - name: Checkout Code + uses: actions/checkout@v2 + with: + # Full git history is needed to get a proper list of changed files within `super-linter` + fetch-depth: 0 + + ################################ + # Run Linter against code base # + ################################ + - name: Lint Code Base + uses: github/super-linter@v3 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: master + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From cdb398e8aeece53e5c26ac08201c02157159d227 Mon Sep 17 00:00:00 2001 From: Predrag Date: Mon, 15 Feb 2021 21:23:21 -0500 Subject: [PATCH 2/5] 10.0 --- homework1/hw1.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/homework1/hw1.py b/homework1/hw1.py index e642eac..89552f1 100644 --- a/homework1/hw1.py +++ b/homework1/hw1.py @@ -31,8 +31,9 @@ def return_without_starting_ending_whitespace(input_string): return return_value -def return_addition(first_number, second_number): - """ Return the two numbers added together. """ +#def return_addition(first_number, second_number): +# """ Return the two numbers added together. """ - return_value = None - return return_value +# return_value = None +# return return_value + \ No newline at end of file From 43456559442d29ce7c62764fb873cf559fd75d78 Mon Sep 17 00:00:00 2001 From: Predrag Date: Mon, 15 Feb 2021 21:37:03 -0500 Subject: [PATCH 3/5] MOAR good --- homework1/hw1.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/homework1/hw1.py b/homework1/hw1.py index 89552f1..0d450b6 100644 --- a/homework1/hw1.py +++ b/homework1/hw1.py @@ -29,11 +29,4 @@ def return_without_starting_ending_whitespace(input_string): return_value = input_string return return_value - - -#def return_addition(first_number, second_number): -# """ Return the two numbers added together. """ - -# return_value = None -# return return_value \ No newline at end of file From a46f41c8c5bd15e20d8d4122538de2f035d8ac26 Mon Sep 17 00:00:00 2001 From: Predrag Date: Mon, 15 Feb 2021 21:46:19 -0500 Subject: [PATCH 4/5] oh fuckoff --- homework1/hw1.py | 1 - 1 file changed, 1 deletion(-) diff --git a/homework1/hw1.py b/homework1/hw1.py index 0d450b6..7eaf05a 100644 --- a/homework1/hw1.py +++ b/homework1/hw1.py @@ -29,4 +29,3 @@ def return_without_starting_ending_whitespace(input_string): return_value = input_string return return_value - \ No newline at end of file From e5e2ea2f8c47e7d6d52db01bfc68e7e00ba02492 Mon Sep 17 00:00:00 2001 From: vcu-pstojanovic <78378662+vcu-pstojanovic@users.noreply.github.com> Date: Tue, 16 Feb 2021 10:51:42 -0500 Subject: [PATCH 5/5] Update README.md pstojanovic --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7b198eb..f2014db 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Homework 1 - Week 3 -![Python package](https://github.com/vcu-chfauerbach/root_homework1/workflows/Python%20package/badge.svg) +![Python package](https://github.com/vcu-pstojanovic/root_homework1/workflows/Python%20package/badge.svg) -![Pylint](https://github.com/vcu-chfauerbach/root_homework1/workflows/Pylint/badge.svg) +![Pylint](https://github.com/vcu-pstojanovic/root_homework1/workflows/Pylint/badge.svg) -![Super-Linter](https://github.com/vcu-chfauerbach/root_homework1/workflows/Super-Linter/badge.svg) +![Super-Linter](https://github.com/vcu-pstojanovic/root_homework1/workflows/Super-Linter/badge.svg) For your homework, fork this repository to your account.