-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (65 loc) · 2.08 KB
/
pyproject.toml
File metadata and controls
74 lines (65 loc) · 2.08 KB
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
# When deploying to new project:
# 1. Ctrl+F replace "PyTemplate" with module name
# 2. Update description
# 3. Add any necessary dependencies / dev-dependencies as you install them
# 4. Verify version of python matches installed python. Currently set to Python 3.9
# 5. Update author info
# 6. Update project URLs
[build-system]
requires = ['setuptools', 'wheel']
build-backend = 'setuptools.build_meta'
[project]
name = 'PythonTemplate'
version = '2025.1' # Versions are [Year].[Release of Year]
description = 'Python template file for faster setup and builds'
requires-python = '>=3.9'
license = {file = "LICENSE.txt"}
keywords = ['Python']
authors = [
{email = 'kylekaptbone@yahoo.com'},
{name = 'Kyle Patterson'}
]
classifiers = ['Programming Language :: Python :: 3.9']
dynamic = ['readme']
dependencies = ['ruff']
[tool.setuptools.dynamic]
readme = {file = ['README.md']}
[project.optional-dependencies]
dev = [
'pytest>=8.2.2',
'pyupgrade>=3.16.0',
'pre-commit>=3.7.1',
]
[project.urls]
homepage = 'https://github.com/kylekap/PythonTemplate'
documentation = 'https://github.com/kylekap/PythonTemplate/tree/main/docs'
repository = 'https://github.com/kylekap/PythonTemplate'
changelog = 'https://github.com/kylekap/PythonTemplate/tree/main/Docs/Changelog.md'
issue = 'https://github.com/kylekap/PythonTemplate/issues'
[tool.ruff]
line-length = 120
[tool.ruff.format]
quote-style = "double" # Like Black, use double quotes for strings.
indent-style = "space" # Like Black, indent with spaces, rather than tabs.
[tool.ruff.lint]
select = ["ALL"]
fixable = ["ALL"]
ignore = [
"ANN", # flake8-annotations
"ARG002", # Sometimes, you want functions to match
"BLE001",
"COM812", # trailing commas, redundant with formatter
"D100", # ignore missing docs
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D203", # D211 preferred
"D213", # D212 preferred
"E501", # Avoid enforcing line-length violations (`E501`)
"S101", # Assert is only used in the testing modules
"T201", # I'm gunna print sometimes, you gotta live with it
]