Skip to content

Commit 9e55a91

Browse files
committed
Add DCXXX codes for backward compatibility
Also bump package version to 2.3.0.
1 parent c14b433 commit 9e55a91

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To see suggested fixes for all files:
2525
deadcode . --fix --dry
2626
```
2727

28-
To see suggested fixes for only `foo.py` file:
28+
To see suggested fixes only for `foo.py` file:
2929
```shell
3030
deadcode . --fix --dry foo.py
3131
```

deadcode/visitor/noqa.py

+13
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@
3131
"DC11": "DC11",
3232
"DC12": "DC12",
3333
"DC13": "DC13",
34+
# For backward compatibility
35+
"DC001": "DC01",
36+
"DC002": "DC02",
37+
"DC003": "DC03",
38+
"DC004": "DC04",
39+
"DC005": "DC05",
40+
"DC006": "DC06",
41+
"DC007": "DC07",
42+
"DC008": "DC08",
43+
"DC009": "DC09",
44+
"DC011": "DC11",
45+
"DC012": "DC12",
46+
"DC013": "DC13",
3447
}
3548

3649

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "deadcode"
3-
version = "2.2.2"
3+
version = "2.3.0"
44
authors = [
55
{name = "Albertas Gimbutas", email = "[email protected]"},
66
]

0 commit comments

Comments
 (0)