Skip to content

Commit

Permalink
Merge pull request #9 from tssala23/linting
Browse files Browse the repository at this point in the history
Add workflow for linting
  • Loading branch information
tssala23 authored Feb 9, 2024
2 parents b64bb6f + 333bf32 commit 6727f11
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: linter

on: [ push, pull_request ]

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
2 changes: 0 additions & 2 deletions slack_notifier/notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import git
import ansible_runner
import os
import requests
import json
import logging
import slack_notifier.slack as slack
import slack_notifier.github as github
Expand Down
1 change: 0 additions & 1 deletion tests/test_notifier.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from unittest.mock import patch, Mock
import pytest
import slack_notifier.notifier as notifier
from pathlib import Path

notify_with_vlan_change = {
"commits": [{"modified": ["group_vars/all/vlans.yaml"]}],
Expand Down

0 comments on commit 6727f11

Please sign in to comment.