Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -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 }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
7 changes: 0 additions & 7 deletions homework1/hw1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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