diff --git a/.flake8 b/.flake8 deleted file mode 100644 index 45a9c85..0000000 --- a/.flake8 +++ /dev/null @@ -1,104 +0,0 @@ -[flake8] -max-complexity = 6 -inline-quotes = double -max-line-length = 88 -extend-ignore = E203 -docstring_style=sphinx - -ignore = - ; Found too deep nesting - WPS220, - ; Found `%` string formatting - WPS323, - ; Found `f` string - WPS305, - ; Missing docstring in public module - D100, - ; Missing docstring in magic method - D105, - ; Missing docstring in __init__ - D107, - ; Found class without a base class - WPS306, - ; Missing docstring in public nested class - D106, - ; First line should be in imperative mood - D401, - ; Found `__init__.py` module with logic - WPS412, - ; Found implicit string concatenation - WPS326, - ; Found string constant over-use - WPS226, - ; Found upper-case constant in a class - WPS115, - ; Found nested function - WPS430, - ; Found using `@staticmethod` - WPS602, - ; Found method without arguments - WPS605, - ; Found overused expression - WPS204, - ; Found too many module members - WPS202, - ; Found too high module cognitive complexity - WPS232, - ; line break before binary operator - W503, - ; Found module with too many imports - WPS201, - ; Found vague import that may cause confusion: X - WPS347, - ; Inline strong start-string without end-string. - RST210, - ; subprocess call with shell=True seems safe, but may be changed in the future. - S602, - ; Starting a process with a partial executable path. - S607, - ; Consider possible security implications associated with subprocess module. - S404, - ; Found nested class - WPS431, - ; Found wrong module name - WPS100, - ; Found too many methods - WPS214, - ; Found too long ``try`` body - WPS229, - ; Found function with too much cognitive complexity - WPS231, - -per-file-ignores = - ; all tests - test_*.py,tests.py,tests_*.py,*/tests/*: - ; Found magic number - WPS432, - ; Use of assert detected - S101, - ; Found outer scope names shadowing. - WPS442, - ; Found direct magic attribute usage. - WPS609, - ; Found protected attribute usage - WPS437, - ; Found too many await expressions: - WPS217, - ; Found too many arguments - WPS211, - - ; all init files - __init__.py: - ; ignore not used imports - F401, - ; ignore import with wildcard - F403, - ; Found wrong metadata variable - WPS410, - - -exclude = - ./.git, - ./venv, - ./cached_venv, - ./var, diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3f47f88..40a3f91 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,6 +39,7 @@ repos: entry: poetry run mypy language: system types: [python] + pass_filenames: false args: - - taskiq_aio_pika - - tests + - ./taskiq_aio_pika + - ./tests diff --git a/pyproject.toml b/pyproject.toml index 627115c..e238ae2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,6 @@ show_error_codes = true implicit_reexport = true allow_untyped_decorators = true warn_return_any = false -explicit_package_bases = true [tool.isort] profile = "black"