diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..c27527f --- /dev/null +++ b/.flake8 @@ -0,0 +1,3 @@ +[flake8] +ignore=E501,E123,E121,E126,E133,E203,W505,W503,W504 +exclude=.git,__pycache__,pwncat.egg-info,env,dist,build,data,docs,tests,test.py diff --git a/poetry.lock b/poetry.lock index d11a1ab..7dace6e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -145,14 +145,6 @@ category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" -[[package]] -name = "entrypoints" -version = "0.3" -description = "Discover and load entry points from installed packages." -category = "dev" -optional = false -python-versions = ">=2.7" - [[package]] name = "enum-tools" version = "0.6.4" @@ -182,26 +174,6 @@ mccabe = ">=0.6.0,<0.7.0" pycodestyle = ">=2.7.0,<2.8.0" pyflakes = ">=2.3.0,<2.4.0" -[[package]] -name = "flakehell" -version = "0.9.0" -description = "Flake8 wrapper to make it nice and configurable" -category = "dev" -optional = false -python-versions = ">=3.5" - -[package.dependencies] -colorama = "*" -entrypoints = "*" -flake8 = ">=3.8.0" -pygments = "*" -toml = "*" -urllib3 = "*" - -[package.extras] -docs = ["alabaster", "pygments-github-lexers", "recommonmark", "sphinx"] -dev = ["dlint", "flake8-2020", "flake8-aaa", "flake8-absolute-import", "flake8-alfred", "flake8-annotations-complexity", "flake8-bandit", "flake8-black", "flake8-broken-line", "flake8-bugbear", "flake8-builtins", "flake8-coding", "flake8-cognitive-complexity", "flake8-commas", "flake8-comprehensions", "flake8-debugger", "flake8-django", "flake8-docstrings", "flake8-eradicate", "flake8-executable", "flake8-expression-complexity", "flake8-fixme", "flake8-functions", "flake8-future-import", "flake8-import-order", "flake8-isort", "flake8-logging-format", "flake8-mock", "flake8-mutable", "flake8-mypy", "flake8-pep3101", "flake8-pie", "flake8-print", "flake8-printf-formatting", "flake8-pyi", "flake8-pytest", "flake8-pytest-style", "flake8-quotes", "flake8-requirements", "flake8-rst-docstrings", "flake8-scrapy", "flake8-spellcheck", "flake8-sql", "flake8-strict", "flake8-string-format", "flake8-tidy-imports", "flake8-todo", "flake8-use-fstring", "flake8-variables-names", "isort", "mccabe", "pandas-vet", "pep8-naming", "pylint", "pytest", "typing-extensions", "wemake-python-styleguide"] - [[package]] name = "idna" version = "2.10" @@ -815,7 +787,7 @@ testing = ["coverage (>=5.0.3)", "zope.event", "zope.testing"] [metadata] lock-version = "1.1" python-versions = "^3.9" -content-hash = "8124731c99f64d6013b5a6802bdeefc20c086d347bdccbdccf7f4979f4664dc5" +content-hash = "9357cb6dd124d9b201849436e710ae4baec36f65104fa505e5e155c60d602e79" [metadata.files] alabaster = [ @@ -976,10 +948,6 @@ docutils = [ {file = "docutils-0.16-py2.py3-none-any.whl", hash = "sha256:0c5b78adfbf7762415433f5515cd5c9e762339e23369dbe8000d84a4bf4ab3af"}, {file = "docutils-0.16.tar.gz", hash = "sha256:c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc"}, ] -entrypoints = [ - {file = "entrypoints-0.3-py2.py3-none-any.whl", hash = "sha256:589f874b313739ad35be6e0cd7efde2a4e9b6fea91edcc34e58ecbb8dbe56d19"}, - {file = "entrypoints-0.3.tar.gz", hash = "sha256:c70dd71abe5a8c85e55e12c19bd91ccfeec11a6e99044204511f9ed547d48451"}, -] enum-tools = [ {file = "enum_tools-0.6.4-py3-none-any.whl", hash = "sha256:2c625799cb68787a36438ee13069f14ab41e45abb9f2debf88bd823002906532"}, {file = "enum_tools-0.6.4.tar.gz", hash = "sha256:ee1f7cc2e4821cd284376e15e5badf556a6a781223d5da21f2e8c595f35cb7a6"}, @@ -988,10 +956,6 @@ flake8 = [ {file = "flake8-3.9.2-py2.py3-none-any.whl", hash = "sha256:bf8fd333346d844f616e8d47905ef3a3384edae6b4e9beb0c5101e25e3110907"}, {file = "flake8-3.9.2.tar.gz", hash = "sha256:07528381786f2a6237b061f6e96610a4167b226cb926e2aa2b6b1d78057c576b"}, ] -flakehell = [ - {file = "flakehell-0.9.0-py3-none-any.whl", hash = "sha256:48a3a9b46136240e52b3b32a78a0826c45f6dcf7d980c30f758c1db5b1439c0b"}, - {file = "flakehell-0.9.0.tar.gz", hash = "sha256:208836d8d24194d50cfa4c1fc99f681f3c537cc232edcd06455abc2971460893"}, -] idna = [ {file = "idna-2.10-py2.py3-none-any.whl", hash = "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0"}, {file = "idna-2.10.tar.gz", hash = "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"}, diff --git a/pyproject.toml b/pyproject.toml index 7ec1076..80d2f90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,3 @@ - -[tool.flakehell] -ignore=["E501,E123,E121,E126,E133,E203,W505,W503,W504"] -exclude=[".git","__pycache__","pwncat.egg-info","env","dist","build","data","docs","tests","test.py"] -extended_default_ignore = [] - [tool.isort] profile = "black" length_sort = true @@ -52,12 +46,12 @@ paramiko = "^2.7.2" Jinja2 = "^3.0.1" [tool.poetry.dev-dependencies] -flakehell = "^0.9.0" isort = "^5.8.0" pytest = "^6.2.4" Sphinx = "^4.0.2" sphinx-rtd-theme = "^0.5.2" enum-tools = "^0.6.4" +flake8 = "^3.9.2" [build-system] requires = ["poetry-core>=1.0.0"]