Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from ninoseki/drop-python37
refactor: drop Python 3.7 support & update deps
- Loading branch information
Showing
7 changed files
with
814 additions
and
892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,48 @@ | ||
repos: | ||
- repo: https://github.com/humitos/mirrors-autoflake | ||
rev: v1.3 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: autoflake | ||
- id: check-added-large-files | ||
- id: check-toml | ||
- id: check-yaml | ||
args: | ||
[ | ||
"--in-place", | ||
"--remove-all-unused-imports", | ||
"--remove-unused-variable", | ||
] | ||
- --unsafe | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.29.0 | ||
rev: v3.9.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py37-plus] | ||
args: | ||
- --py38-plus | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.9.2 | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.0.280 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [flake8-print] | ||
args: ["--ignore=E501,W503,E203"] | ||
- id: ruff | ||
args: | ||
- --fix | ||
|
||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.9.2 | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
additional_dependencies: [toml] | ||
exclude: ^.*/?setup\.py$ | ||
args: ["--profile", "black", "--filter-files"] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 21.9b0 | ||
rev: 23.7.0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.4.1 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: | ||
- types-all | ||
|
||
- repo: https://github.com/andrei-shabanski/poetry-plugin-sort | ||
rev: v0.2.0 | ||
hooks: | ||
- id: poetry-sort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,4 +72,4 @@ async def main(): | |
|
||
loop = asyncio.get_event_loop() | ||
loop.run_until_complete(main()) | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
from .checker import DNSBLChecker | ||
import importlib.metadata as importlib_metadata | ||
|
||
try: | ||
import importlib.metadata as importlib_metadata | ||
except ModuleNotFoundError: | ||
import importlib_metadata | ||
from .checker import DNSBLChecker # noqa: F401 | ||
|
||
__version__ = importlib_metadata.version(__name__) | ||
|
||
__all__ = ["DNSBLChecker"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.