-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (77 loc) · 1.94 KB
/
Copy pathpyproject.toml
File metadata and controls
88 lines (77 loc) · 1.94 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
[tool.towncrier]
directory = "changes"
package = "ckan"
filename = "CHANGELOG.rst"
title_format = "v.{version} {project_date}"
issue_format = "`#{issue} <https://github.com/ckan/ckan/pull/{issue}>`_"
wrap = true
[[tool.towncrier.type]]
directory = 'migration'
name = 'Migration notes'
showcontent = true
[[tool.towncrier.type]]
directory = 'feature'
name = 'Major features'
showcontent = true
[[tool.towncrier.type]]
directory = 'misc'
name = 'Minor changes'
showcontent = true
[[tool.towncrier.type]]
directory = 'bugfix'
name = 'Bugfixes'
showcontent = true
[[tool.towncrier.type]]
directory = 'removal'
name = 'Removals and deprecations'
showcontent = true
[tool.isort]
sections = ['FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER']
no_lines_before = ['LOCALFOLDER']
multi_line_output = 3
line_length = 79
known_first_party = ['ckan', 'ckanext']
known_third_party = ["cryptography", "flask", "jwt", "lxml", "mock", "requests", "setuptools", "urllib3"]
include_trailing_comma = true
skip = ['.venv']
[tool.black]
line_length = 120
target_version = ['py310']
language_version = 'python3.10'
include = '\.pyi?$'
exclude = ''' # # these folders wont be formatted by black
(
/(
\.git # root of the project
| \.__pycache__
| \.mypy_cache
| \.pytest_cache
| \.tox
| \.venv
| venv
| ckan
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[tool.autopep8]
max_line_length = 120
ignore = "E501,W6"
[tool.ruff]
line-length = 120
target-version = "py310"
extend-exclude = [
"**/migrations/*",
"static",
]
[tool.ruff.lint]
# E and F are the standard Flake8 rules
select = ["E", "F", "W", "I"]
ignore = ["E203", "E731"]
[tool.ruff.lint.isort]
# This tells Ruff that 'ckanext.' is your local package
known-first-party = ["ckanext.azure_auth"]
# This makes it behave like modern Black-compatible isort
combine-as-imports = true
lines-after-imports = 2