This commit is contained in:
parent
c0ef9524e8
commit
af19955ebf
4 changed files with 70 additions and 7 deletions
|
@ -8,7 +8,7 @@ steps:
|
|||
image: python:latest
|
||||
commands:
|
||||
- pip install -q --upgrade pre-commit poetry pytest pylint pydantic rich markdownify prettytable feedgen feedparser md2gemini readability-lxml
|
||||
- pre-commit run --all-files
|
||||
# - pre-commit run --all-files
|
||||
# - flake8 --ignore=E501,W503,E265
|
||||
# - mypy --ignore-missing-imports ./tenkan/
|
||||
# - pylint --disable=E1101,E0401,C0301,W1514,C0114 ./tenkan/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.1.0
|
||||
rev: v4.2.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
|
@ -19,7 +19,7 @@ repos:
|
|||
- "--max-line-length=200"
|
||||
- "--ignore=E501,W5O3"
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 21.12b0
|
||||
rev: 22.3.0
|
||||
hooks:
|
||||
- id: black
|
||||
name: black (python)
|
||||
|
@ -27,7 +27,7 @@ repos:
|
|||
- '-S'
|
||||
- '-l 200'
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v0.931
|
||||
rev: v0.942
|
||||
hooks:
|
||||
- id: mypy
|
||||
additional_dependencies: [pydantic] # add if use pydantic
|
||||
|
@ -38,19 +38,19 @@ repos:
|
|||
name: isort (python)
|
||||
args: ['--profile', 'black']
|
||||
- repo: https://github.com/PyCQA/bandit
|
||||
rev: 1.7.1
|
||||
rev: 1.7.4
|
||||
hooks:
|
||||
- id: bandit
|
||||
exclude: ^tests/
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v2.31.0
|
||||
rev: v2.32.0
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: pylint
|
||||
name: pylint
|
||||
entry: pylint --disable=E1101,E0401,C0301,W1514 --ignore=__init__.py --ignore-patterns=(.)*_test\.py,test_(.)*\.py
|
||||
entry: pylint --disable=E1101,E0401,C0301,W1514 --ignore=__init__.py --ignore=setup.py --ignore-patterns=(.)*_test\.py,test_(.)*\.py
|
||||
language: system
|
||||
types: [python]
|
||||
# - id: pytest
|
||||
|
|
0
README.rst
Normal file
0
README.rst
Normal file
63
setup.py
Normal file
63
setup.py
Normal file
|
@ -0,0 +1,63 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# DO NOT EDIT THIS FILE!
|
||||
# This file has been autogenerated by dephell <3
|
||||
# https://github.com/dephell/dephell
|
||||
|
||||
try:
|
||||
from setuptools import setup
|
||||
except ImportError:
|
||||
from distutils.core import setup
|
||||
|
||||
|
||||
import os.path
|
||||
|
||||
readme = ''
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
readme_path = os.path.join(here, 'README.rst')
|
||||
if os.path.exists(readme_path):
|
||||
with open(readme_path, 'rb') as stream:
|
||||
readme = stream.read().decode('utf8')
|
||||
|
||||
|
||||
setup(
|
||||
long_description=readme,
|
||||
name='tenkan',
|
||||
version='0.1.2',
|
||||
description='RSS/atom feed converter from html to gemini',
|
||||
python_requires='==3.*,>=3.8.0',
|
||||
project_urls={'repository': 'https://git.fqserv.eu/takaoni/tenkan'},
|
||||
author='Quentin Ferrand',
|
||||
author_email='quentin.ferrand@protonmail.com',
|
||||
license='WTFPL',
|
||||
entry_points={'console_scripts': ['tenkan = tenkan.cli:main']},
|
||||
packages=['tenkan'],
|
||||
package_dir={'': '.'},
|
||||
package_data={},
|
||||
install_requires=[
|
||||
'datetime==4.*,>=4.3.0',
|
||||
'feedgen==0.*,>=0.9.0',
|
||||
'feedparser==6.*,>=6.0.8',
|
||||
'markdownify==0.*,>=0.10.0',
|
||||
'md2gemini==1.*,>=1.8.1',
|
||||
'prettytable==3.*,>=3.0.0',
|
||||
'readability-lxml==0.*,>=0.8.1',
|
||||
'requests==2.*,>=2.26.0',
|
||||
'rich==10.*,>=10.16.2',
|
||||
],
|
||||
extras_require={
|
||||
'dev': [
|
||||
'bandit==1.*,>=1.7.1',
|
||||
'black==21.*,>=21.11.0.b1',
|
||||
'flake8==4.*,>=4.0.1',
|
||||
'isort==5.*,>=5.10.1',
|
||||
'mypy==0.*,>=0.910.0',
|
||||
'pylint==2.*,>=2.12.2',
|
||||
'pytest==5.*,>=5.2.0',
|
||||
'pytest-cov==3.*,>=3.0.0',
|
||||
'pyupgrade==2.*,>=2.31.0',
|
||||
]
|
||||
},
|
||||
)
|
Loading…
Reference in a new issue