##// END OF EJS Templates
core(project): updated pyproject structure for formatting/linting
super-admin -
r5642:83572a1b default
parent child Browse files
Show More
@@ -1,131 +1,137
1 1 [build-system]
2 2 requires = ["setuptools>=61.0.0", "wheel", "pastescript"]
3 3 build-backend = "setuptools.build_meta"
4 4
5 5 [project]
6 6 name = "rhodecode-enterprise-ce"
7 7 description = "Enterprise Source Code Management Platform"
8 8 authors = [
9 9 {name = "RhodeCode GmbH", email = "support@rhodecode.com"},
10 10 ]
11 11 keywords = [
12 12 'rhodecode', 'mercurial', 'git', 'svn',
13 13 'code review',
14 14 'repo groups', 'ldap', 'repository management', 'hgweb',
15 15 'hgwebdir', 'gitweb', 'serving hgweb',
16 16 ]
17 17 license = {text = "GPL V3"}
18 18 requires-python = ">=3.10"
19 19 dynamic = ["version", "readme", "dependencies", "optional-dependencies"]
20 20 classifiers = [
21 21 'Development Status :: 6 - Mature',
22 22 'Intended Audience :: Developers',
23 23 'Operating System :: OS Independent',
24 24 'Topic :: Software Development :: Version Control',
25 25 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
26 'Programming Language :: Python :: 3.10',
26 'Programming Language :: Python :: 3.11',
27 27 ]
28 28
29 29 [project.entry-points."paste.app_factory"]
30 30 main = "rhodecode.config.middleware:make_pyramid_app"
31 31
32 32 [project.entry-points."pyramid.pshell_runner"]
33 33 ipython = "rhodecode.lib.pyramid_shell:ipython_shell_runner"
34 34
35 35 [project.entry-points."beaker.backends"]
36 36 memorylru_base="rhodecode.lib.memory_lru_dict:MemoryLRUNamespaceManagerBase"
37 37 memorylru_debug="rhodecode.lib.memory_lru_dict:MemoryLRUNamespaceManagerDebug"
38 38
39 39 [project.scripts]
40 40
41 41 rc-setup-app = "rhodecode.lib.rc_commands.setup_rc:main"
42 42 rc-upgrade-db = "rhodecode.lib.rc_commands.upgrade_db:main"
43 43 rc-ishell = "rhodecode.lib.rc_commands.ishell:main"
44 44 rc-add-artifact = "rhodecode.lib.rc_commands.add_artifact:main"
45 45 rc-migrate-artifact = "rhodecode.lib.rc_commands.migrate_artifact:main"
46 46 rc-ssh-wrapper = "rhodecode.apps.ssh_support.lib.ssh_wrapper_v1:main"
47 47 rc-ssh-wrapper-v2 = "rhodecode.apps.ssh_support.lib.ssh_wrapper_v2:main"
48 48
49 49 [tool.setuptools]
50 50 packages = ["rhodecode"]
51 51 include-package-data = true
52 52
53 53 [tools.setuptools.package-data]
54 54 "" = ['*.txt', '*.rst']
55 55 "configs" = ['*.ini']
56 56 "rhodecode" = ['VERSION', 'i18n/*/LC_MESSAGES/*.mo', ]
57 57
58 58 [tool.setuptools.exclude-package-data]
59 59 "rhodecode" = ["__pycache__"]
60 60
61 61 [tool.setuptools.dynamic]
62 62 readme = {file = ["README.rst"], content-type = "text/rst"}
63 63 version = {file = "rhodecode/VERSION"}
64 64 dependencies = {file = ["requirements.txt"]}
65 65 optional-dependencies.tests = {file = ["requirements_test.txt"]}
66 66
67 67 [tool.ruff]
68 lint.select = [
68 # Line length max same as Black.
69 line-length = 120
70
71 # Assume Python 3.11
72 target-version = "py311"
73
74
75 [tool.ruff.lint]
76 select = [
69 77 # Pyflakes
70 78 "F",
71 79 # Pycodestyle
72 80 "E",
73 81 "W",
74 82 # isort
75 83 "I001"
76 84 ]
77 lint.ignore = [
85
86 ignore = [
78 87 "E501", # line too long, handled by black
79 88 ]
80 # Same as Black.
81 line-length = 120
82 89
83 90 [tool.ruff.lint.isort]
84 91 known-first-party = ["rhodecode"]
85 92
86 93 [tool.ruff.format]
87
88 94 # Like Black, use double quotes for strings.
89 95 quote-style = "double"
90 96
91 97 # Like Black, indent with spaces, rather than tabs.
92 98 indent-style = "space"
93 99
94 100 # Like Black, respect magic trailing commas.
95 101 skip-magic-trailing-comma = false
96 102
97 103 # Like Black, automatically detect the appropriate line ending.
98 104 line-ending = "auto"
99 105
100 106
101 107 [tool.bumpversion]
102 108 current_version = "5.4.0"
103 109 parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
104 110 serialize = ["{major}.{minor}.{patch}"]
105 111 search = "{current_version}"
106 112 replace = "{new_version}"
107 113 regex = false
108 114 ignore_missing_version = false
109 115 ignore_missing_files = false
110 116 tag = false
111 117 sign_tags = false
112 118 tag_name = "v{new_version}"
113 119 tag_message = "release(version-bump): {current_version} → {new_version}"
114 120 allow_dirty = false
115 121 commit = false
116 122 message = "release(version-bump): {current_version} → {new_version}"
117 123 commit_args = ""
118 124 setup_hooks = []
119 125 pre_commit_hooks = []
120 126 post_commit_hooks = []
121 127
122 128
123 129 # message_extractors={
124 130 # 'rhodecode': [
125 131 # ('**.py', 'python', None),
126 132 # ('**.js', 'javascript', None),
127 133 # ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
128 134 # ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}),
129 135 # ('public/**', 'ignore', None),
130 136 # ]
131 137 # },
General Comments 0
You need to be logged in to leave comments. Login now