File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
colour_checker_detection/detection Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 38
38
poetry install
39
39
poetry run python -c "import imageio;imageio.plugins.freeimage.download()"
40
40
shell : bash
41
- - name : Lint with flake8
41
+ - name : Pre-Commit (All Files)
42
42
run : |
43
- poetry run flake8 $CI_PACKAGE --count --show-source --statistics
43
+ poetry run pre-commit run --all-files
44
44
shell : bash
45
45
- name : Test Optimised Python Execution
46
46
run : |
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Contributors
4
4
Development & Technical Support
5
5
-------------------------------
6
6
7
- - **Thomas Mansencal **, *Visual Effects Artist @ Weta Digital *
7
+ - **Thomas Mansencal **, *Lead Pipeline Developer @ WetaFX *
8
8
9
9
Project coordination, overall development.
10
10
Original file line number Diff line number Diff line change 41
41
)
42
42
from colour .models import cctf_encoding
43
43
from colour .utilities import (
44
+ MixinDataclassIterable ,
44
45
Structure ,
45
46
as_float_array ,
46
47
as_int_array ,
149
150
150
151
151
152
@dataclass
152
- class ColourCheckersDetectionData :
153
+ class ColourCheckersDetectionData ( MixinDataclassIterable ) :
153
154
"""
154
155
Colour checkers detection data used for plotting, debugging and further
155
156
analysis.
@@ -174,7 +175,7 @@ class ColourCheckersDetectionData:
174
175
175
176
176
177
@dataclass
177
- class ColourCheckerSwatchesData :
178
+ class ColourCheckerSwatchesData ( MixinDataclassIterable ) :
178
179
"""
179
180
Colour checker swatches data used for plotting, debugging and further
180
181
analysis.
Original file line number Diff line number Diff line change 26
26
]
27
27
28
28
intersphinx_mapping = {
29
- "python" : ("https://docs.python.org/3.7 " , None ),
29
+ "python" : ("https://docs.python.org/3.8 " , None ),
30
30
"matplotlib" : ("https://matplotlib.org/stable" , None ),
31
31
"numpy" : ("https://numpy.org/doc/stable" , None ),
32
32
"pandas" : ("https://pandas.pydata.org/pandas-docs/dev" , None ),
Original file line number Diff line number Diff line change 8
8
9
9
import codecs
10
10
import os
11
- from collections import OrderedDict
12
11
13
12
__copyright__ = "Copyright 2018 Colour Developers"
14
13
__license__ = "New BSD License - https://opensource.org/licenses/BSD-3-Clause"
46
45
]
47
46
48
47
49
- def extract_todo_items (root_directory : str ) -> OrderedDict :
48
+ def extract_todo_items (root_directory : str ) -> dict :
50
49
"""
51
50
Extract the TODO items from given directory.
52
51
@@ -57,11 +56,11 @@ def extract_todo_items(root_directory: str) -> OrderedDict:
57
56
58
57
Returns
59
58
-------
60
- :class:`collections.OrderedDict `
59
+ :class:`dict `
61
60
TODO items.
62
61
"""
63
62
64
- todo_items = OrderedDict ()
63
+ todo_items = {}
65
64
for root , dirnames , filenames in os .walk (root_directory ):
66
65
for filename in filenames :
67
66
if not filename .endswith (".py" ):
@@ -97,7 +96,7 @@ def extract_todo_items(root_directory: str) -> OrderedDict:
97
96
return todo_items
98
97
99
98
100
- def export_todo_items (todo_items : OrderedDict , file_path : str ):
99
+ def export_todo_items (todo_items : dict , file_path : str ):
101
100
"""
102
101
Export TODO items to given file.
103
102
You can’t perform that action at this time.
0 commit comments