1
0

.pre-commit-config.yaml 21 KB

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