-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
79 lines (67 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
77
78
79
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "pycs"
maintainers = [{ name = "Artem Vasenin", email = "[email protected]" }]
authors = [{ name = "Anton Vasilev" }, { name = "Artem Vasenin" }, { name = "Vladimir Mikhaylov" }]
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.9"
dynamic = ["description", "version"]
dependencies = ["isort", "pyyaml"]
[project.scripts]
cfg-output-dir = "pycs.helpers:_get_output_dir_cli"
[project.urls]
Home = "https://github.com/Rizhiy/pycs"
[project.optional-dependencies]
aws = ["boto3"]
test = ["pycs[aws]", "pytest", "pytest-cov", "types-pyyaml"]
dev = ["black", "isort", "pre-commit", "pycs[test]", "ruff"]
[tool.flit.sdist]
include = ["README.md"]
exclude = [".github", ".gitignore", "tests/*"]
[tool.semantic_release]
version_variables = ["pycs/__init__.py:__version__"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--doctest-modules"
[tool.black]
line-length = 120
# skip-magic-trailing-comma = true
[tool.isort]
profile = "black"
line_length = 120
[tool.yamlfix]
line_length = 120
section_whitelines = 1
[tool.pyright]
strictParameterNoneValue = false
typeCheckingMode = "basic"
[tool.ruff]
target-version = "py39"
line-length = 120
[tool.ruff.lint]
preview = true
select = ["A", "ARG", "B", "BLE", "C4", "COM", "E", "ERA", "F", "FBT", "FIX", "FLY", "FURB", "I", "IC", "INP", "ISC", "LOG", "N", "NPY", "PERF", "PIE", "PT", "PTH", "Q", "R", "RET", "RSE", "S", "SIM", "SLF", "T20", "TCH", "TD", "TID", "TRY", "UP", "W"]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
ignore = ["A003", "E203", "FIX002", "FURB113", "N817", "PTH123", "RET502", "RET503", "S113", "TD002", "TD003", "TRY003", "UP007", "UP035"]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = [
"F401", # Allow unused imports in module files
]
"tests/**/*.py" = [
"E501", # Test strings can be long
"S101", # Asserts in tests are fine
"T201", # Prints are useful for debugging
"TCH001",
"TCH002",
"TCH003", # Tests don't need to be super performant, prefer simpler code
]
"tests/pickle.py" = [
"S301", # Testing pickle so have to use it
]
"tests/data/**/*.py" = [
"TID252", # Have to use relative imports in configs
]