Skip to content

Commit 83e9915

Browse files
committed
lint fixes
1 parent e43b5e4 commit 83e9915

File tree

8 files changed

+15
-5
lines changed

8 files changed

+15
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: CI
23

34
on:

configuration/configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# For reference see https://netbox.readthedocs.io/en/stable/configuration/
1111
# Based on https://github.com/netbox-community/netbox/blob/master/netbox/netbox/configuration.example.py
1212

13+
1314
# Read secret from file
1415
def _read_secret(secret_name, default=None):
1516
try:

docker-compose.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
version: '3.4'
23

34
services:
@@ -23,7 +24,7 @@ services:
2324
redis:
2425
image: redis:6-alpine
2526
command:
26-
- sh
27-
- -c # this is to evaluate the $REDIS_PASSWORD from the env
28-
- redis-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
27+
- sh
28+
- -c # this is to evaluate the $REDIS_PASSWORD from the env
29+
- redis-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
2930
env_file: env/redis.env

netbox_acls/templates/netbox_acls/accesslist.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<h5 class="card-header">Access List</h5>
2121
<div class="card-body">
2222
<table class="table table-hover attr-table">
23+
<caption>Access List</caption>
2324
<tr>
2425
<th scope="row">Type</th>
2526
<td>{{ object.get_type_display }}</td>

netbox_acls/templates/netbox_acls/aclextendedrule.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<h5 class="card-header">ACL Extended Rule</h5>
88
<div class="card-body">
99
<table class="table table-hover attr-table">
10+
<caption>ACL Extended Rule</caption>
1011
<tr>
1112
<th scope="row">Access List</th>
1213
<td>
@@ -32,6 +33,7 @@ <h5 class="card-header">ACL Extended Rule</h5>
3233
<h5 class="card-header">Details</h5>
3334
<div class="card-body">
3435
<table class="table table-hover attr-table">
36+
<caption>Details</caption>
3537
<tr>
3638
<th scope="row">Remark</th>
3739
<td>{{ object.get_remark_display|placeholder }}</td>

netbox_acls/templates/netbox_acls/aclinterfaceassignment.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<h5 class="card-header">ACL Interface Assignment</h5>
99
<div class="card-body">
1010
<table class="table table-hover attr-table">
11+
<caption>Host</caption>
1112
<tr>
1213
<th scope="row">Host</th>
1314
<td>

netbox_acls/templates/netbox_acls/aclstandardrule.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<h5 class="card-header">ACL Standard Rule</h5>
88
<div class="card-body">
99
<table class="table table-hover attr-table">
10+
<caption>ACL Standard Rule</caption>
1011
<tr>
1112
<th scope="row">Access List</th>
1213
<td>
@@ -32,6 +33,7 @@ <h5 class="card-header">ACL Standard Rule</h5>
3233
<h5 class="card-header">Details</h5>
3334
<div class="card-body">
3435
<table class="table table-hover attr-table">
36+
<caption>Details</caption>
3537
<tr>
3638
<th scope="row">Remark</th>
3739
<td>{{ object.get_remark_display|placeholder }}</td>

netbox_acls/tests/test_api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
from dcim.models import Device, DeviceRole, DeviceType, Interface, Manufacturer, Site
22
from django.contrib.contenttypes.models import ContentType
33
from django.urls import reverse
4-
from netbox_acls.choices import *
5-
from netbox_acls.models import *
64
from rest_framework import status
75
from utilities.testing import APITestCase, APIViewTestCases
86

7+
from netbox_acls.choices import *
8+
from netbox_acls.models import *
9+
910

1011
class AppTest(APITestCase):
1112
def test_root(self):

0 commit comments

Comments
 (0)