-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
109 lines (90 loc) · 2.6 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# -*- coding: utf-8 -*-
# Copyright 2014-2021 Neil Freeman [email protected]
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "twitter_bot_utils"
description = "Python utilities for twitter bots"
readme = "README.md"
authors = [
{ name = "Neil Freeman", email = "[email protected]"}
]
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent",
]
dynamic = ["version"]
dependencies = [
"tweepy >=4.6, <5",
"pyYAML>=4.2"
]
[project.license]
file = "LICENSE"
[project.urls]
Home = "https://github.com/fitnr/twitter_bot_utils"
[project.scripts]
tbu = "twitter_bot_utils.cli:main"
[project.optional-dependencies]
test = [
"vcrpy==4.1.1",
"mock"
]
doc = [
"sphinx",
"sphinx_rtd_theme"
]
pylint = ["pylint"]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py35, py36, py37, py38, py39, py310, pylint
isolated_build = true
[testenv]
deps = .[test]
passenv =
TWITTER_SCREEN_NAME
TWITTER_CONSUMER_KEY
TWITTER_CONSUMER_SECRET
TWITTER_OAUTH_TOKEN
TWITTER_OAUTH_SECRET
commands = make test
whitelist_externals = make
[testenv:pylint]
deps = .[test,pylint]
commands =
pylint src
pylint -d missing-module-docstring,missing-function-docstring,missing-class-docstring tests
"""
[tool.black]
line-length = 120
target-version = ["py38"]
include = 'py$'
skip-string-normalization = true
[tool.pylint.master]
fail-under = "9.5"
[tool.pylint.basic]
good-names = "f, i, j, k, x, y, z"
[tool.pylint.message_control]
disable = "print-statement"
[tool.pylint.format]
max-line-length = 120
[tool.isort]
line_length = 120