.pre-commit-config.yaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. exclude: ^(doc/_static/.*|doc/_themes/.*)$
  2. repos:
  3. - repo: https://github.com/saltstack/pip-tools-compile-impersonate
  4. rev: master
  5. hooks:
  6. - id: pip-tools-compile
  7. alias: compile-linux-py2.7-zmq-requirements
  8. name: Linux Py2.7 ZeroMQ Requirements
  9. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  10. exclude: ^requirements/static/(lint|cloud|docs|darwin|windows)\.in$
  11. args:
  12. - -v
  13. - --py-version=2.7
  14. - --platform=linux
  15. - --include=requirements/base.txt
  16. - --include=requirements/zeromq.txt
  17. - --include=requirements/pytest.txt
  18. - id: pip-tools-compile
  19. alias: compile-darwin-py2.7-zmq-requirements
  20. name: Darwin Py2.7 ZeroMQ Requirements
  21. files: ^(pkg/osx/(req|req_ext|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  22. args:
  23. - -v
  24. - --py-version=2.7
  25. - --platform=darwin
  26. - --include=pkg/osx/req.txt
  27. - --include=pkg/osx/req_ext.txt
  28. - --include=pkg/osx/req_pyobjc.txt
  29. - --include=requirements/base.txt
  30. - --include=requirements/zeromq.txt
  31. - --include=requirements/pytest.txt
  32. - --passthrough-line-from-input=^pyobjc(.*)$
  33. - id: pip-tools-compile
  34. alias: compile-windows-py2.7-zmq-requirements
  35. name: Windows Py2.7 ZeroMQ Requirements
  36. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  37. args:
  38. - -v
  39. - --py-version=2.7
  40. - --platform=windows
  41. - --include=pkg/windows/req.txt
  42. - --include=pkg/windows/req_win.txt
  43. - --include=requirements/base.txt
  44. - --include=requirements/zeromq.txt
  45. - --include=requirements/pytest.txt
  46. - id: pip-tools-compile
  47. alias: compile-cloud-py2.7-requirements
  48. name: Cloud Py2.7 Requirements
  49. files: ^requirements/(static/cloud\.in)$
  50. args:
  51. - -v
  52. - --py-version=2.7
  53. - id: pip-tools-compile
  54. alias: compile-linux-crypto-py2.7-requirements
  55. name: Linux Py2.7 Crypto Requirements
  56. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  57. args:
  58. - -v
  59. - --py-version=2.7
  60. - --platform=linux
  61. - --out-prefix=linux
  62. - id: pip-tools-compile
  63. alias: compile-darwin-crypto-py2.7-requirements
  64. name: Darwin Py2.7 Crypto Requirements
  65. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  66. args:
  67. - -v
  68. - --py-version=2.7
  69. - --platform=darwin
  70. - --out-prefix=darwin
  71. - id: pip-tools-compile
  72. alias: compile-windows-crypto-py2.7-requirements
  73. name: Windows Py2.7 Crypto Requirements
  74. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  75. args:
  76. - -v
  77. - --py-version=2.7
  78. - --platform=windows
  79. - --out-prefix=windows
  80. - id: pip-tools-compile
  81. alias: compile-linux-py3.4-zmq-requirements
  82. name: Linux Py3.4 ZeroMQ Requirements
  83. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  84. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  85. args:
  86. - -v
  87. - --py-version=3.4
  88. - --platform=linux
  89. - --include=requirements/base.txt
  90. - --include=requirements/zeromq.txt
  91. - --include=requirements/pytest.txt
  92. - id: pip-tools-compile
  93. alias: compile-cloud-py3.4-requirements
  94. name: Cloud Py3.4 Requirements
  95. files: ^requirements/(static/cloud\.in)$
  96. args:
  97. - -v
  98. - --py-version=3.4
  99. - id: pip-tools-compile
  100. alias: compile-linux-crypto-py3.4-requirements
  101. name: Linux Py3.4 Crypto Requirements
  102. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  103. args:
  104. - -v
  105. - --py-version=3.4
  106. - --platform=linux
  107. - --out-prefix=linux
  108. - id: pip-tools-compile
  109. alias: compile-linux-py3.5-zmq-requirements
  110. name: Linux Py3.5 ZeroMQ Requirements
  111. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  112. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  113. args:
  114. - -v
  115. - --py-version=3.5
  116. - --platform=linux
  117. - --include=requirements/base.txt
  118. - --include=requirements/zeromq.txt
  119. - --include=requirements/pytest.txt
  120. - id: pip-tools-compile
  121. alias: compile-darwin-py3.5-zmq-requirements
  122. name: Darwin Py3.5 ZeroMQ Requirements
  123. files: ^(pkg/osx/(req|req_ext|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  124. args:
  125. - -v
  126. - --py-version=3.5
  127. - --platform=darwin
  128. - --include=pkg/osx/req.txt
  129. - --include=pkg/osx/req_ext.txt
  130. - --include=pkg/osx/req_pyobjc.txt
  131. - --include=requirements/base.txt
  132. - --include=requirements/zeromq.txt
  133. - --include=requirements/pytest.txt
  134. - --passthrough-line-from-input=^pyobjc(.*)$
  135. - id: pip-tools-compile
  136. alias: compile-windows-py3.5-zmq-requirements
  137. name: Windows Py3.5 ZeroMQ Requirements
  138. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  139. args:
  140. - -v
  141. - --py-version=3.5
  142. - --platform=windows
  143. - --include=pkg/windows/req.txt
  144. - --include=pkg/windows/req_win.txt
  145. - --include=requirements/base.txt
  146. - --include=requirements/zeromq.txt
  147. - --include=requirements/pytest.txt
  148. - id: pip-tools-compile
  149. alias: compile-cloud-py3.5-requirements
  150. name: Cloud Py3.5 Requirements
  151. files: ^requirements/(static/cloud\.in)$
  152. args:
  153. - -v
  154. - --py-version=3.5
  155. - id: pip-tools-compile
  156. alias: compile-doc-requirements
  157. name: Docs Py3.5 Requirements
  158. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  159. args:
  160. - -v
  161. - --py-version=3.5
  162. - --platform=linux
  163. - id: pip-tools-compile
  164. alias: compile-linux-crypto-py3.5-requirements
  165. name: Linux Py3.5 Crypto Requirements
  166. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  167. args:
  168. - -v
  169. - --py-version=3.5
  170. - --platform=linux
  171. - --out-prefix=linux
  172. - id: pip-tools-compile
  173. alias: compile-darwin-crypto-py3.5-requirements
  174. name: Darwin Py3.5 Crypto Requirements
  175. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  176. args:
  177. - -v
  178. - --py-version=3.5
  179. - --platform=darwin
  180. - --out-prefix=darwin
  181. - id: pip-tools-compile
  182. alias: compile-windows-crypto-py3.5-requirements
  183. name: Windows Py3.5 Crypto Requirements
  184. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  185. args:
  186. - -v
  187. - --py-version=3.5
  188. - --platform=windows
  189. - --out-prefix=windows
  190. - id: pip-tools-compile
  191. alias: compile-lint-py3.5-requirements
  192. name: Lint Py3.5 Requirements
  193. files: ^requirements/static/lint\.in$
  194. args:
  195. - -v
  196. - --py-version=3.5
  197. - --platform=linux
  198. - id: pip-tools-compile
  199. alias: compile-linux-py3.6-zmq-requirements
  200. name: Linux Py3.6 ZeroMQ Requirements
  201. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  202. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  203. args:
  204. - -v
  205. - --py-version=3.6
  206. - --platform=linux
  207. - --include=requirements/base.txt
  208. - --include=requirements/zeromq.txt
  209. - --include=requirements/pytest.txt
  210. - id: pip-tools-compile
  211. alias: compile-darwin-py3.6-zmq-requirements
  212. name: Darwin Py3.6 ZeroMQ Requirements
  213. files: ^(pkg/osx/(req|req_ext|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  214. args:
  215. - -v
  216. - --py-version=3.6
  217. - --platform=darwin
  218. - --include=pkg/osx/req.txt
  219. - --include=pkg/osx/req_ext.txt
  220. - --include=pkg/osx/req_pyobjc.txt
  221. - --include=requirements/base.txt
  222. - --include=requirements/zeromq.txt
  223. - --include=requirements/pytest.txt
  224. - --passthrough-line-from-input=^pyobjc(.*)$
  225. - id: pip-tools-compile
  226. alias: compile-windows-py3.6-zmq-requirements
  227. name: Windows Py3.6 ZeroMQ Requirements
  228. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  229. args:
  230. - -v
  231. - --py-version=3.6
  232. - --platform=windows
  233. - --include=pkg/windows/req.txt
  234. - --include=pkg/windows/req_win.txt
  235. - --include=requirements/base.txt
  236. - --include=requirements/zeromq.txt
  237. - --include=requirements/pytest.txt
  238. - id: pip-tools-compile
  239. alias: compile-cloud-py3.6-requirements
  240. name: Cloud Py3.6 Requirements
  241. files: ^requirements/(static/cloud\.in)$
  242. args:
  243. - -v
  244. - --py-version=3.6
  245. - id: pip-tools-compile
  246. alias: compile-doc-requirements
  247. name: Docs Py3.6 Requirements
  248. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  249. args:
  250. - -v
  251. - --py-version=3.6
  252. - --platform=linux
  253. - id: pip-tools-compile
  254. alias: compile-linux-crypto-py3.6-requirements
  255. name: Linux Py3.6 Crypto Requirements
  256. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  257. args:
  258. - -v
  259. - --py-version=3.6
  260. - --platform=linux
  261. - --out-prefix=linux
  262. - id: pip-tools-compile
  263. alias: compile-darwin-crypto-py3.6-requirements
  264. name: Darwin Py3.6 Crypto Requirements
  265. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  266. args:
  267. - -v
  268. - --py-version=3.6
  269. - --platform=darwin
  270. - --out-prefix=darwin
  271. - id: pip-tools-compile
  272. alias: compile-windows-crypto-py3.6-requirements
  273. name: Windows Py3.6 Crypto Requirements
  274. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  275. args:
  276. - -v
  277. - --py-version=3.6
  278. - --platform=windows
  279. - --out-prefix=windows
  280. - id: pip-tools-compile
  281. alias: compile-lint-py3.6-requirements
  282. name: Lint Py3.6 Requirements
  283. files: ^requirements/static/lint\.in$
  284. args:
  285. - -v
  286. - --py-version=3.6
  287. - --platform=linux
  288. - id: pip-tools-compile
  289. alias: compile-linux-py3.7-zmq-requirements
  290. name: Linux Py3.7 ZeroMQ Requirements
  291. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  292. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  293. args:
  294. - -v
  295. - --py-version=3.7
  296. - --platform=linux
  297. - --include=requirements/base.txt
  298. - --include=requirements/zeromq.txt
  299. - --include=requirements/pytest.txt
  300. - id: pip-tools-compile
  301. alias: compile-darwin-py3.7-zmq-requirements
  302. name: Darwin Py3.7 ZeroMQ Requirements
  303. files: ^(pkg/osx/(req|req_ext|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  304. args:
  305. - -v
  306. - --py-version=3.7
  307. - --platform=darwin
  308. - --include=pkg/osx/req.txt
  309. - --include=pkg/osx/req_ext.txt
  310. - --include=pkg/osx/req_pyobjc.txt
  311. - --include=requirements/base.txt
  312. - --include=requirements/zeromq.txt
  313. - --include=requirements/pytest.txt
  314. - --passthrough-line-from-input=^pyobjc(.*)$
  315. - id: pip-tools-compile
  316. alias: compile-windows-py3.7-zmq-requirements
  317. name: Windows Py3.7 ZeroMQ Requirements
  318. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  319. args:
  320. - -v
  321. - --py-version=3.7
  322. - --platform=windows
  323. - --include=pkg/windows/req.txt
  324. - --include=pkg/windows/req_win.txt
  325. - --include=requirements/base.txt
  326. - --include=requirements/zeromq.txt
  327. - --include=requirements/pytest.txt
  328. - id: pip-tools-compile
  329. alias: compile-cloud-py3.7-requirements
  330. name: Cloud Py3.7 Requirements
  331. files: ^requirements/(static/cloud\.in)$
  332. args:
  333. - -v
  334. - --py-version=3.7
  335. - id: pip-tools-compile
  336. alias: compile-doc-requirements
  337. name: Docs Py3.7 Requirements
  338. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  339. args:
  340. - -v
  341. - --py-version=3.7
  342. - --platform=linux
  343. - id: pip-tools-compile
  344. alias: compile-linux-crypto-py3.7-requirements
  345. name: Linux Py3.7 Crypto Requirements
  346. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  347. args:
  348. - -v
  349. - --py-version=3.7
  350. - --platform=linux
  351. - --out-prefix=linux
  352. - id: pip-tools-compile
  353. alias: compile-darwin-crypto-py3.7-requirements
  354. name: Darwin Py3.7 Crypto Requirements
  355. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  356. args:
  357. - -v
  358. - --py-version=3.7
  359. - --platform=darwin
  360. - --out-prefix=darwin
  361. - id: pip-tools-compile
  362. alias: compile-windows-crypto-py3.7-requirements
  363. name: Windows Py3.7 Crypto Requirements
  364. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  365. args:
  366. - -v
  367. - --py-version=3.7
  368. - --platform=windows
  369. - --out-prefix=windows
  370. - id: pip-tools-compile
  371. alias: compile-lint-py3.7-requirements
  372. name: Lint Py3.7 Requirements
  373. files: ^requirements/static/lint\.in$
  374. args:
  375. - -v
  376. - --py-version=3.7
  377. - --platform=linux
  378. - repo: https://github.com/saltstack/salt-nox-pre-commit
  379. rev: master
  380. hooks:
  381. - id: nox-py2
  382. alias: lint-salt
  383. name: Lint Salt
  384. files: ^((setup|noxfile)|salt/.*)\.py$
  385. args:
  386. - -e
  387. - lint-salt-pre-commit
  388. - --
  389. - repo: https://github.com/saltstack/salt-nox-pre-commit
  390. rev: master
  391. hooks:
  392. - id: nox-py2
  393. alias: lint-tests
  394. name: Lint Tests
  395. files: ^tests/.*\.py$
  396. args:
  397. - -e
  398. - lint-tests-pre-commit
  399. - --