-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
78 lines (69 loc) · 2.08 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
# https://hynek.me/til/pip-tools-and-pyproject-toml/\
# https://setuptools.pypa.io/en/latest/userguide/declarative_config.html#declarative-config
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "backup"
version = "2.2.0"
authors = [
{name = "Mortolian", email = "hello@mortolio.com"},
]
maintainers = [
{name = "Mortolian", email = "hello@mortolio.com"},
]
description = "Small RSYNC backup automation tool for CLI."
readme = "README.md"
requires-python = ">=3.8"
keywords = ["rsync", "backup", "sync", "ssh"]
license = {text = "BSD-3-Clause"}
classifiers = [
"Programming Language :: Python :: 3",
]
dependencies = [
"flake8>=6.0.0",
"pip-tools>=6.12.1",
"termcolor>=2.2.0",
"pytest>=7.2.1",
"pytest-cov>=4.0.0",
"pytest-mock>=3.10.0",
"pyyaml>=6.0",
"build>=0.10.0",
]
[project.urls]
Home = "https://github.com/mortolian/rsync-remote-backup"
[project.optional-dependencies]
test = []
[tool.setuptools.packages.find]
where = ["backup", "tests"] # list of folders that contain the packages (["."] by default)
include = ["*"] # package names should match these glob patterns (["*"] by default)
exclude = [] # exclude packages matching these glob patterns (empty by default)
namespaces = true # to disable scanning PEP 420 namespaces (true by default)
[project.scripts]
my-script = "my_package.module:function"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests"
]
[tool.flake8]
count = true
max-line-length = 88
ignore = [
# E501 line too long (80 > 79 characters)
"E501",
# I001 isort found an import in the wrong position
"I001",
# I003 isort expected 1 blank line in imports, found 0
"I003",
# I005 isort found an unexpected missing import
"I005",
# DUO102 insecure use of "random" module, prefer "random.SystemRandom"
"DUO102",
# Unecessary variable assignement before return statement.
"R504",
# isort found an unexpected blank line in imports
"I004",
]