Skip to content

Commit 7f9a77e

Browse files
committed
Update .pre-commit-config.yaml file.
1 parent 60f2139 commit 7f9a77e

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: "v4.5.0"
3+
rev: "v5.0.0"
44
hooks:
55
- id: check-added-large-files
66
- id: check-case-conflict
@@ -15,31 +15,28 @@ repos:
1515
- id: requirements-txt-fixer
1616
- id: trailing-whitespace
1717
- repo: https://github.com/codespell-project/codespell
18-
rev: v2.2.6
18+
rev: v2.3.0
1919
hooks:
2020
- id: codespell
21+
args: ["--ignore-words-list=socio-economic"]
2122
exclude: "CONTRIBUTORS.rst"
22-
- repo: https://github.com/ikamensh/flynt
23-
rev: "1.0.1"
24-
hooks:
25-
- id: flynt
26-
args: [--verbose]
2723
- repo: https://github.com/PyCQA/isort
2824
rev: "5.13.2"
2925
hooks:
3026
- id: isort
3127
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: "v0.1.14"
28+
rev: "v0.8.2"
3329
hooks:
3430
- id: ruff-format
3531
- id: ruff
32+
args: [--fix]
3633
- repo: https://github.com/adamchainz/blacken-docs
37-
rev: 1.16.0
34+
rev: 1.19.1
3835
hooks:
3936
- id: blacken-docs
4037
language_version: python3.10
4138
- repo: https://github.com/pre-commit/mirrors-prettier
42-
rev: "v3.1.0"
39+
rev: "v4.0.0-alpha.8"
4340
hooks:
4441
- id: prettier
4542
- repo: https://github.com/pre-commit/pygrep-hooks

app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import os
77

88
import dash
9-
from colour.hints import Optional
109
from flask import Flask
1110

1211
__author__ = "Colour Developers"
@@ -30,7 +29,7 @@
3029
*Flask* server hosting the *Dash* app.
3130
"""
3231

33-
SERVER_URL: Optional[str] = os.environ.get("COLOUR_DASH_SERVER")
32+
SERVER_URL: str | None = os.environ.get("COLOUR_DASH_SERVER")
3433
"""
3534
Server url used to construct permanent links for the individual apps.
3635
"""

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,9 @@ dev-dependencies = [
7070
]
7171

7272
[tool.codespell]
73+
ignore-words-list = "socio-economic"
7374
skip = "BIBLIOGRAPHY.bib,CONTRIBUTORS.rst,*.ipynb"
7475

75-
[tool.flynt]
76-
line_length=999
77-
7876
[tool.isort]
7977
ensure_newline_before_comments = true
8078
force_grid_wrap = 0

0 commit comments

Comments
 (0)