Skip to content

Commit a43b8fe

Browse files
committed
Merge branch 'JakobGM-jakobgm/fix-invalid-escape-sequences'
2 parents fb539ee + e43de21 commit a43b8fe

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.pre-commit-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@ repos:
1616
- id: isort
1717
name: isort (pyi)
1818
types: [pyi]
19+
- repo: https://github.com/charliermarsh/ruff-pre-commit
20+
rev: 'v0.0.261'
21+
hooks:
22+
- id: ruff
23+
name: ruff (python)
24+
args: [--fix, --exit-non-zero-on-fix]

clevercsv/normal_form.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def every_row_has_delim(rows, dialect):
155155

156156
def is_elementary(cell):
157157
return not (
158-
regex.fullmatch("[a-zA-Z0-9\.\_\&\-\@\+\%\(\)\ \/]+", cell) is None
158+
regex.fullmatch(r"[a-zA-Z0-9\.\_\&\-\@\+\%\(\)\ \/]+", cell) is None
159159
)
160160

161161

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ sections=["FUTURE", "STDLIB", "TYPING", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER
77
known_typing=["typing"]
88
force_single_line=true
99
lines_between_types=1
10+
11+
[tool.ruff]
12+
# Detect invalid escape sequences in string literals
13+
select = ["W605"]

0 commit comments

Comments
 (0)