Add pre-commit config and apply changes (#54)

- Add .pre-commit-config.yaml with initial config.
- Add python black pre-commit config
- Apply pre-commit code changes
- Add information to CONTRIBUTING.md
- Add pre-commit to build requirements
- Run pre-commit during travis CI build
- Use a travis build matrix to control when pre-commit runs
  in the CI process. Use explicit include to only run
  pre-commit on Python 3.9.
This commit is contained in:
Jon Grace-Cox
2022-08-08 19:02:02 -04:00
committed by GitHub
parent 217555a155
commit f16867114a
52 changed files with 655 additions and 385 deletions

View File

@@ -20,4 +20,4 @@
<text x="111" y="15" fill="#010101" fill-opacity=".3">110%</text>
<text x="110" y="14">110%</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="80.5" y="15" fill="#010101" fill-opacity=".3">Color.AQUA</text>
<text x="79.5" y="14">Color.AQUA</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="82.5" y="15" fill="#010101" fill-opacity=".3">Color.BLACK</text>
<text x="81.5" y="14">Color.BLACK</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="79.0" y="15" fill="#010101" fill-opacity=".3">Color.BLUE</text>
<text x="78.0" y="14">Color.BLUE</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="100.5" y="15" fill="#010101" fill-opacity=".3">Color.BRIGHT_RED</text>
<text x="99.5" y="14">Color.BRIGHT_RED</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="114.0" y="15" fill="#010101" fill-opacity=".3">Color.BRIGHT_YELLOW</text>
<text x="113.0" y="14">Color.BRIGHT_YELLOW</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -20,4 +20,4 @@
<text x="75.0" y="15" fill="#010101" fill-opacity=".3">brightred</text>
<text x="74.0" y="14">brightred</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="83.0" y="15" fill="#010101" fill-opacity=".3">brightyellow</text>
<text x="82.0" y="14">brightyellow</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="88.5" y="15" fill="#010101" fill-opacity=".3">Color.FUCHSIA</text>
<text x="87.5" y="14">Color.FUCHSIA</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="80.5" y="15" fill="#010101" fill-opacity=".3">Color.GRAY</text>
<text x="79.5" y="14">Color.GRAY</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="84.0" y="15" fill="#010101" fill-opacity=".3">Color.GREEN</text>
<text x="83.0" y="14">Color.GREEN</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="102.0" y="15" fill="#010101" fill-opacity=".3">Color.LIGHT_GREY</text>
<text x="101.0" y="14">Color.LIGHT_GREY</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="74.0" y="15" fill="#010101" fill-opacity=".3">lightgrey</text>
<text x="73.0" y="14">lightgrey</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="79.5" y="15" fill="#010101" fill-opacity=".3">Color.LIME</text>
<text x="78.5" y="14">Color.LIME</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="90.5" y="15" fill="#010101" fill-opacity=".3">Color.MAROON</text>
<text x="89.5" y="14">Color.MAROON</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="79.0" y="15" fill="#010101" fill-opacity=".3">Color.NAVY</text>
<text x="78.0" y="14">Color.NAVY</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="83.0" y="15" fill="#010101" fill-opacity=".3">Color.OLIVE</text>
<text x="82.0" y="14">Color.OLIVE</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="89.0" y="15" fill="#010101" fill-opacity=".3">Color.ORANGE</text>
<text x="88.0" y="14">Color.ORANGE</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="86.0" y="15" fill="#010101" fill-opacity=".3">Color.PURPLE</text>
<text x="85.0" y="14">Color.PURPLE</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="75.5" y="15" fill="#010101" fill-opacity=".3">Color.RED</text>
<text x="74.5" y="14">Color.RED</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="85.0" y="15" fill="#010101" fill-opacity=".3">Color.SILVER</text>
<text x="84.0" y="14">Color.SILVER</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="79.0" y="15" fill="#010101" fill-opacity=".3">Color.TEAL</text>
<text x="78.0" y="14">Color.TEAL</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="83.0" y="15" fill="#010101" fill-opacity=".3">Color.WHITE</text>
<text x="82.0" y="14">Color.WHITE</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="89.0" y="15" fill="#010101" fill-opacity=".3">Color.YELLOW</text>
<text x="88.0" y="14">Color.YELLOW</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="111.5" y="15" fill="#010101" fill-opacity=".3">Color.YELLOW_GREEN</text>
<text x="110.5" y="14">Color.YELLOW_GREEN</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="82.0" y="15" fill="#010101" fill-opacity=".3">yellowgreen</text>
<text x="81.0" y="14">yellowgreen</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="93" y="15" fill="#010101" fill-opacity=".3">65.0%</text>
<text x="92" y="14">65.0%</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1023 B

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -19,4 +19,4 @@
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="91.5" y="14">Archimedes</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 963 B

After

Width:  |  Height:  |  Size: 964 B

View File

@@ -20,4 +20,4 @@
<text x="100" y="15" fill="#010101" fill-opacity=".3">passing</text>
<text x="99" y="14">passing</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -20,4 +20,4 @@
<text x="76" y="15" fill="#010101" fill-opacity=".3">2.22</text>
<text x="75" y="14">2.22</text>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1014 B

After

Width:  |  Height:  |  Size: 1015 B