Skip to content

Commit 3123895

Browse files
committed
feat: extend python sibling rules
1 parent 5cc6510 commit 3123895

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

init.org

+2
Original file line numberDiff line numberDiff line change
@@ -3465,6 +3465,8 @@ Pretty check-boxes
34653465
:init
34663466
(cl-pushnew '("\\([^/]+\\)\\.py\\'" "\\1_test.py") find-sibling-rules :test #'equal)
34673467
(cl-pushnew '("\\([^/]+\\)_test\\.py\\'" "\\1.py") find-sibling-rules :test #'equal)
3468+
(cl-pushnew '("src/\\(\\(?:[s][r][^c]\\|[^s][^r][^c]\\|$\\)./\\)+\\([^/]+\\)\\.py\\'" "tests/\\1test_\\2.py") find-sibling-rules :test #'equal)
3469+
(cl-pushnew '("tests/\\(.+/\\)test_\\([^/]+\\)\\.py\\'" "src/\\1\\2.py") find-sibling-rules :test #'equal)
34683470
:config
34693471
(put 'python-shell-interpreter 'safe-local-variable #'(lambda (x) (member x '("python" "ipython")))))
34703472

0 commit comments

Comments
 (0)