Use pre-commit to run pep8 check

Change-Id: I72590877273ee96c902a113304cd84054d339ae4
This commit is contained in:
Takashi Kajinami
2025-04-15 16:27:13 +09:00
parent 815df9ad17
commit 3df44357e4
25 changed files with 211 additions and 183 deletions

27
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,27 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
# Replaces or checks mixed line ending
- id: mixed-line-ending
args: ['--fix', 'lf']
exclude: '.*\.(svg)$'
# Forbid files which have a UTF-8 byte-order marker
- id: check-byte-order-marker
# Checks that non-binary executables have a proper shebang
- id: check-executables-have-shebangs
# Check for files that contain merge conflict strings.
- id: check-merge-conflict
# Check for debugger imports and py37+ breakpoint()
# calls in python source
- id: debug-statements
- id: check-yaml
files: .*\.(yaml|yml)$
- repo: https://opendev.org/openstack/hacking
rev: 7.0.0
hooks:
- id: hacking
additional_dependencies:
- flake8-import-order>0.18.0,<0.19.0
- horizon

View File

@@ -22,8 +22,8 @@ Generate a template
#. When in manipulate mode, click on CONNECT button to add an edge between
icons.
#. Click edges to show details of connections.
#. Click the Generate Template button at the top-right of the page and
generated template will be shown in a text box. You can also add
#. Click the Generate Template button at the top-right of the page and
generated template will be shown in a text box. You can also add
modification to the template here.
#. Click CREATE STACK to jump to continue to :guilabel:`Launch Stack`.
#. Click DOWNLOAD STACK to download the generated template.

View File

@@ -37,13 +37,13 @@
68.5,42.4 61.6,33 25.5,33 18.5,42.4 "/>
<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M39,55h29.5V42.4
c0,0,0,0,0,0H41H18.5c0,0,0,0.1,0,0.1V55H39z"/>
<rect x="24" y="45" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="29" y="45" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="34" y="45" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="39" y="45" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
</g>
</g>

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -37,13 +37,13 @@
68.5,42.4 61.6,33 25.5,33 18.5,42.4 "/>
<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M39,55h29.5V42.4
c0,0,0,0,0,0H41H18.5c0,0,0,0.1,0,0.1V55H39z"/>
<rect x="24" y="45" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="29" y="45" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="34" y="45" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="39" y="45" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
</g>
</g>

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -37,13 +37,13 @@
68.5,42.4 61.6,33 25.5,33 18.5,42.4 "/>
<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M39,55h29.5V42.4
c0,0,0,0,0,0H41H18.5c0,0,0,0.1,0,0.1V55H39z"/>
<rect x="24" y="45" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="29" y="45" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="34" y="45" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="39" y="45" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
</g>
</g>

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -43,13 +43,13 @@
68.5,39.4 61.6,30 25.5,30 18.5,39.4 "/>
<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M39,52h29.5V39.4
c0,0,0,0,0,0H41H18.5c0,0,0,0.1,0,0.1V52H39z"/>
<rect x="24" y="42" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="29" y="42" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="34" y="42" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="39" y="42" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
</g>
</g>
@@ -64,7 +64,7 @@
<path fill="#FFFFFF" d="M35,31.5c1.1,0,2,0.9,2,2c0,1.1-0.9,2-2,2c-1.1,0-2-0.9-2-2C33,32.4,33.9,31.5,35,31.5z"/>
</g>
<g>
<polyline fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="68.5,27
<polyline fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="68.5,27
61.5,17.5 25.5,17.5 18.5,27 "/>
<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M18.5,27
C18.5,27,18.5,27.1,18.5,27l0,12.5h50V27c0,0,0,0,0,0H18.5z"/>

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@@ -52,13 +52,13 @@
68.5,39.4 61.6,30 25.5,30 18.5,39.4 "/>
<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M39,52h29.5V39.4
c0,0,0,0,0,0H41H18.5c0,0,0,0.1,0,0.1V52H39z"/>
<rect x="24" y="42" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="29" y="42" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="34" y="42" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
<rect x="39" y="42" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.3"/>
</g>
</g>
@@ -73,7 +73,7 @@
<path fill="#FFFFFF" d="M35,31.5c1.1,0,2,0.9,2,2c0,1.1-0.9,2-2,2c-1.1,0-2-0.9-2-2C33,32.4,33.9,31.5,35,31.5z"/>
</g>
<g>
<polyline fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="68.5,27
<polyline fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="68.5,27
61.5,17.5 25.5,17.5 18.5,27 "/>
<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M18.5,27
C18.5,27,18.5,27.1,18.5,27l0,12.5h50V27c0,0,0,0,0,0H18.5z"/>

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -47,13 +47,13 @@
119.131,25.596 112.161,16.166 76.101,16.166 69.121,25.596 "/>
<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M89.61,38.166
h29.54v-12.57c0-0.02-0.01,0.03-0.02,0H91.61h-22.49c0,0.03-0.01,0.061-0.01,0.08v12.49H89.61z"/>
<rect x="74.611" y="28.166" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.25"/>
<rect x="79.61" y="28.166" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.25"/>
<rect x="84.61" y="28.166" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.25"/>
<rect x="89.61" y="28.166" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="2" height="7.25"/>
</g>
</g>

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

@@ -14,7 +14,7 @@
-webkit-transition: top 0.5s ease-out,opacity 0.2s ease-out;
-moz-transition: top 0.5s ease-out,opacity 0.2s ease-out;
-o-transition: top 0.5s ease-out,opacity 0.2s ease-out;
transition: top 0.5s ease-out,opacity 0.2s ease-out;
transition: top 0.5s ease-out,opacity 0.2s ease-out;
visibility:hidden;
@@ -60,7 +60,7 @@
position: absolute;
top: 0px;
right: 3px;
line-height: 15px;
line-height: 15px;
}
.cg-notify-close:hover, .cg-notify-close:focus {

View File

@@ -264,7 +264,7 @@
}
.vis-item .vis-delete {
background: none;
background: none;
position: absolute;
width: 24px;
height: 24px;

View File

@@ -92,7 +92,7 @@
$httpBackend.flush();
$scope.load_template_version();
expect($scope.template_version).toEqual('template_version-1');
});
});

View File

@@ -38,7 +38,7 @@
}
spyOn(mockEvent, 'preventDefault');
$scope.dragoverHandler(mockEvent);
expect(mockEvent.preventDefault).toHaveBeenCalled();
});

File diff suppressed because one or more lines are too long

View File

@@ -40,7 +40,7 @@ angular.module('cgNotify', []).factory('notify',['$timeout','$http','$compile','
var templateElement = $compile(template.data)(scope);
templateElement.bind('webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd', function(e){
if (e.propertyName === 'opacity' || e.currentTarget.style.opacity === 0 ||
if (e.propertyName === 'opacity' || e.currentTarget.style.opacity === 0 ||
(e.originalEvent && e.originalEvent.propertyName === 'opacity')){
templateElement.remove();
@@ -112,7 +112,7 @@ angular.module('cgNotify', []).factory('notify',['$timeout','$http','$compile','
});
var retVal = {};
retVal.close = function(){
if (scope.$close){
scope.$close();

View File

@@ -8769,7 +8769,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 13 */
/***/ function(module, exports) {
/**
* Expose `Emitter`.
*/
@@ -14126,7 +14126,7 @@ return /******/ (function(modules) { // webpackBootstrap
/**
* used in Core to convert the options into a volatile variable
*
*
* @param Core
*/
exports.convertHiddenOptions = function (body, hiddenDates) {

View File

@@ -24,7 +24,7 @@
<label>Volume Type</label>
<md-select ng-model="$ctrl.volume.volume_type" >
<md-option ng-repeat="vtype in options.volume_types" ng-value="vtype.id">
{$ vtype.name $}
{$ vtype.name $}
</md-option>
</md-select>
</md-input-container>
@@ -33,7 +33,7 @@
<label>Availability Zone</label>
<md-select ng-model="$ctrl.volume.availability_zone">
<md-option ng-repeat="az in options.availability_zones" ng-value="az.id">
{$ az.name $}
{$ az.name $}
</md-option>
</md-select>
</md-input-container>
@@ -70,7 +70,7 @@
<label>Create from source</label>
<md-select ng-model="$ctrl.volume.boot_source">
<md-option ng-repeat="source in boot_sources" ng-value="source.id">
{$ source.name $}
{$ source.name $}
</md-option>
</md-select>
</md-input-container>
@@ -79,7 +79,7 @@
<label>Backup ID</label>
<md-select ng-model="$ctrl.volume.backup_id" >
<md-option ng-repeat="backup in options.volume_backups" ng-value="backup.id">
{$ backup.name $}
{$ backup.name $}
</md-option>
</md-select>
</md-input-container>
@@ -88,7 +88,7 @@
<label>Image</label>
<md-select ng-model="$ctrl.volume.image" >
<md-option ng-repeat="image in options.images" ng-value="image.id">
{$ image.name $}
{$ image.name $}
</md-option>
</md-select>
</md-input-container>
@@ -97,7 +97,7 @@
<label>Snapshot</label>
<md-select ng-model="$ctrl.volume.snapshot_id" >
<md-option ng-repeat="snapshot in options.volume_snapshots" ng-value="snapshot.id">
{$ snapshot.name $}
{$ snapshot.name $}
</md-option>
</md-select>
</md-input-container>
@@ -106,7 +106,7 @@
<label>Source Volume</label>
<md-select ng-model="$ctrl.volume.source_volid" >
<md-option ng-repeat="volume in options.volumes" ng-value="volume.id">
{$ volume.name $}
{$ volume.name $}
</md-option>
</md-select>
</md-input-container>

View File

@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="55" height="55" style="" viewBox="0 0 55 55">
<g>
<g>
<circle class="frame" r="25" style="fill:white;fill-opacity=0.0;stroke-width:3;stroke:#3f51b5" cy="27.645854949951172" cx="27.5" id="svg_2"/>
</g>
<g class="currentLayer" style=""><title>Layer 1</title><g id="XMLID_6_" class="">
@@ -25,13 +25,13 @@
<g id="svg_18">
<polyline fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="43.40347710251808,26.90349578857422 39.061005026102066,21.21005630493164 16.341699987649918,21.21005630493164 11.936293989419937,26.90349578857422 " id="svg_19"/>
<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M24.837838805619384,34.53511926266097 h18.565637997080472 V26.90349184494741 c0,0 0,0 0,0 H26.09652612745535 H11.936293756800751 c0,0 0,0.06056847156915534 0,0.06056847156915534 V34.53511926266097 H24.837838805619384 z" id="svg_20"/>
<rect x="15.397683891849653" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_21"/>
<rect x="18.544402196439563" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_22"/>
<rect x="21.691120501029474" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_23"/>
<rect x="24.837838805619384" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_24"/>
</g>
<g id="svg_25">

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="55" height="55" style="" viewBox="0 0 55 55">
<g>
<g>
<circle class="frame" r="25" style="fill:white;fill-opacity=0.0;stroke-width:3;stroke:#808080" cy="27.645854949951172" cx="27.5" id="svg_2"/>
</g>
<g class="currentLayer" style=""><title>Layer 1</title><g id="XMLID_6_" class="">
@@ -25,13 +25,13 @@
<g id="svg_18">
<polyline fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="43.40347710251808,26.90349578857422 39.061005026102066,21.21005630493164 16.341699987649918,21.21005630493164 11.936293989419937,26.90349578857422 " id="svg_19"/>
<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M24.837838805619384,34.53511926266097 h18.565637997080472 V26.90349184494741 c0,0 0,0 0,0 H26.09652612745535 H11.936293756800751 c0,0 0,0.06056847156915534 0,0.06056847156915534 V34.53511926266097 H24.837838805619384 z" id="svg_20"/>
<rect x="15.397683891849653" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_21"/>
<rect x="18.544402196439563" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_22"/>
<rect x="21.691120501029474" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_23"/>
<rect x="24.837838805619384" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_24"/>
</g>
<g id="svg_25">

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="55" height="55" style="" viewBox="0 0 55 55">
<g>
<g>
<circle class="frame" r="25" style="fill:white;fill-opacity=0.0;stroke-width:3;stroke:green" cy="27.645854949951172" cx="27.5" id="svg_2"/>
</g>
<g class="currentLayer" style=""><title>Layer 1</title><g id="XMLID_6_" class="">
@@ -25,13 +25,13 @@
<g id="svg_18">
<polyline fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="43.40347710251808,26.90349578857422 39.061005026102066,21.21005630493164 16.341699987649918,21.21005630493164 11.936293989419937,26.90349578857422 " id="svg_19"/>
<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M24.837838805619384,34.53511926266097 h18.565637997080472 V26.90349184494741 c0,0 0,0 0,0 H26.09652612745535 H11.936293756800751 c0,0 0,0.06056847156915534 0,0.06056847156915534 V34.53511926266097 H24.837838805619384 z" id="svg_20"/>
<rect x="15.397683891849653" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_21"/>
<rect x="18.544402196439563" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_22"/>
<rect x="21.691120501029474" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_23"/>
<rect x="24.837838805619384" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_24"/>
</g>
<g id="svg_25">

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="55" height="55" style="" viewBox="0 0 55 55">
<g>
<g>
<circle class="frame" r="25" style="fill:white;fill-opacity=0.0;stroke-width:3;stroke:#C82128" cy="27.645854949951172" cx="27.5" id="svg_2"/>
</g>
<g class="currentLayer" style=""><title>Layer 1</title><g id="XMLID_6_" class="">
@@ -25,13 +25,13 @@
<g id="svg_18">
<polyline fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="43.40347710251808,26.90349578857422 39.061005026102066,21.21005630493164 16.341699987649918,21.21005630493164 11.936293989419937,26.90349578857422 " id="svg_19"/>
<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M24.837838805619384,34.53511926266097 h18.565637997080472 V26.90349184494741 c0,0 0,0 0,0 H26.09652612745535 H11.936293756800751 c0,0 0,0.06056847156915534 0,0.06056847156915534 V34.53511926266097 H24.837838805619384 z" id="svg_20"/>
<rect x="15.397683891849653" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_21"/>
<rect x="18.544402196439563" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_22"/>
<rect x="21.691120501029474" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_23"/>
<rect x="24.837838805619384" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_24"/>
</g>
<g id="svg_25">

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="55" height="55" style="" viewBox="0 0 55 55">
<g>
<g>
<circle class="frame" r="25" style="fill:white;fill-opacity=0.0;stroke-width:3;stroke:black" cy="27.75" cx="27.5" id="svg_2"/>
</g>
<g class="currentLayer" style=""><title>Layer 1</title><g id="XMLID_6_" class="">
@@ -25,13 +25,13 @@
<g id="svg_18">
<polyline fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="43.40347710251808,26.90349578857422 39.061005026102066,21.21005630493164 16.341699987649918,21.21005630493164 11.936293989419937,26.90349578857422 " id="svg_19"/>
<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M24.837838805619384,34.53511926266097 h18.565637997080472 V26.90349184494741 c0,0 0,0 0,0 H26.09652612745535 H11.936293756800751 c0,0 0,0.06056847156915534 0,0.06056847156915534 V34.53511926266097 H24.837838805619384 z" id="svg_20"/>
<rect x="15.397683891849653" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_21"/>
<rect x="18.544402196439563" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_22"/>
<rect x="21.691120501029474" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_23"/>
<rect x="24.837838805619384" y="28.478272105745447" fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="1.2586873218359642" height="4.421498540073523" id="svg_24"/>
</g>
<g id="svg_25">

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -1,6 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="55" height="55" viewBox="0 0 55 55">
<rect id="backgroundrect" width="100%" height="100%" x="0" y="0" fill="none" stroke="none" class="" style=""/><g class="currentLayer" style=""><title>Layer 1</title><path d="M42.1771287043557,41.60010476176677 v-20.074996256989024 q0,-0.2398666832176999 -0.17528684499111694,-0.4151538747998659 t-0.41515305392632923,-0.17528719158216585 h-20.07495656319317 q-0.2398662089352129,0 -0.41515305392632923,0.17528719158216585 t-0.17528684499111694,0.4151538747998659 v20.074996256989024 q0,0.2398666832176999 0.17528684499111694,0.4151538747998659 t0.41515305392632923,0.17528719158216585 h20.07495656319317 q0.2398662089352129,0 0.41515305392632923,-0.17528719158216585 t0.17528684499111694,-0.4151538747998659 zm2.3617595956697843,-20.074996256989024 v20.074996256989024 q0,1.2177846994129382 -0.8672086015349999,2.084995015661544 t-2.084990893052231,0.8672103162486069 h-20.07495656319317 q-1.2177822915172334,0 -2.084990893052231,-0.8672103162486069 t-0.8672086015349999,-2.084995015661544 v-20.074996256989024 q0,-1.2177846994129382 0.8672086015349999,-2.084995015661544 t2.084990893052231,-0.8672103162486069 h20.07495656319317 q1.2177822915172334,0 2.084990893052231,0.8672103162486069 t0.8672086015349999,2.084995015661544 zm-7.085278787009353,-7.085292796584362 v2.952205331910151 h-2.3617595956697843 v-2.952205331910151 q0,-0.2398666832176999 -0.17528684499111694,-0.4151538747998659 t-0.41515305392632923,-0.17528719158216585 h-20.07495656319317 q-0.2398662089352129,0 -0.41515305392632923,0.17528719158216585 t-0.17528684499111694,0.4151538747998659 v20.074996256989024 q0,0.2398666832176999 0.17528684499111694,0.4151538747998659 t0.41515305392632923,0.17528719158216585 h2.9521994945872314 v2.3617642655281212 h-2.9521994945872314 q-1.2177822915172334,0 -2.084990893052231,-0.8672103162486069 t-0.8672086015349999,-2.084995015661544 v-20.074996256989024 q0,-1.2177846994129382 0.8672086015349999,-2.084995015661544 t2.084990893052231,-0.8672103162486069 h20.07495656319317 q1.2177822915172334,0 2.084990893052231,0.8672103162486069 t0.8672086015349999,2.084995015661544 z" id="svg_1" class="" stroke="#808080" stroke-opacity="1" fill="#808080" fill-opacity="1"/></g><g><title>Layer 2</title>
<g><text x="25" y="40" style="fill: #808080; stroke: #808080; font-size: 20px;font-family:Helvetica;" id="svg_1" class="">P</text></g>
<g id="svg_3">
<g id="svg_3">
<circle class="frame" r="25" style="fill:none;fill-opacity=0.0;stroke-width:3;stroke:#808080" cy="27.75" cx="27.5" id="svg_2"/>
</g></g></svg>

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="55" height="55" style="" viewBox="0 0 55 55">
<svg xmlns="http://www.w3.org/2000/svg" width="55" height="55" style="" viewBox="0 0 55 55">
<g class="currentLayer" style=""><title>Layer 1</title>
<circle class="frame" r="25" style="fill:white;fill-opacity=0.0;stroke-width:3;stroke:black" cy="27.395854949951172" cx="28.040435791015625" id="svg_2"/><g class="node" fill="white" id="svg_1">
<circle class="frame" r="12.625" style="fill:white;fill-opacity=0.0;stroke-width:3;stroke:black" cy="27.50000006039729" cx="19.665435659599986" id="svg_2"/>

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -1,7 +1,4 @@
hacking>=6.1.0,<6.2.0 # Apache-2.0
coverage>=4.0 # Apache-2.0
flake8-import-order>=0.18.0,<0.19.0 # LGPLv3
nodeenv>=0.9.4 # BSD
testtools>=2.2.0 # MIT

View File

@@ -32,7 +32,11 @@ setenv =
commands = python manage.py test {posargs:heat_dashboard.test.integration} --settings=heat_dashboard.test.settings --tag integration
[testenv:pep8]
commands = flake8 {posargs}
skip_install = true
deps =
pre-commit
commands =
pre-commit run -a
[testenv:venv]
commands = {posargs}