-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathcheck.bat
More file actions
35 lines (28 loc) · 718 Bytes
/
Copy pathcheck.bat
File metadata and controls
35 lines (28 loc) · 718 Bytes
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
@echo off
rem Publish Markdown files to Confluence wiki.
rem
rem Copyright 2022-2026, Levente Hunyadi
rem https://github.com/hunyadi/md2conf
setlocal
set PYTHON=python
rem Run static type checker and verify formatting guidelines
%PYTHON% -m ruff check
if errorlevel 1 goto error
%PYTHON% -m ruff format --check
if errorlevel 1 goto error
%PYTHON% -m mypy md2conf
if errorlevel 1 goto error
%PYTHON% -m mypy tests
if errorlevel 1 goto error
%PYTHON% -m mypy integration_tests
if errorlevel 1 goto error
rem Test help message
%PYTHON% -m md2conf --help > NUL
if errorlevel 1 goto error
rem Generate documentation
%PYTHON% util\documentation.py
if errorlevel 1 goto error
goto EOF
:error
exit /b %errorlevel%
:EOF