-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
94 lines (77 loc) · 2.46 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
[build-system]
requires = [
"setuptools >= 63.0.0", # required by pyproject+setuptools_scm integration
]
build-backend = "setuptools.build_meta"
[project]
name = "home_journal"
dynamic = ["dependencies"]
description = "A simple journal for use at home by the family"
authors = [{ 'name' = 'Bradley A. Thornton' }]
license = { text = "MIT" }
requires-python = ">=3.11"
readme = "README.md"
version = "0.0.8"
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: Flask",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
[project.scripts]
home-journal = "home_journal.cli:main"
[project.urls]
Homepage = "https://github.com/cidrblock/home_journal"
[tool]
[tool.black]
line-length = 100
[tool.isort]
force_single_line = true # Force from .. import to be 1 per line, minimizing changes at time of implementation
lines_after_imports = 2 # Ensures consistency for cases when there's variable vs function/class definitions after imports
lines_between_types = 1 # Separate import/from with 1 line, minimizing changes at time of implementation
no_lines_before = "LOCALFOLDER" # Keeps local imports bundled with first-party
profile = "black" # Avoid conflict with black
[tool.mypy]
python_version = 3.11
strict = true
color_output = true
error_summary = true
# disallow_untyped_calls = true
# disallow_untyped_defs = true
# disallow_any_generics = true
# disallow_any_unimported = True
# warn_redundant_casts = True
# warn_return_any = True
# warn_unused_configs = True
[tool.pylint]
[tool.pylint.format]
max-line-length = 100
[tool.pylint.imports]
preferred-modules = [
# NOTE: The unittest replacements below help keep
# NOTE: the tests pytest ecosystem-oriented.
"unittest:pytest",
"unittest.mock:pytest-mock",
]
[tool.pylint.master]
# pylint defaults + fh for with open .. as (f|fh)
good-names = "i,j,k,ex,Run,_,f,fh"
jobs = 0
[tool.pylint.messages_control]
disable = []
enable = [
"useless-suppression", # Identify unneeded pylint disable statements
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
dependencies = { file = [".config/requirements.in"] }
[tool.setuptools.packages.find]
where = ["src"]