diff options
author | Shawn Wilsher <656602+sdwilsh@users.noreply.github.com> | 2022-09-02 06:22:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 09:22:14 -0400 |
commit | 69a2882d106171f050fac193a552542cdab418a8 (patch) | |
tree | 03e419d47de81b473b96f4f2a2a6c8b9f2bee5f8 /tests/unit | |
parent | 4c116b506d4a529370dd63761f601a89d1adbf92 (diff) | |
download | vyos.vyos-69a2882d106171f050fac193a552542cdab418a8.tar.gz vyos.vyos-69a2882d106171f050fac193a552542cdab418a8.zip |
Fix `pre-commit` Issues (#223)
* Fix `pre-commit` Issues
This change fixes `.pre-commit-config.yaml` so that `main` no longer has
errors on it. To accomplish that, two things had to be done:
* Update the version of `black` that `pre-commit` uses to match what `tox` uses.
* Run `pre-commit run --all-files` and commit the results
Co-authored-by: Kate Case <this.is@katherineca.se>
Diffstat (limited to 'tests/unit')
4 files changed, 10 insertions, 11 deletions
diff --git a/tests/unit/modules/network/vyos/fixtures/show_version b/tests/unit/modules/network/vyos/fixtures/show_version index a015d55..e546a14 100644 --- a/tests/unit/modules/network/vyos/fixtures/show_version +++ b/tests/unit/modules/network/vyos/fixtures/show_version @@ -11,4 +11,3 @@ HW model: VMware Virtual Platform HW S/N: VMware-42 3c 26 25 44 c5 0a 91-cf 2c 97 2b fe 9b 25 be HW UUID: 423C2625-44C5-0A91-CF2C-972BFE9B25BE Uptime: 01:08:20 up 52 days, 2:13, 1 user, load average: 0.00, 0.01, 0.05 - diff --git a/tests/unit/modules/network/vyos/fixtures/vyos_lldp_neighbor_config.cfg b/tests/unit/modules/network/vyos/fixtures/vyos_lldp_neighbor_config.cfg index 267958c..48e7c97 100644 --- a/tests/unit/modules/network/vyos/fixtures/vyos_lldp_neighbor_config.cfg +++ b/tests/unit/modules/network/vyos/fixtures/vyos_lldp_neighbor_config.cfg @@ -2,7 +2,7 @@ LLDP neighbors: ------------------------------------------------------------------------------- Interface: eth1, via: LLDP, RID: 1, Time: 0 day, 00:30:34 - Chassis: + Chassis: ChassisID: mac 08:00:27:7c:85:05 SysName: vyos SysDescr: Vyatta Router running on VyOS 1.1.8 (helium) @@ -10,7 +10,7 @@ Interface: eth1, via: LLDP, RID: 1, Time: 0 day, 00:30:34 Capability: Bridge, off Capability: Router, on Capability: Wlan, off - Port: + Port: PortID: mac 08:00:27:04:85:99 PortDescr: eth0 PMD autoneg: supported: yes, enabled: yes @@ -18,7 +18,7 @@ Interface: eth1, via: LLDP, RID: 1, Time: 0 day, 00:30:34 Adv: 100Base-T, HD: yes, FD: yes Adv: 1000Base-T, HD: no, FD: yes MAU oper type: 1000BaseTFD - Four-pair Category 5 UTP, full duplex mode - LLDP-MED: + LLDP-MED: Device Type: Network Connectivity Device Capability: Capabilities Capability: Policy @@ -26,7 +26,7 @@ Interface: eth1, via: LLDP, RID: 1, Time: 0 day, 00:30:34 Capability: MDI/PSE Capability: MDI/PD Capability: Inventory - Inventory: + Inventory: Hardware Revision: 1.2 Software Revision: 3.13.11-1-586-vyos Firmware Revision: VirtualBox @@ -35,7 +35,7 @@ Interface: eth1, via: LLDP, RID: 1, Time: 0 day, 00:30:34 Model: VirtualBox ------------------------------------------------------------------------------- Interface: eth0, via: LLDP, RID: 1, Time: 0 day, 00:32:50 - Chassis: + Chassis: ChassisID: mac 08:00:27:7c:85:05 SysName: vyos SysDescr: Vyatta Router running on VyOS 1.1.8 (helium) @@ -43,7 +43,7 @@ Interface: eth0, via: LLDP, RID: 1, Time: 0 day, 00:32:50 Capability: Bridge, off Capability: Router, on Capability: Wlan, off - Port: + Port: PortID: mac 08:00:27:18:e6:f2 PortDescr: eth1 PMD autoneg: supported: yes, enabled: yes @@ -51,7 +51,7 @@ Interface: eth0, via: LLDP, RID: 1, Time: 0 day, 00:32:50 Adv: 100Base-T, HD: yes, FD: yes Adv: 1000Base-T, HD: no, FD: yes MAU oper type: 1000BaseTFD - Four-pair Category 5 UTP, full duplex mode - LLDP-MED: + LLDP-MED: Device Type: Network Connectivity Device Capability: Capabilities Capability: Policy @@ -59,7 +59,7 @@ Interface: eth0, via: LLDP, RID: 1, Time: 0 day, 00:32:50 Capability: MDI/PSE Capability: MDI/PD Capability: Inventory - Inventory: + Inventory: Hardware Revision: 1.2 Software Revision: 3.13.11-1-586-vyos Firmware Revision: VirtualBox diff --git a/tests/unit/modules/network/vyos/fixtures/vyos_ospfv3_config.cfg b/tests/unit/modules/network/vyos/fixtures/vyos_ospfv3_config.cfg index 060b9b3..8fe2809 100644 --- a/tests/unit/modules/network/vyos/fixtures/vyos_ospfv3_config.cfg +++ b/tests/unit/modules/network/vyos/fixtures/vyos_ospfv3_config.cfg @@ -3,4 +3,4 @@ set protocols ospfv3 area 12 import-list 'import1' set protocols ospfv3 area 12 range '2001:db11::/32' set protocols ospfv3 area 12 range '2001:db22::/32' set protocols ospfv3 area 12 range '2001:db33::/32' -set protocols ospfv3 area 13 range '2001:db44::/32'
\ No newline at end of file +set protocols ospfv3 area 13 range '2001:db44::/32' diff --git a/tests/unit/modules/network/vyos/fixtures/vyos_route_maps_config.cfg b/tests/unit/modules/network/vyos/fixtures/vyos_route_maps_config.cfg index c7fd9ef..d115026 100644 --- a/tests/unit/modules/network/vyos/fixtures/vyos_route_maps_config.cfg +++ b/tests/unit/modules/network/vyos/fixtures/vyos_route_maps_config.cfg @@ -15,4 +15,4 @@ set policy route-map test3 rule 1 set origin 'egp' set policy route-map test3 rule 1 set originator-id '10.0.2.3' set policy route-map test3 rule 1 set src '10.0.2.15' set policy route-map test3 rule 1 set tag '5' -set policy route-map test3 rule 1 set weight '4'
\ No newline at end of file +set policy route-map test3 rule 1 set weight '4' |