-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
76 lines (69 loc) · 2.25 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
[project]
name = "scratchpad"
version = "0.0.0" # explicity non-versioned
description = "A scratchpad for keeping assorted notes and snippets"
authors = [
{ name = "Bradley Reynolds", email = "[email protected]" },
]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"pytz",
"darbiadev-utilities",
"toml",
"pandas",
"parse",
"einspect",
]
[project.urls]
repository = "https://github.com/shenanigansd/scratchpad"
[project.optional-dependencies]
dev = [
"pre-commit",
"ruff",
"mypy",
]
tests = [
"pytest",
"pytest-randomly",
"hypothesis",
]
docs = [
"sphinx",
"sphinxcontrib-autoprogram",
"sphinx-rtd-theme",
"toml",
]
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = []
[tool.ruff]
preview = true
unsafe-fixes = true
target-version = "py312"
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
exclude = ["events", "scratch/discarded"]
ignore = [
"CPY001", # (Missing copyright notice at top of file) - No license
"ERA001", # (Found commented-out code) - This is a scratchpad, so...
"S101", # (Use of `assert` detected) - Testing code as I go
"T201", # (`print` found) - Want to be able to see the output
"INP001", # (File `*` is part of an implicit namespace package. Add an `__init__.py`.) - Not strongly structured
"D100", # (Missing docstring in public module) - Not really doc-ing here
"D101", # (Missing docstring in public class) - Not really doc-ing here
"D102", # (Missing docstring in public method) - Not really doc-ing here
"D103", # (Missing docstring in public function) - Not really doc-ing here
"D104", # (Missing docstring in public package) - Not really doc-ing here
"D105", # (Missing docstring in magic method) - Not really doc-ing here
"S311", # (Standard pseudo-random generators are not suitable for security/cryptographic purposes) - Not doing crypto here
"PLR2004", # (Magic value used in comparison) - Lots of single use numbers in AoC
"PLC2701", # (Private name import `x` from external module `x`) - Testing internal methods in AoC
"C901", # (Function is too complex) - I completely agree, but it's AoC
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"