-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathpyproject.toml
More file actions
49 lines (46 loc) · 1.71 KB
/
Copy pathpyproject.toml
File metadata and controls
49 lines (46 loc) · 1.71 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
# Copyright (c) 2026 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
# not expressly granted therein are reserved by Shotgun Software Inc.
[tool.ruff]
exclude = [
".tox",
".git",
".cache",
".eggs",
"__pycache__",
# Third party modules bundled with tk-core.
"python/tank_vendor",
# Otherwise you'll have a lot of 'xxx' imported but unused.
"python/tank/__init__.py",
"python/tank/*/__init__.py",
# Skip the auto-generated ui files.
"python/tank/authentication/ui/login_dialog.py",
"python/tank/authentication/ui/resources_rc.py",
"python/tank/platform/qt/ui_busy_dialog.py",
"python/tank/platform/qt/ui_item.py",
"python/tank/platform/qt/ui_tank_dialog.py",
"python/tank/authentication/sso_saml2",
"tests/python",
]
[tool.ruff.lint]
# pycodestyle, pyflakes, and isort (replaces the former isort + flake8 hooks).
select = ["E", "F", "W", "I"]
# toolkit exceptions
#
# E203 whitespace before ':' (this is not PEP8 compliant)
# E221 multiple spaces before operator
# E261 two whitespaces before end of line comment.
# E402 module level import not top of file
# E501 line too long (112 > 79 characters)
# N802/N806 are Qt naming convention exceptions (hound only; not enabled here).
ignore = ["E203", "E221", "E261", "E402", "E501"]
[tool.ruff.lint.isort]
# Match the previous isort --profile black configuration.
combine-as-imports = true
split-on-trailing-comma = true