-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
86 lines (76 loc) · 2.03 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
[tool.poetry]
name = "sacredfig"
version = "0.1.1"
description = "An opinionated library for scientific figures in matplotlib."
authors = ["Luc Rocher <luc@rocher.lc>"]
readme = "README.md"
license = "MIT"
keywords = ["matplotlib", "data-visualization", "scientific-figures", "plotting"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Visualization",
]
repository = "https://github.com/cynddl/sacredfig"
include=["sacredfig/sacredfig.mplstyle"]
[tool.poetry.dependencies]
python = ">=3.8,<4.0"
matplotlib = "^3.6"
[tool.poetry.group.dev.dependencies]
pytest = "*"
pytest-cov = "*"
deptry = "*"
mypy = "^1.5"
pre-commit = "^3.4"
tox = "*"
numpy = "^1.24"
pytest-mpl = "^0.17.0"
seaborn = "^0.13"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 99
target-version = "py38"
src = ["sacredfig", "tests"]
[tool.ruff.lint]
unfixable = [
"ERA", # do not autoremove commented out code
]
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep
"RUF", # ruff checks
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
force-single-line = true
lines-between-types = 1
lines-after-imports = 2
known-first-party = ["sacredfig"]
[tool.mypy]
ignore_missing_imports = true
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
strict = true