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 }} 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. diff --git a/homework1/hw1.py b/homework1/hw1.py index e642eac..7eaf05a 100644 --- a/homework1/hw1.py +++ b/homework1/hw1.py @@ -29,10 +29,3 @@ 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