-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
119 lines (106 loc) · 3.03 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
110
111
112
113
114
115
116
117
118
119
[tool.poetry]
name = "pythonseer"
version = "v0.3.4"
description = "A python library for interacting with the Fediseer API"
authors = ["db0 <[email protected]>"]
readme = "README.md"
homepage="https://github.com/db0/pythonseer"
license = "GPL-3.0-or-later"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
"Development Status :: 2 - Pre-Alpha",
]
[tool.poetry.dependencies]
python = "^3.10"
requests = "^2.31.0"
[tool.poetry.group.test.dependencies]
setuptools = "*"
pytest = "*"
pytest-cov = "*"
pytest-pycharm = "*"
python-dotenv = "*"
vulture = "*"
typing_extensions ="*"
pylint = "*"
whispers = "*"
Flake8-pyproject="*"
tartufo="*"
ruff = "*"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
minversion = "7.0"
pythonpath = ["."]
log_cli = true
log_cli_level = "DEBUG"
log_cli_format = "[%(asctime)s] [%(levelname)8s] --- %(message)s (%(filename)s:%(funcName)s():%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
addopts = [
"--import-mode=prepend",
"--ignore=nodes"
]
filterwarnings = [
"ignore:::.*",
"default:::pythonseer.*"
]
testpaths = [
"tests"
]
[tool.ruff] # XXX this isn't part of CI yet
line-length=119
exclude=["build"]
ignore=[
"F401", # imported but unused
"E402", # Module level import not at top of file
"A002", # Argument `x` is shadowing a python builtin
"A001", # Variable `x` is shadowing a python builtin
"INP001", # ... is part of an implicit namespace package. Add an `__init__.py`.
]
select = [
"A", # flake8-builtins
"I", # isort
"S", # Bandit
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"YTT", # flake8-2020
# "BLE", # flake8-blind-except
# "B", # flake8-bugbear
"COM", # flake8-commas
"C4", # flake8-comprehensions
# "G", # flake8-logging-format
"INP", # flake8-no-pep420
"PIE", # flake8-pie
# "T20", # flake8-print
# "UP", # pyupgrade
"RSE", # flake8-raise
# "RET", # flake8-return
# "SLF", # flake8-self
# "SIM", # flake8-simplify
# "ARG", # flake8-unused-arguments
# "TRY", # tryceratops
"RUF100"
]
[tool.tartufo]
repo-path = "."
regex = true
entropy = true
exclude-path-patterns = [
{path-pattern = 'poetry\.lock'},
{path-pattern = 'pyproject\.toml'},
# To not have to escape `\` in regexes, use single quoted
# TOML 'literal strings'
{path-pattern = 'docs/source/(.*)\.rst'},
{path-pattern = 'fedi_gatus/config_gen/base.template.yaml'},
]
exclude-entropy-patterns = [
{path-pattern = '\.github/workflows/.*\.yml', pattern = 'uses: .*@[a-zA-Z0-9]{40}', reason = 'GitHub Actions'},
{path-pattern = 'poetry\.lock', pattern = '.'},
{path-pattern = 'Pipfile\.lock', pattern = '.'},
{path-pattern = 'README\.md', pattern = '.'},
{path-pattern = 'CHANGELOG\.md', pattern = '.'},
{path-pattern = 'mapping\.cfg', pattern = '.'}, # Git secret
]