@@ -236,132 +236,5 @@ reportUnusedFunction = false
236236reportUnusedCallResult = false
237237reportUnusedParameter = false
238238
239- [tool .importlinter ]
240- root_packages = [ " usethis" ]
241-
242- [[tool .importlinter .contracts ]]
243- name = " usethis"
244- type = " layers"
245- layers = [
246- " _test | __main__" ,
247- " _ui" ,
248- # Tool implementations
249- " _toolset" ,
250- " _core" ,
251- " _tool" ,
252- # Specific config file and backend implementations
253- " _init" ,
254- " _deps" ,
255- " _config_file" ,
256- " _integrations" ,
257- " _io | _subprocess | _console" ,
258- # Global state and constants
259- " _config" ,
260- " _types | errors" ,
261- # Completely independent helper modules
262- " _pipeweld" ,
263- ]
264- containers = [ " usethis" ]
265- exhaustive = true
266- exhaustive_ignores = [ " _version" ]
267-
268- [[tool .importlinter .contracts ]]
269- name = " usethis._ui"
270- type = " layers"
271- layers = [
272- " app" ,
273- " interface" ,
274- " options" ,
275- ]
276- containers = [ " usethis._ui" ]
277- exhaustive = true
278-
279- [[tool .importlinter .contracts ]]
280- name = " usethis._core"
281- type = " layers"
282- layers = [
283- # docstyle uses (Ruff) tool, badge uses readme
284- " badge | docstyle | list | rule" ,
285- " author | browse | ci | readme | show | status | tool" ,
286- ]
287- containers = [ " usethis._core" ]
288- exhaustive = true
289-
290- [[tool .importlinter .contracts ]]
291- name = " usethis._tool"
292- type = " layers"
293- layers = [
294- " all_" ,
295- " impl" ,
296- " base" ,
297- " config | pre_commit | rule" ,
298- ]
299- containers = [ " usethis._tool" ]
300- exhaustive = true
301-
302- [[tool .importlinter .contracts ]]
303- name = " usethis._tool.impl"
304- type = " layers"
305- layers = [
306- " pyproject_toml" ,
307- " codespell | deptry | import_linter | pyproject_fmt | requirements_txt" ,
308- " ruff" ,
309- " pytest : coverage_py" ,
310- " pre_commit | mkdocs" ,
311- ]
312- containers = [ " usethis._tool.impl" ]
313- exhaustive = true
314-
315- [[tool .importlinter .contracts ]]
316- name = " usethis._integrations"
317- type = " layers"
318- layers = [
319- " ci | pre_commit" ,
320- " environ" ,
321- " backend | mkdocs | pytest | pydantic | sonarqube" ,
322- " project" ,
323- " file" ,
324- " python" ,
325- ]
326- containers = [ " usethis._integrations" ]
327- exhaustive = true
328-
329- [[tool .importlinter .contracts ]]
330- name = " usethis._integrations.file"
331- type = " layers"
332- layers = [
333- " pyproject_toml | setup_cfg" ,
334- " ini | toml | yaml" ,
335- " dir" ,
336- ]
337- containers = [ " usethis._integrations.file" ]
338- exhaustive = true
339-
340- [[tool .importlinter .contracts ]]
341- name = " usethis._ui.interface"
342- type = " layers"
343- layers = [
344- # Note; if you're adding an interface, make sure it's in the README too.
345- " author | badge | browse | ci | doc | docstyle | format_ | init | lint | list | readme | rule | show | spellcheck | status | test | tool | version" ,
346- ]
347- containers = [ " usethis._ui.interface" ]
348- exhaustive = true
349-
350- [[tool .importlinter .contracts ]]
351- name = " usethis._pipeweld"
352- type = " layers"
353- layers = [ " func" , " result" , " containers | ops" ]
354- containers = [ " usethis._pipeweld" ]
355- exhaustive = true
356-
357- [[tool .importlinter .contracts ]]
358- name = " usethis._integrations.ci"
359- type = " layers"
360- layers = [
361- " bitbucket | github" ,
362- ]
363- containers = [ " usethis._integrations.ci" ]
364- exhaustive = true
365-
366239[tool .sync-with-uv .repo-to-package ]
367240"https://github.com/astral-sh/uv-pre-commit" = " uv"
0 commit comments