Skip to content

Commit

Permalink
Add DCXXX codes for backward compatibility
Browse files Browse the repository at this point in the history
Also bump package version to 2.3.0.
  • Loading branch information
albertas committed Apr 6, 2024
1 parent c14b433 commit 9e55a91
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To see suggested fixes for all files:
deadcode . --fix --dry
```

To see suggested fixes for only `foo.py` file:
To see suggested fixes only for `foo.py` file:
```shell
deadcode . --fix --dry foo.py
```
Expand Down
13 changes: 13 additions & 0 deletions deadcode/visitor/noqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@
"DC11": "DC11",
"DC12": "DC12",
"DC13": "DC13",
# For backward compatibility
"DC001": "DC01",
"DC002": "DC02",
"DC003": "DC03",
"DC004": "DC04",
"DC005": "DC05",
"DC006": "DC06",
"DC007": "DC07",
"DC008": "DC08",
"DC009": "DC09",
"DC011": "DC11",
"DC012": "DC12",
"DC013": "DC13",
}


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "deadcode"
version = "2.2.2"
version = "2.3.0"
authors = [
{name = "Albertas Gimbutas", email = "[email protected]"},
]
Expand Down

0 comments on commit 9e55a91

Please sign in to comment.