.pre-commit-config.yaml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. default_language_version:
  2. python: python3
  3. exclude: ^(doc/_static/.*|doc/_themes/.*)$
  4. repos:
  5. - repo: https://github.com/s0undt3ch/salt-rewrite
  6. rev: 0.6.0
  7. hooks:
  8. - id: salt-rewrite
  9. args:
  10. - --exclude-fix=fix_asserts
  11. exclude: ^templates/.*$
  12. - repo: https://github.com/saltstack/pip-tools-compile-impersonate
  13. rev: master
  14. hooks:
  15. - id: pip-tools-compile
  16. alias: compile-linux-py3.5-zmq-requirements
  17. name: Linux Py3.5 ZeroMQ Requirements
  18. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  19. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  20. args:
  21. - -v
  22. - --py-version=3.5
  23. - --platform=linux
  24. - --include=requirements/base.txt
  25. - --include=requirements/zeromq.txt
  26. - --include=requirements/pytest.txt
  27. - id: pip-tools-compile
  28. alias: compile-darwin-py3.5-zmq-requirements
  29. name: Darwin Py3.5 ZeroMQ Requirements
  30. files: ^(pkg/osx/(req|req_ext|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  31. args:
  32. - -v
  33. - --py-version=3.5
  34. - --platform=darwin
  35. - --include=pkg/osx/req.txt
  36. - --include=pkg/osx/req_ext.txt
  37. - --include=pkg/osx/req_pyobjc.txt
  38. - --include=requirements/base.txt
  39. - --include=requirements/zeromq.txt
  40. - --include=requirements/pytest.txt
  41. - --passthrough-line-from-input=^pyobjc(.*)$
  42. - id: pip-tools-compile
  43. alias: compile-windows-py3.5-zmq-requirements
  44. name: Windows Py3.5 ZeroMQ Requirements
  45. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  46. args:
  47. - -v
  48. - --py-version=3.5
  49. - --platform=windows
  50. - --include=pkg/windows/req.txt
  51. - --include=pkg/windows/req_win.txt
  52. - --include=requirements/base.txt
  53. - --include=requirements/zeromq.txt
  54. - --include=requirements/pytest.txt
  55. - id: pip-tools-compile
  56. alias: compile-cloud-py3.5-requirements
  57. name: Cloud Py3.5 Requirements
  58. files: ^requirements/(static/cloud\.in)$
  59. args:
  60. - -v
  61. - --py-version=3.5
  62. - id: pip-tools-compile
  63. alias: compile-doc-requirements
  64. name: Docs Py3.5 Requirements
  65. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  66. args:
  67. - -v
  68. - --py-version=3.5
  69. - --platform=linux
  70. - id: pip-tools-compile
  71. alias: compile-linux-crypto-py3.5-requirements
  72. name: Linux Py3.5 Crypto Requirements
  73. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  74. args:
  75. - -v
  76. - --py-version=3.5
  77. - --platform=linux
  78. - --out-prefix=linux
  79. - id: pip-tools-compile
  80. alias: compile-darwin-crypto-py3.5-requirements
  81. name: Darwin Py3.5 Crypto Requirements
  82. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  83. args:
  84. - -v
  85. - --py-version=3.5
  86. - --platform=darwin
  87. - --out-prefix=darwin
  88. - id: pip-tools-compile
  89. alias: compile-windows-crypto-py3.5-requirements
  90. name: Windows Py3.5 Crypto Requirements
  91. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  92. args:
  93. - -v
  94. - --py-version=3.5
  95. - --platform=windows
  96. - --out-prefix=windows
  97. - id: pip-tools-compile
  98. alias: compile-lint-py3.5-requirements
  99. name: Lint Py3.5 Requirements
  100. files: ^requirements/static/lint\.in$
  101. args:
  102. - -v
  103. - --py-version=3.5
  104. - --platform=linux
  105. - id: pip-tools-compile
  106. alias: compile-linux-py3.6-zmq-requirements
  107. name: Linux Py3.6 ZeroMQ Requirements
  108. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  109. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  110. args:
  111. - -v
  112. - --py-version=3.6
  113. - --platform=linux
  114. - --include=requirements/base.txt
  115. - --include=requirements/zeromq.txt
  116. - --include=requirements/pytest.txt
  117. - id: pip-tools-compile
  118. alias: compile-darwin-py3.6-zmq-requirements
  119. name: Darwin Py3.6 ZeroMQ Requirements
  120. files: ^(pkg/osx/(req|req_ext|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  121. args:
  122. - -v
  123. - --py-version=3.6
  124. - --platform=darwin
  125. - --include=pkg/osx/req.txt
  126. - --include=pkg/osx/req_ext.txt
  127. - --include=pkg/osx/req_pyobjc.txt
  128. - --include=requirements/base.txt
  129. - --include=requirements/zeromq.txt
  130. - --include=requirements/pytest.txt
  131. - --passthrough-line-from-input=^pyobjc(.*)$
  132. - id: pip-tools-compile
  133. alias: compile-windows-py3.6-zmq-requirements
  134. name: Windows Py3.6 ZeroMQ Requirements
  135. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  136. args:
  137. - -v
  138. - --py-version=3.6
  139. - --platform=windows
  140. - --include=pkg/windows/req.txt
  141. - --include=pkg/windows/req_win.txt
  142. - --include=requirements/base.txt
  143. - --include=requirements/zeromq.txt
  144. - --include=requirements/pytest.txt
  145. - id: pip-tools-compile
  146. alias: compile-cloud-py3.6-requirements
  147. name: Cloud Py3.6 Requirements
  148. files: ^requirements/(static/cloud\.in)$
  149. args:
  150. - -v
  151. - --py-version=3.6
  152. - id: pip-tools-compile
  153. alias: compile-doc-requirements
  154. name: Docs Py3.6 Requirements
  155. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  156. args:
  157. - -v
  158. - --py-version=3.6
  159. - --platform=linux
  160. - id: pip-tools-compile
  161. alias: compile-linux-crypto-py3.6-requirements
  162. name: Linux Py3.6 Crypto Requirements
  163. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  164. args:
  165. - -v
  166. - --py-version=3.6
  167. - --platform=linux
  168. - --out-prefix=linux
  169. - id: pip-tools-compile
  170. alias: compile-darwin-crypto-py3.6-requirements
  171. name: Darwin Py3.6 Crypto Requirements
  172. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  173. args:
  174. - -v
  175. - --py-version=3.6
  176. - --platform=darwin
  177. - --out-prefix=darwin
  178. - id: pip-tools-compile
  179. alias: compile-windows-crypto-py3.6-requirements
  180. name: Windows Py3.6 Crypto Requirements
  181. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  182. args:
  183. - -v
  184. - --py-version=3.6
  185. - --platform=windows
  186. - --out-prefix=windows
  187. - id: pip-tools-compile
  188. alias: compile-lint-py3.6-requirements
  189. name: Lint Py3.6 Requirements
  190. files: ^requirements/static/lint\.in$
  191. args:
  192. - -v
  193. - --py-version=3.6
  194. - --platform=linux
  195. - id: pip-tools-compile
  196. alias: compile-linux-py3.7-zmq-requirements
  197. name: Linux Py3.7 ZeroMQ Requirements
  198. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  199. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  200. args:
  201. - -v
  202. - --py-version=3.7
  203. - --platform=linux
  204. - --include=requirements/base.txt
  205. - --include=requirements/zeromq.txt
  206. - --include=requirements/pytest.txt
  207. - id: pip-tools-compile
  208. alias: compile-darwin-py3.7-zmq-requirements
  209. name: Darwin Py3.7 ZeroMQ Requirements
  210. files: ^(pkg/osx/(req|req_ext|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  211. args:
  212. - -v
  213. - --py-version=3.7
  214. - --platform=darwin
  215. - --include=pkg/osx/req.txt
  216. - --include=pkg/osx/req_ext.txt
  217. - --include=pkg/osx/req_pyobjc.txt
  218. - --include=requirements/base.txt
  219. - --include=requirements/zeromq.txt
  220. - --include=requirements/pytest.txt
  221. - --passthrough-line-from-input=^pyobjc(.*)$
  222. - id: pip-tools-compile
  223. alias: compile-windows-py3.7-zmq-requirements
  224. name: Windows Py3.7 ZeroMQ Requirements
  225. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  226. args:
  227. - -v
  228. - --py-version=3.7
  229. - --platform=windows
  230. - --include=pkg/windows/req.txt
  231. - --include=pkg/windows/req_win.txt
  232. - --include=requirements/base.txt
  233. - --include=requirements/zeromq.txt
  234. - --include=requirements/pytest.txt
  235. - id: pip-tools-compile
  236. alias: compile-cloud-py3.7-requirements
  237. name: Cloud Py3.7 Requirements
  238. files: ^requirements/(static/cloud\.in)$
  239. args:
  240. - -v
  241. - --py-version=3.7
  242. - id: pip-tools-compile
  243. alias: compile-doc-requirements
  244. name: Docs Py3.7 Requirements
  245. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  246. args:
  247. - -v
  248. - --py-version=3.7
  249. - --platform=linux
  250. - id: pip-tools-compile
  251. alias: compile-linux-crypto-py3.7-requirements
  252. name: Linux Py3.7 Crypto Requirements
  253. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  254. args:
  255. - -v
  256. - --py-version=3.7
  257. - --platform=linux
  258. - --out-prefix=linux
  259. - id: pip-tools-compile
  260. alias: compile-darwin-crypto-py3.7-requirements
  261. name: Darwin Py3.7 Crypto Requirements
  262. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  263. args:
  264. - -v
  265. - --py-version=3.7
  266. - --platform=darwin
  267. - --out-prefix=darwin
  268. - id: pip-tools-compile
  269. alias: compile-windows-crypto-py3.7-requirements
  270. name: Windows Py3.7 Crypto Requirements
  271. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  272. args:
  273. - -v
  274. - --py-version=3.7
  275. - --platform=windows
  276. - --out-prefix=windows
  277. - id: pip-tools-compile
  278. alias: compile-lint-py3.7-requirements
  279. name: Lint Py3.7 Requirements
  280. files: ^requirements/static/lint\.in$
  281. args:
  282. - -v
  283. - --py-version=3.7
  284. - --platform=linux
  285. - id: pip-tools-compile
  286. alias: compile-linux-py3.8-zmq-requirements
  287. name: Linux Py3.8 ZeroMQ Requirements
  288. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  289. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  290. args:
  291. - -v
  292. - --py-version=3.8
  293. - --platform=linux
  294. - --include=requirements/base.txt
  295. - --include=requirements/zeromq.txt
  296. - --include=requirements/pytest.txt
  297. - id: pip-tools-compile
  298. alias: compile-darwin-py3.8-zmq-requirements
  299. name: Darwin Py3.8 ZeroMQ Requirements
  300. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  301. args:
  302. - -v
  303. - --py-version=3.8
  304. - --platform=darwin
  305. - --include=pkg/osx/req.txt
  306. - --include=pkg/osx/req_ext.txt
  307. - --include=requirements/base.txt
  308. - --include=requirements/zeromq.txt
  309. - --include=requirements/pytest.txt
  310. - --passthrough-line-from-input=^pyobjc(.*)$
  311. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  312. # - id: pip-tools-compile
  313. # alias: compile-windows-py3.8-zmq-requirements
  314. # name: Windows Py3.8 ZeroMQ Requirements
  315. # files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  316. # args:
  317. # - -v
  318. # - --py-version=3.8
  319. # - --platform=windows
  320. # - --include=pkg/windows/req.txt
  321. # - --include=pkg/windows/req_win.txt
  322. # - --include=requirements/base.txt
  323. # - --include=requirements/zeromq.txt
  324. # - --include=requirements/pytest.txt
  325. - id: pip-tools-compile
  326. alias: compile-cloud-py3.8-requirements
  327. name: Cloud Py3.8 Requirements
  328. files: ^requirements/(static/cloud\.in)$
  329. args:
  330. - -v
  331. - --py-version=3.8
  332. - id: pip-tools-compile
  333. alias: compile-doc-requirements
  334. name: Docs Py3.8 Requirements
  335. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  336. args:
  337. - -v
  338. - --py-version=3.8
  339. - --platform=linux
  340. - id: pip-tools-compile
  341. alias: compile-linux-crypto-py3.8-requirements
  342. name: Linux Py3.8 Crypto Requirements
  343. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  344. args:
  345. - -v
  346. - --py-version=3.8
  347. - --platform=linux
  348. - --out-prefix=linux
  349. - id: pip-tools-compile
  350. alias: compile-darwin-crypto-py3.8-requirements
  351. name: Darwin Py3.8 Crypto Requirements
  352. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  353. args:
  354. - -v
  355. - --py-version=3.8
  356. - --platform=darwin
  357. - --out-prefix=darwin
  358. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  359. # - id: pip-tools-compile
  360. # alias: compile-windows-crypto-py3.8-requirements
  361. # name: Windows Py3.8 Crypto Requirements
  362. # files: ^requirements/(crypto\.txt|static/crypto\.in)$
  363. # args:
  364. # - -v
  365. # - --py-version=3.8
  366. # - --platform=windows
  367. # - --out-prefix=windows
  368. - id: pip-tools-compile
  369. alias: compile-lint-py3.8-requirements
  370. name: Lint Py3.8 Requirements
  371. files: ^requirements/static/lint\.in$
  372. args:
  373. - -v
  374. - --py-version=3.8
  375. - --platform=linux
  376. - id: pip-tools-compile
  377. alias: compile-linux-py3.9-zmq-requirements
  378. name: Linux Py3.9 ZeroMQ Requirements
  379. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  380. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  381. args:
  382. - -v
  383. - --py-version=3.9
  384. - --platform=linux
  385. - --include=requirements/base.txt
  386. - --include=requirements/zeromq.txt
  387. - --include=requirements/pytest.txt
  388. - id: pip-tools-compile
  389. alias: compile-darwin-py3.9-zmq-requirements
  390. name: Darwin Py3.9 ZeroMQ Requirements
  391. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  392. args:
  393. - -v
  394. - --py-version=3.9
  395. - --platform=darwin
  396. - --include=pkg/osx/req.txt
  397. - --include=pkg/osx/req_ext.txt
  398. - --include=requirements/base.txt
  399. - --include=requirements/zeromq.txt
  400. - --include=requirements/pytest.txt
  401. - --passthrough-line-from-input=^pyobjc(.*)$
  402. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  403. # - id: pip-tools-compile
  404. # alias: compile-windows-py3.9-zmq-requirements
  405. # name: Windows Py3.9 ZeroMQ Requirements
  406. # files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  407. # args:
  408. # - -v
  409. # - --py-version=3.9
  410. # - --platform=windows
  411. # - --include=pkg/windows/req.txt
  412. # - --include=pkg/windows/req_win.txt
  413. # - --include=requirements/base.txt
  414. # - --include=requirements/zeromq.txt
  415. # - --include=requirements/pytest.txt
  416. - id: pip-tools-compile
  417. alias: compile-cloud-py3.9-requirements
  418. name: Cloud Py3.9 Requirements
  419. files: ^requirements/(static/cloud\.in)$
  420. args:
  421. - -v
  422. - --py-version=3.9
  423. - id: pip-tools-compile
  424. alias: compile-doc-requirements
  425. name: Docs Py3.9 Requirements
  426. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  427. args:
  428. - -v
  429. - --py-version=3.9
  430. - --platform=linux
  431. - id: pip-tools-compile
  432. alias: compile-linux-crypto-py3.9-requirements
  433. name: Linux Py3.9 Crypto Requirements
  434. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  435. args:
  436. - -v
  437. - --py-version=3.9
  438. - --platform=linux
  439. - --out-prefix=linux
  440. - id: pip-tools-compile
  441. alias: compile-darwin-crypto-py3.9-requirements
  442. name: Darwin Py3.9 Crypto Requirements
  443. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  444. args:
  445. - -v
  446. - --py-version=3.9
  447. - --platform=darwin
  448. - --out-prefix=darwin
  449. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  450. # - id: pip-tools-compile
  451. # alias: compile-windows-crypto-py3.9-requirements
  452. # name: Windows Py3.9 Crypto Requirements
  453. # files: ^requirements/(crypto\.txt|static/crypto\.in)$
  454. # args:
  455. # - -v
  456. # - --py-version=3.9
  457. # - --platform=windows
  458. # - --out-prefix=windows
  459. - id: pip-tools-compile
  460. alias: compile-lint-py3.9-requirements
  461. name: Lint Py3.9 Requirements
  462. files: ^requirements/static/lint\.in$
  463. args:
  464. - -v
  465. - --py-version=3.9
  466. - --platform=linux
  467. # ----- Invoke ---------------------------------------------------------------------------------------------------->
  468. - id: pip-tools-compile
  469. alias: compile-py3.5-invoke-requirements
  470. name: Linux Py3.5 Invoke Requirements
  471. files: ^requirements/static/invoke\.in$
  472. args:
  473. - -v
  474. - --py-version=3.5
  475. - id: pip-tools-compile
  476. alias: compile-py3.6-invoke-requirements
  477. name: Linux Py3.6 Invoke Requirements
  478. files: ^requirements/static/invoke\.in$
  479. args:
  480. - -v
  481. - --py-version=3.6
  482. - id: pip-tools-compile
  483. alias: compile-py3.7-invoke-requirements
  484. name: Linux Py3.7 Invoke Requirements
  485. files: ^requirements/static/invoke\.in$
  486. args:
  487. - -v
  488. - --py-version=3.7
  489. - id: pip-tools-compile
  490. alias: compile-py3.8-invoke-requirements
  491. name: Linux Py3.8 Invoke Requirements
  492. files: ^requirements/static/invoke\.in$
  493. args:
  494. - -v
  495. - --py-version=3.8
  496. - id: pip-tools-compile
  497. alias: compile-py3.9-invoke-requirements
  498. name: Linux Py3.9 Invoke Requirements
  499. files: ^requirements/static/invoke\.in$
  500. args:
  501. - -v
  502. - --py-version=3.9
  503. # <---- Invoke -----------------------------------------------------------------------------------------------------
  504. - repo: https://github.com/timothycrosley/isort
  505. rev: "1e78a9acf3110e1f9721feb591f89a451fc9876a"
  506. hooks:
  507. - id: isort
  508. additional_dependencies: ['toml']
  509. # This tells pre-commit not to pass files to isort.
  510. # This should be kept in sync with pyproject.toml
  511. exclude: >
  512. (?x)^(
  513. templates/.*|
  514. salt/ext/.*|
  515. tests/kitchen/.*
  516. )$
  517. - repo: https://github.com/psf/black
  518. rev: stable
  519. hooks:
  520. - id: black
  521. # This tells pre-commit not to pass files to black.
  522. # This should be kept in sync with pyproject.toml
  523. exclude: >
  524. (?x)^(
  525. templates/.*|
  526. salt/ext/.*|
  527. tests/kitchen/.*
  528. )$
  529. - repo: https://github.com/saltstack/salt-nox-pre-commit
  530. rev: master
  531. hooks:
  532. - id: nox-py2
  533. alias: lint-salt
  534. name: Lint Salt
  535. files: ^((setup|noxfile)|(salt|tasks)/.*)\.py$
  536. args:
  537. - -e
  538. - lint-salt-pre-commit
  539. - --
  540. - repo: https://github.com/saltstack/salt-nox-pre-commit
  541. rev: master
  542. hooks:
  543. - id: nox-py2
  544. alias: lint-tests
  545. name: Lint Tests
  546. files: ^tests/.*\.py$
  547. args:
  548. - -e
  549. - lint-tests-pre-commit
  550. - --
  551. - repo: https://github.com/saltstack/salt-nox-pre-commit
  552. rev: master
  553. hooks:
  554. - id: nox-py2
  555. alias: check-docs
  556. name: Check Docs
  557. files: ^(salt/.*\.py|doc/ref/.*\.rst)$
  558. args:
  559. - -e
  560. - invoke-pre-commit
  561. - --
  562. - docs.check