-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates to Drop Python 3.6 #195
Changes from 22 commits
2edcbd6
571e4ce
2af591c
d2319b4
8904dcc
1401b3a
776b4e9
636dcf4
4ca04e0
d2082eb
db94d3c
402d8ad
5341bed
1f25c37
52baa13
c7cc14f
2749d93
7fd0071
a2e6072
a4b0777
d9e20cf
037d4d8
9d2b62a
73b61fc
15553f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[flake8] | ||
# E501: Line length is enforced by Black, so flake8 doesn't need to check it | ||
# W503: Black disagrees with this rule, as does PEP 8; Black wins | ||
ignore = E501, W503 | ||
# E701: Colon multi-line indicator, but is just used for model definition. Unable to fix in file. | ||
ignore = E501, W503, E701 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,31 @@ | ||
"""Circuit Maintenance plugin jobs.""" | ||
# from nautobot.extras.models import Job | ||
|
||
from .handle_notifications.handler import HandleCircuitMaintenanceNotifications | ||
|
||
|
||
# class FindSitesWithoutRedundancy(Job): | ||
# """Nautobot Job definition for finding sites without redundant circuit for impactful maintenance. | ||
|
||
# Args: | ||
# Job (Nautobot Job): Nautobot Job import. | ||
# """ | ||
|
||
# class Meta: | ||
# """Meta definition for the Job.""" | ||
|
||
# name = "Find Sites Without Redundancy" | ||
# description = "Search for sites with multiple circuits, 1 or more circuit impacts." | ||
# read_only = True | ||
|
||
# def run(self, data=None, commit=None): | ||
# """Executes the Job. | ||
|
||
# Args: | ||
# data (_type_, optional): _description_. Defaults to None. | ||
# commit (_type_, optional): _description_. Defaults to None. | ||
# """ | ||
# pass | ||
|
||
|
||
jobs = [HandleCircuitMaintenanceNotifications] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ class GraphQLTestCase(TestCase): | |
"""GraphQL tests.""" | ||
|
||
@classmethod | ||
def setUp(cls): | ||
def setUp(cls): # pylint: disable=arguments-differ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This sure looks wrong to me - should either be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jvanderaa have you taken care of this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the thought? I am not clear in understanding what either is doing immediately. Just disabling pylint rule from the pylint updates. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If not I will take a look more upon my return. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
jvanderaa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"""Prepare GraphQL test setup.""" | ||
cls.user = create_test_user("graphql_testuser") | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which was the problem with mysql?
BTW, would make sense to leave the nautboto-version to "stable" to always check against hte latest by default? (don't recall if we already commented this point)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stable
doesn't work. There is a parser error.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just trying to get things into a working state. What didn't work with MySQL is that I didn't have a matrix set up for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry Josh, I don't get it, because the matrix was already set up before, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not for
stable
. It was set up to test individual versions.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I understand, not for stable, but the matrix was working well for mysql before, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it was. I guess the wording of
fix mysql
was poor. Probably should have just beenupdate mysql matrix
.