Skip to content

Commit 23cfb8b

Browse files
committed
Implement support for "Colour" 0.4.3.
1 parent 2c362ce commit 23cfb8b

File tree

4 files changed

+228
-148
lines changed

4 files changed

+228
-148
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
repos:
22
- repo: https://github.com/ikamensh/flynt/
3-
rev: '0.77'
3+
rev: '1.0.1'
44
hooks:
55
- id: flynt
66
- repo: https://github.com/charliermarsh/ruff-pre-commit
7-
rev: 'v0.0.239'
7+
rev: 'v0.0.285'
88
hooks:
99
- id: ruff
1010
- repo: https://github.com/psf/black
11-
rev: 22.10.0
11+
rev: 23.7.0
1212
hooks:
1313
- id: black
1414
language_version: python3.9

pyproject.toml

Lines changed: 53 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -40,58 +40,31 @@ classifiers = [
4040

4141
[tool.poetry.dependencies]
4242
python = ">= 3.9, < 3.12"
43-
colour-science = ">= 0.4.2"
43+
colour-science = ">= 0.4.3"
4444
imageio = ">= 2, < 3"
45-
numpy = ">= 1.21, < 2"
46-
scipy = ">= 1.7, < 2"
45+
numpy = ">= 1.22, < 2"
46+
scipy = ">= 1.8, < 2"
4747
dash = "*"
4848
dash-renderer = "*"
4949
gunicorn = "*"
5050
plotly = "*"
5151

52-
black = { version = "*", optional = true } # Development dependency.
53-
blackdoc = { version = "*", optional = true } # Development dependency.
54-
coverage = { version = "!= 6.3", optional = true } # Development dependency.
55-
coveralls = { version = "*", optional = true } # Development dependency.
56-
flynt = { version = "*", optional = true } # Development dependency.
57-
invoke = { version = "*", optional = true } # Development dependency.
58-
pre-commit = { version = "*", optional = true } # Development dependency.
59-
pyright = { version = "*", optional = true } # Development dependency.
60-
pytest = { version = "*", optional = true } # Development dependency.
61-
pytest-cov = { version = "*", optional = true } # Development dependency.
62-
pytest-xdist = { version = "*", optional = true } # Development dependency.
63-
ruff = { version = "*", optional = true } # Development dependency.
64-
65-
[tool.poetry.dev-dependencies]
52+
[tool.poetry.group.dev.dependencies]
6653
black = "*"
6754
blackdoc = "*"
68-
coverage = "*"
55+
coverage = "!= 6.3"
6956
coveralls = "*"
7057
flynt = "*"
7158
invoke = "*"
59+
jupyter = "*"
7260
pre-commit = "*"
7361
pyright = "*"
7462
pytest = "*"
7563
pytest-cov = "*"
7664
pytest-xdist = "*"
7765
ruff = "*"
78-
79-
[tool.poetry.extras]
80-
development = [
81-
"black",
82-
"blackdoc",
83-
"coverage",
84-
"coveralls",
85-
"flynt",
86-
"invoke",
87-
"mypy",
88-
"pre-commit",
89-
"pyright",
90-
"pytest",
91-
"pytest-cov",
92-
"pytest-xdist",
93-
"ruff",
94-
]
66+
toml = "*"
67+
twine = "*"
9568

9669
[tool.black]
9770
line-length = 79
@@ -119,47 +92,47 @@ reportUnusedExpression = false
11992
target-version = "py39"
12093
line-length = 88
12194
select = [
122-
"A", # flake8-builtins
123-
"ARG", # flake8-unused-arguments
124-
# "ANN", # flake8-annotations
125-
"B", # flake8-bugbear
126-
# "BLE", # flake8-blind-except
127-
"C4", # flake8-comprehensions
128-
# "C90", # mccabe
129-
# "COM", # flake8-commas
130-
"DTZ", # flake8-datetimez
131-
"D", # pydocstyle
132-
"E", # pydocstyle
133-
# "ERA", # eradicate
134-
# "EM", # flake8-errmsg
135-
"EXE", # flake8-executable
136-
"F", # flake8
137-
# "FBT", # flake8-boolean-trap
138-
"G", # flake8-logging-format
139-
"I", # isort
140-
"ICN", # flake8-import-conventions
141-
"INP", # flake8-no-pep420
142-
"ISC", # flake8-implicit-str-concat
143-
"N", # pep8-naming
144-
# "PD", # pandas-vet
145-
"PIE", # flake8-pie
146-
"PGH", # pygrep-hooks
147-
"PL", # pylint
148-
# "PT", # flake8-pytest-style
149-
# "PTH", # flake8-use-pathlib [Enable]
150-
"Q", # flake8-quotes
151-
"RET", # flake8-return
152-
"RUF", # Ruff
153-
"S", # flake8-bandit
154-
"SIM", # flake8-simplify
155-
"T10", # flake8-debugger
156-
"T20", # flake8-print
157-
# "TCH", # flake8-type-checking
158-
"TID", # flake8-tidy-imports
159-
"TRY", # tryceratops
160-
"UP", # pyupgrade
161-
"W", # pydocstyle
162-
"YTT" # flake8-2020
95+
"A", # flake8-builtins
96+
"ARG", # flake8-unused-arguments
97+
# "ANN", # flake8-annotations
98+
"B", # flake8-bugbear
99+
# "BLE", # flake8-blind-except
100+
"C4", # flake8-comprehensions
101+
# "C90", # mccabe
102+
# "COM", # flake8-commas
103+
"DTZ", # flake8-datetimez
104+
"D", # pydocstyle
105+
"E", # pydocstyle
106+
# "ERA", # eradicate
107+
# "EM", # flake8-errmsg
108+
"EXE", # flake8-executable
109+
"F", # flake8
110+
# "FBT", # flake8-boolean-trap
111+
"G", # flake8-logging-format
112+
"I", # isort
113+
"ICN", # flake8-import-conventions
114+
"INP", # flake8-no-pep420
115+
"ISC", # flake8-implicit-str-concat
116+
"N", # pep8-naming
117+
# "PD", # pandas-vet
118+
"PIE", # flake8-pie
119+
"PGH", # pygrep-hooks
120+
"PL", # pylint
121+
# "PT", # flake8-pytest-style
122+
# "PTH", # flake8-use-pathlib [Enable]
123+
"Q", # flake8-quotes
124+
"RET", # flake8-return
125+
"RUF", # Ruff
126+
"S", # flake8-bandit
127+
"SIM", # flake8-simplify
128+
"T10", # flake8-debugger
129+
"T20", # flake8-print
130+
# "TCH", # flake8-type-checking
131+
"TID", # flake8-tidy-imports
132+
"TRY", # tryceratops
133+
"UP", # pyupgrade
134+
"W", # pydocstyle
135+
"YTT" # flake8-2020
163136
]
164137
ignore = [
165138
"B008",
@@ -178,9 +151,13 @@ ignore = [
178151
"N813",
179152
"N815",
180153
"N816",
154+
"PGH003",
181155
"PIE804",
182156
"PLE0605",
157+
"PLR0911",
158+
"PLR0912",
183159
"PLR0913",
160+
"PLR0915",
184161
"PLR2004",
185162
"RET504",
186163
"RET505",

0 commit comments

Comments
 (0)