-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
116 lines (93 loc) · 2.26 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
[build-system]
requires = ["setuptools >= 61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[project]
name = "python_onboarding_guide"
version = "1.0.0"
description = "Mini blog / readme about python onboarding steps to get setup"
authors = [{name = "Josh Peak", email = "[email protected]"}]
readme = "README.md"
license = {text = "MIT License"}
requires-python = ">=3.10"
dependencies = [
"boto3",
"python-dotenv",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-xdist",
"pre-commit",
"ruff",
"isort",
"mypy",
"md-toc",
"watchdog",
"testcontainers",
"aiohttp",
"boto3-stubs[boto3]"
]
[project.urls]
homepage = "https://github.com/neozenith/python-onboarding-guide"
repository = "https://github.com/neozenith/python-onboarding-guide"
documentation = "https://github.com/neozenith/python-onboarding-guide"
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E",# pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
"PTH", # falek8-use-pathlib
"TCH", # flake8-type-checking
# "S", # flake8-bandit
"C90", #mccabe
]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 5.
max-complexity = 10
[tool.isort]
profile = "black"
multi_line_output = 3
import_heading_stdlib = "Standard Library"
import_heading_firstparty = "Our Libraries"
import_heading_thirdparty = "Third Party"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-s -vvv --color=yes"
[tool.coverage.run]
omit = ["tests/*", "**/__init__.py", "tasks.py"]
branch = true
[tool.mypy]
pretty = true
show_error_codes = true
show_column_numbers = true
show_error_context = true
exclude = [
'tests/',
'.venv/',
'docs/'
]
follow_imports = 'silent'
ignore_missing_imports = true
# Work your way up to these:
disallow_incomplete_defs = true
# disallow_untyped_defs = true
# disallow_untyped_calls = true
# strict = true