-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (83 loc) · 2.85 KB
/
Copy pathpyproject.toml
File metadata and controls
94 lines (83 loc) · 2.85 KB
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 >= 50.3.1"]
build-backend = "setuptools.build_meta"
[project]
name = "onecscripting"
version = "1.0.1"
dependencies = [
"pywin32; platform_system == 'Windows'",
]
requires-python = ">=3.8"
authors = [
{name = "Vladislav Anisimov", email = "pan.vlados.w@gmail.com"}
]
maintainers = [
{name = "Vladislav Anisimov", email = "pan.vlados.w@gmail.com"}
]
description = "Purpose of this package is to simplify interaction with 1C databases through COMobjects using Python language."
readme = "README.md"
license = {file = "LICENSE"}
keywords = ["onec", "1C", "1c-enterprise", "scripting", "script", "automation", "COMObject"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
]
[project.urls]
repository = "https://github.com/pan-vlados/onecscripting"
[project.optional-dependencies]
dev = [
"ruff",
"mypy",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
respect-gitignore = true
fix = false
unsafe-fixes = false
output-format = "full"
line-length = 100
indent-width = 4
cache-dir = "/tmp/ruff-cache"
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 100
quote-style = "single"
indent-style = "space"
[tool.ruff.lint]
select = ["ALL"]
ignore = ["D1", "D203", "D213", "FA102", "TRY003", "EM",
"TD002", # Missing author in TODO
"TD003", # Missing issue link on the line following this TODO
"PGH003", # Use specific rule codes when ignoring type issues
"FIX002", # Line contains TODO, consider resolving the issue
"UP031", # Use format specifiers instead of percent format like %s
"G002", # Logging statement uses `%`
"RUF003", # Checks for ambiguous Unicode characters in comments.
"COM812", # Checks for the absence of trailing commas. Here due to conflicts with the formatter.
"ISC001", # Checks for implicitly concatenated strings on a single line. Here due to conflicts with the formatter.
"RUF001", # string cintains non ascii cyrillic letter
"D205", # 1 blank line required between summary line and description
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `default`
# "E501", # Line too long
"ERA001", # Found commented-out code
"FA100", # Add `from __future__ import annotations` to simplify typing
]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
[tool.ruff.lint.isort]
lines-after-imports = 2
no-lines-before = ["future", "standard-library"] # local-folder
known-third-party = []
known-local-folder = ["whole_app"]
[tool.ruff.lint.extend-per-file-ignores]
"__init__.py" = ["E402"] # Ignore `E402` (import violations) in all `__init__.py` files
"tests/*.py" = ["ANN401", "S101", "S311", "E402"]
[tool.mypy]
files = 'src/*'
exclude = ["tests/*", "venv"]
ignore_missing_imports = true
disallow_untyped_defs = true
disallow_incomplete_defs = true