forked from Bleeplo/Tsukasa-credit-card-gag-scam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
155 lines (123 loc) · 3.38 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[build-system]
requires = ['poetry-core>=1.2.0', 'wheel', 'nuitka',]
build-backend = 'poetry.core.masonry.api'
[tool.coverage.run]
branch = true
relative_files = true
omit = [
# 'tests/*',
]
[tool.nuitka] # NOTE: Does not work yet, waiting for support
assume-yes-for-downloads = true
disable-console = true
enable-plugin = ['tk-inter',]
include-data-dir = [
{ source = 'src/tccgs/data', destination = 'data' },
]
onefile = true
output-dir = 'build'
show-scons = true
standalone = true
windows-company-name = "Team DeltaV"
windows-file-description = "A joke program based on a popular credit card scam meme"
windows-product-name = "Totally Not Malware"
[tool.poetry]
name = 'tsukasa-credit-card-gag-scam'
version = '1.0.2'
description = "A joke program based on a popular credit card scam meme"
packages = [
{ include = 'tccgs', from = 'src' }
]
authors = ["Bleeplo <bleeplo@users.noreply.github.com>",]
maintainers = ["Lari Liuhamo <lari.liuhamo+github@gmail.com>",]
include = ['CHANGELOG.md', 'LICENSE',]
license = 'MIT'
readme = 'README.md'
homepage = 'https://github.com/Bleeplo/Tsukasa-credit-card-gag-scam'
repository = 'https://github.com/Diapolo10/iplib3'
documentation = 'https://github.com/Diapolo10/iplib3/tree/main/docs'
[tool.poetry.urls]
"Original Windows executable" = 'https://drive.google.com/file/d/1gVKI089Y7Ub7MrqNmRwsvOGZYS3msnIu/view?usp=sharing'
"Updated executables" = 'https://github.com/Diapolo10/Tsukasa-credit-card-gag-scam/releases'
[tool.poetry.dependencies]
python = '^3.8.1'
Pillow = '>=9.5,<11.0'
[tool.poetry.group.dev.dependencies]
mypy = '^1.2.0'
types-pillow = '>=9.4.0.17,<11.0.0.0'
[tool.poetry.group.linters]
optional = true
[tool.poetry.group.linters.dependencies]
ruff = '>=0.0.261,<0.4.9'
[tool.pytest.ini_options]
minversion = "6.0"
addopts = """
--doctest-modules \
--cov=./ \
--cov-append \
--cov-report html:tests/reports/coverage-html \
--cov-report xml:tests/reports/coverage.xml \
--ignore=docs/
"""
testpaths = [
'tests',
]
[tool.ruff]
select = [
'A', # Builtins
'ANN', # Annotations
'ARG', # Unused arguments
'B', # Bugbear
'BLE', # Blind except
'C4', # Comprehensions
'C90', # mccabe
'COM', # Commas
'DTZ', # Datetimes
'ERA', # Commented-out code
'EXE', # Executable
'G', # Logging format
'I', # Isort
'ICN', # Import conventions
'INP', # Disallow PEP-420 (Implicit namespace packages)
'INT', # gettext
'ISC', # Implicit str concat
'N', # PEP-8 Naming
'NPY', # Numpy
'PGH', # Pygrep hooks
'PIE', # Unnecessary code
'PL', # Pylint
'PT', # Pytest
'PTH', # Use Pathlib
'PYI', # Stub files
'RET', # Return
'RUF', # Ruff
'RSE', # Raise
'S', # Bandit
'SIM', # Code simplification
'SLF', # Private member access
'T20', # Print
'TCH', # Type checking
'TID', # Tidy imports
'UP', # Pyupgrade
'W', # Warnings
'YTT', # sys.version
]
ignore = [
'PLR0913', # Too many arguments
]
ignore-init-module-imports = true
line-length = 120
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.per-file-ignores]
# https://beta.ruff.rs/docs/rules/
'__init__.py' = ['F401','F403','F405',]
'tests/*' = ['ARG', 'S101',]
[tool.ruff.pylint]
max-args = 15
max-branches = 20
max-returns = 10
max-statements = 80
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"