Skip to content
Permalink
Browse files

Add flake8, make it happy

  • Loading branch information...
fluffy-critter committed Mar 2, 2019
1 parent 631a817 commit 0661403b209e3f739774045da8a398b8d069abf7
Showing with 251 additions and 7 deletions.
  1. +6 −2 Makefile
  2. +3 −0 Pipfile
  3. +233 −2 Pipfile.lock
  4. +1 −0 pushl/__main__.py
  5. +1 −1 pushl/entries.py
  6. +5 −0 setup.cfg
  7. +2 −2 setup.py
@@ -1,11 +1,15 @@
all: pylint
all: pylint flake8

.PHONY: pylint
pylint:
pipenv run pylint -f colorized pushl

.PHONY: flake8
flake8:
pipenv run flake8

.PHONY: build
build: pylint
build: pylint flake8
pipenv run python3 setup.py sdist
pipenv run python3 setup.py bdist_wheel

@@ -4,6 +4,9 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pylint = "*"
flake8 = "*"
twine = "*"

[packages]
pushl = {editable = true,path = "."}

Some generated files are not rendered by default. Learn more.

@@ -77,5 +77,6 @@ def main():
LOGGER.error("Got keyboard interrupt; shutting down")
worker.threadpool.shutdown(False)


if __name__ == "__main__":
main()
@@ -83,7 +83,7 @@ def _check_rel(link, rel_whitelist, rel_blacklist):
(e.g. ['in-reply-to',None])
"""

if not 'href' in link.attrs:
if 'href' not in link.attrs:
# degenerate link
return False

@@ -1,2 +1,7 @@
[metadata]
license_file = LICENSE

[flake8]
max-line-length = 100
ignore = E722, W503, W504
exclude = .git, build, __pycache__
@@ -1,7 +1,7 @@
"""Setup for Publ packaging"""

# Always prefer setuptools over distutils
from setuptools import setup, find_packages
from setuptools import setup
from distutils.util import convert_path
from os import path

@@ -64,7 +64,7 @@
],

extras_require={
'dev': ['pylint', 'twine'],
'dev': ['pylint', 'twine', 'flake8'],
},

project_urls={

0 comments on commit 0661403

Please sign in to comment.
You can’t perform that action at this time.