Skip to content

Commit

Permalink
Remove Python 3.7 support (#237)
Browse files Browse the repository at this point in the history
* Sync with develop branch.

* Remove Python 3.7 from unittests, add 3.11

* Update invoke to 2.2.0

Bump invoke to a version that works with Python 3.11
  • Loading branch information
slyngshede authored Aug 1, 2023
1 parent fca17aa commit a5dee28
Show file tree
Hide file tree
Showing 6 changed files with 498 additions and 459 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: "ubuntu-20.04"
env:
INVOKE_LOCAL: "True"
Expand Down
4 changes: 2 additions & 2 deletions circuit_maintenance_parser/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class CircuitImpact(BaseModel, extra=Extra.forbid):
# Optional Attributes
impact: Impact = Impact.OUTAGE

# pylint: disable=no-self-argument,no-self-use
# pylint: disable=no-self-argument
@validator("impact")
def validate_impact_type(cls, value):
"""Validate Impact type."""
Expand Down Expand Up @@ -144,7 +144,7 @@ class Maintenance(BaseModel, extra=Extra.forbid):
sequence: StrictInt = 1
summary: StrictStr = ""

# pylint: disable=no-self-argument,no-self-use
# pylint: disable=no-self-argument
@validator("status")
def validate_status_type(cls, value):
"""Validate Status type."""
Expand Down
2 changes: 1 addition & 1 deletion circuit_maintenance_parser/parsers/equinix.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _parse_b(self, b_elements, data):
impact = Impact.REDUCED_REDUNDANCY
return impact

def _parse_table(self, theader_elements, data, impact): # pylint: disable=no-self-use
def _parse_table(self, theader_elements, data, impact):
for th_elem in theader_elements:
if "Account #" in th_elem:
circuit_table = th_elem.find_parent("table")
Expand Down
Loading

0 comments on commit a5dee28

Please sign in to comment.