Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrelg committed Apr 3, 2021
1 parent df09fa2 commit 06bc801
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,23 @@ Also helps you manage [forward references](https://mypy.readthedocs.io/en/stable

### Disabled by default

Depending on how you wish to manage your forward references, you should choose
**one of** the `TCH1` and `TCH2` error ranges, as they are mutually exclusive.
Codes related to forward reference management should probably be activated,
but since there are two different ways of managing them, they are disbaled
by default and you need to choose one of them.

`TCH100` and `TCH101` manage forward references by taking advantage of
[postponed evaluation of annotations](https://www.python.org/dev/peps/pep-0563/).

| Code | Description |
|--------|-----------------------------------------------------|
| TC100 | Add 'from \_\_future\_\_ import annotations' import |
| TC101 | Annotation does not need to be a string literal |

`TCH200` and `TCH201` manage forward references using string string literals
(wrapping the annotation in quotes).

| Code | Description |
|--------|-----------------------------------------------------|
| TC200 | Annotation needs to be made into a string literal |
| TC201 | Annotation does not need to be a string literal |

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = 'flake8-type-checking'
version = '0.1.1'
version = '0.1.2'
description = 'A flake8 plugin for managing type-checking imports & forward references'
homepage = 'https://github.com/sondrelg/flake8-type-checking'
repository = 'https://github.com/sondrelg/flake8-type-checking'
Expand All @@ -12,7 +12,7 @@ keywords = ['flake8', 'linting', 'type hint', 'typing', 'imports']
include = ['CHANGELOG.md']
packages = [{ include = 'flake8_type_checking' }]
classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Environment :: Console',
'Operating System :: OS Independent',
Expand Down

0 comments on commit 06bc801

Please sign in to comment.