1
0

.pre-commit-config.yaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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/(.*)\.in)$
  10. exclude: ^requirements/static/(lint|cloud|docs|osx|windows)\.in$
  11. args:
  12. - -v
  13. - --py-version=2.7
  14. - --platform=linux
  15. - --out-prefix=zeromq
  16. - --include=requirements/base.txt
  17. - --include=requirements/zeromq.txt
  18. - --include=requirements/pytest.txt
  19. - --remove-line=^pycrypto==(.*)$
  20. - id: pip-tools-compile
  21. alias: compile-osx-py2.7-zmq-requirements
  22. name: OSX Py2.7 ZeroMQ Requirements
  23. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|zeromq|pytest)\.txt|static/osx\.in))$
  24. args:
  25. - -v
  26. - --py-version=2.7
  27. - --platform=darwin
  28. - --out-prefix=zeromq
  29. - --include=pkg/osx/req.txt
  30. - --include=pkg/osx/req_ext.txt
  31. - --include=requirements/base.txt
  32. - --include=requirements/zeromq.txt
  33. - --include=requirements/pytest.txt
  34. - --remove-line=^pycrypto==(.*)$
  35. - id: pip-tools-compile
  36. alias: compile-windows-py2.7-zmq-requirements
  37. name: Windows Py2.7 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=2.7
  42. - --platform=windows
  43. - --out-prefix=zeromq
  44. - --include=pkg/windows/req.txt
  45. - --include=pkg/windows/req_win.txt
  46. - --include=requirements/base.txt
  47. - --include=requirements/zeromq.txt
  48. - --include=requirements/pytest.txt
  49. - --remove-line=^pycrypto==(.*)$
  50. - id: pip-tools-compile
  51. alias: compile-linux-py2.7-raet-requirements
  52. name: Linux Py2.7 RAET Requirements
  53. files: ^requirements/((base|raet|pytest)\.txt|static/(.*)\.in)$
  54. exclude: ^requirements/static/(lint|cloud|docs|osx|windows)\.in$
  55. args:
  56. - -v
  57. - --py-version=2.7
  58. - --platform=linux
  59. - --out-prefix=raet
  60. - --include=requirements/base.txt
  61. - --include=requirements/raet.txt
  62. - --include=requirements/pytest.txt
  63. - --remove-line=^pycrypto==(.*)$
  64. - id: pip-tools-compile
  65. alias: compile-osx-py2.7-raet-requirements
  66. name: OSX Py2.7 RAET Requirements
  67. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|raet|pytest)\.txt|static/osx\.in))$
  68. args:
  69. - -v
  70. - --py-version=2.7
  71. - --out-prefix=raet
  72. - --platform=darwin
  73. - --include=pkg/osx/req.txt
  74. - --include=pkg/osx/req_ext.txt
  75. - --include=requirements/base.txt
  76. - --include=requirements/raet.txt
  77. - --include=requirements/pytest.txt
  78. - --remove-line=^pycrypto==(.*)$
  79. - id: pip-tools-compile
  80. alias: compile-windows-py2.7-raet-requirements
  81. name: Windows Py2.7 RAET Requirements
  82. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|raet|pytest)\.txt|static/windows\.in))$
  83. args:
  84. - -v
  85. - --py-version=2.7
  86. - --out-prefix=raet
  87. - --platform=windows
  88. - --include=pkg/windows/req.txt
  89. - --include=pkg/windows/req_win.txt
  90. - --include=requirements/base.txt
  91. - --include=requirements/raet.txt
  92. - --include=requirements/pytest.txt
  93. - --remove-line=^pycrypto==(.*)$
  94. - id: pip-tools-compile
  95. alias: compile-lint-py2.7-requirements
  96. name: Lint Py2.7 Requirements
  97. files: ^requirements/static/lint\.in$
  98. args:
  99. - -v
  100. - --py-version=2.7
  101. - --platform=linux
  102. - id: pip-tools-compile
  103. alias: compile-cloud-py2.7-requirements
  104. name: Cloud Py2.7 Requirements
  105. files: ^requirements/(static/cloud\.in)$
  106. args:
  107. - -v
  108. - --py-version=2.7
  109. - id: pip-tools-compile
  110. alias: compile-linux-py3.4-zmq-requirements
  111. name: Linux Py3.4 ZeroMQ Requirements
  112. files: ^requirements/((base|zeromq|pytest)\.txt|static/(.*)\.in)$
  113. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|osx|windows)\.in$
  114. args:
  115. - -v
  116. - --py-version=3.4
  117. - --platform=linux
  118. - --out-prefix=zeromq
  119. - --include=requirements/base.txt
  120. - --include=requirements/zeromq.txt
  121. - --include=requirements/pytest.txt
  122. - --remove-line=^pycrypto==(.*)$
  123. - id: pip-tools-compile
  124. alias: compile-linux-py3.4-raet-requirements
  125. name: Linux Py3.4 RAET Requirements
  126. files: ^requirements/((base|raet|pytest)\.txt|static/(.*)\.in)$
  127. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|osx|windows)\.in$
  128. args:
  129. - -v
  130. - --py-version=3.4
  131. - --platform=linux
  132. - --out-prefix=raet
  133. - --include=requirements/base.txt
  134. - --include=requirements/raet.txt
  135. - --include=requirements/pytest.txt
  136. - --remove-line=^pycrypto==(.*)$
  137. - --remove-line=^enum34==(.*)$
  138. - id: pip-tools-compile
  139. alias: compile-cloud-py3.4-requirements
  140. name: Cloud Py3.4 Requirements
  141. files: ^requirements/(static/cloud\.in)$
  142. args:
  143. - -v
  144. - --py-version=3.4
  145. - id: pip-tools-compile
  146. alias: compile-linux-py3.5-zmq-requirements
  147. name: Linux Py3.5 ZeroMQ Requirements
  148. files: ^requirements/((base|zeromq|pytest)\.txt|static/(.*)\.in)$
  149. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|osx|windows)\.in$
  150. args:
  151. - -v
  152. - --py-version=3.5
  153. - --platform=linux
  154. - --out-prefix=zeromq
  155. - --include=requirements/base.txt
  156. - --include=requirements/zeromq.txt
  157. - --include=requirements/pytest.txt
  158. - --remove-line=^pycrypto==(.*)$
  159. - id: pip-tools-compile
  160. alias: compile-osx-py3.5-zmq-requirements
  161. name: OSX Py3.5 ZeroMQ Requirements
  162. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|zeromq|pytest)\.txt|static/osx\.in))$
  163. args:
  164. - -v
  165. - --py-version=3.5
  166. - --platform=darwin
  167. - --out-prefix=zeromq
  168. - --include=pkg/osx/req.txt
  169. - --include=pkg/osx/req_ext.txt
  170. - --include=requirements/base.txt
  171. - --include=requirements/zeromq.txt
  172. - --include=requirements/pytest.txt
  173. - --remove-line=^pycrypto==(.*)$
  174. - id: pip-tools-compile
  175. alias: compile-windows-py3.5-zmq-requirements
  176. name: Windows Py3.5 ZeroMQ Requirements
  177. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  178. args:
  179. - -v
  180. - --py-version=3.5
  181. - --platform=windows
  182. - --out-prefix=zeromq
  183. - --include=pkg/windows/req.txt
  184. - --include=pkg/windows/req_win.txt
  185. - --include=requirements/base.txt
  186. - --include=requirements/zeromq.txt
  187. - --include=requirements/pytest.txt
  188. - --remove-line=^pycrypto==(.*)$
  189. - id: pip-tools-compile
  190. alias: compile-linux-py3.5-raet-requirements
  191. name: Linux Py3.5 RAET Requirements
  192. files: ^requirements/((base|raet|pytest)\.txt|static/(.*)\.in)$
  193. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|osx|windows)\.in$
  194. args:
  195. - -v
  196. - --py-version=3.5
  197. - --platform=linux
  198. - --out-prefix=raet
  199. - --include=requirements/base.txt
  200. - --include=requirements/raet.txt
  201. - --include=requirements/pytest.txt
  202. - --remove-line=^pycrypto==(.*)$
  203. - --remove-line=^enum34==(.*)$
  204. - id: pip-tools-compile
  205. alias: compile-osx-py3.5-raet-requirements
  206. name: OSX Py3.5 RAET Requirements
  207. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|raet|pytest)\.txt|static/osx\.in))$
  208. args:
  209. - -v
  210. - --py-version=3.5
  211. - --platform=darwin
  212. - --out-prefix=raet
  213. - --include=pkg/osx/req.txt
  214. - --include=pkg/osx/req_ext.txt
  215. - --include=requirements/base.txt
  216. - --include=requirements/raet.txt
  217. - --include=requirements/pytest.txt
  218. - --remove-line=^pycrypto==(.*)$
  219. - --remove-line=^enum34==(.*)$
  220. - id: pip-tools-compile
  221. alias: compile-windows-py3.5-raet-requirements
  222. name: Windows Py3.5 RAET Requirements
  223. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|raet|pytest)\.txt|static/windows\.in))$
  224. args:
  225. - -v
  226. - --py-version=3.5
  227. - --platform=windows
  228. - --out-prefix=raet
  229. - --include=pkg/windows/req.txt
  230. - --include=pkg/windows/req_win.txt
  231. - --include=requirements/base.txt
  232. - --include=requirements/raet.txt
  233. - --include=requirements/pytest.txt
  234. - --remove-line=^pycrypto==(.*)$
  235. - --remove-line=^enum34==(.*)$
  236. - id: pip-tools-compile
  237. alias: compile-cloud-py3.5-requirements
  238. name: Cloud Py3.5 Requirements
  239. files: ^requirements/(static/cloud\.in)$
  240. args:
  241. - -v
  242. - --py-version=3.5
  243. - id: pip-tools-compile
  244. alias: compile-doc-requirements
  245. name: Docs Py3.5 Requirements
  246. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  247. args:
  248. - -v
  249. - --py-version=3.5
  250. - --platform=linux
  251. - id: pip-tools-compile
  252. alias: compile-linux-py3.6-zmq-requirements
  253. name: Linux Py3.6 ZeroMQ Requirements
  254. files: ^requirements/((base|zeromq|pytest)\.txt|static/(.*)\.in)$
  255. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|osx|windows)\.in$
  256. args:
  257. - -v
  258. - --py-version=3.6
  259. - --platform=linux
  260. - --out-prefix=zeromq
  261. - --include=requirements/base.txt
  262. - --include=requirements/zeromq.txt
  263. - --include=requirements/pytest.txt
  264. - --remove-line=^pycrypto==(.*)$
  265. - id: pip-tools-compile
  266. alias: compile-osx-py3.6-zmq-requirements
  267. name: OSX Py3.6 ZeroMQ Requirements
  268. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|zeromq|pytest)\.txt|static/osx\.in))$
  269. args:
  270. - -v
  271. - --py-version=3.6
  272. - --platform=darwin
  273. - --out-prefix=zeromq
  274. - --include=pkg/osx/req.txt
  275. - --include=pkg/osx/req_ext.txt
  276. - --include=requirements/base.txt
  277. - --include=requirements/zeromq.txt
  278. - --include=requirements/pytest.txt
  279. - --remove-line=^pycrypto==(.*)$
  280. - id: pip-tools-compile
  281. alias: compile-windows-py3.6-zmq-requirements
  282. name: Windows Py3.6 ZeroMQ Requirements
  283. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  284. args:
  285. - -v
  286. - --py-version=3.6
  287. - --platform=windows
  288. - --out-prefix=zeromq
  289. - --include=pkg/windows/req.txt
  290. - --include=pkg/windows/req_win.txt
  291. - --include=requirements/base.txt
  292. - --include=requirements/zeromq.txt
  293. - --include=requirements/pytest.txt
  294. - --remove-line=^pycrypto==(.*)$
  295. - id: pip-tools-compile
  296. alias: compile-linux-py3.6-raet-requirements
  297. name: Linux Py3.6 RAET Requirements
  298. files: ^requirements/((base|raet|pytest)\.txt|static/(.*)\.in)$
  299. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|osx|windows)\.in$
  300. args:
  301. - -v
  302. - --py-version=3.6
  303. - --platform=linux
  304. - --out-prefix=raet
  305. - --include=requirements/base.txt
  306. - --include=requirements/raet.txt
  307. - --include=requirements/pytest.txt
  308. - --remove-line=^pycrypto==(.*)$
  309. - --remove-line=^enum34==(.*)$
  310. - id: pip-tools-compile
  311. alias: compile-osx-py3.6-raet-requirements
  312. name: OSX Py3.6 RAET Requirements
  313. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|raet|pytest)\.txt|static/osx\.in))$
  314. args:
  315. - -v
  316. - --py-version=3.6
  317. - --platform=darwin
  318. - --out-prefix=raet
  319. - --include=pkg/osx/req.txt
  320. - --include=pkg/osx/req_ext.txt
  321. - --include=requirements/base.txt
  322. - --include=requirements/raet.txt
  323. - --include=requirements/pytest.txt
  324. - --remove-line=^pycrypto==(.*)$
  325. - --remove-line=^enum34==(.*)$
  326. - id: pip-tools-compile
  327. alias: compile-windows-py3.6-raet-requirements
  328. name: Windows Py3.6 RAET Requirements
  329. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|raet|pytest)\.txt|static/windows\.in))$
  330. args:
  331. - -v
  332. - --py-version=3.6
  333. - --platform=windows
  334. - --out-prefix=raet
  335. - --include=pkg/windows/req.txt
  336. - --include=pkg/windows/req_win.txt
  337. - --include=requirements/base.txt
  338. - --include=requirements/raet.txt
  339. - --include=requirements/pytest.txt
  340. - --remove-line=^pycrypto==(.*)$
  341. - --remove-line=^enum34==(.*)$
  342. - id: pip-tools-compile
  343. alias: compile-cloud-py3.6-requirements
  344. name: Cloud Py3.6 Requirements
  345. files: ^requirements/(static/cloud\.in)$
  346. args:
  347. - -v
  348. - --py-version=3.6
  349. - id: pip-tools-compile
  350. alias: compile-doc-requirements
  351. name: Docs Py3.6 Requirements
  352. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  353. args:
  354. - -v
  355. - --py-version=3.6
  356. - --platform=linux
  357. - id: pip-tools-compile
  358. alias: compile-linux-py3.7-zmq-requirements
  359. name: Linux Py3.7 ZeroMQ Requirements
  360. files: ^requirements/((base|zeromq|pytest)\.txt|static/(.*)\.in)$
  361. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|osx|windows)\.in$
  362. args:
  363. - -v
  364. - --py-version=3.7
  365. - --platform=linux
  366. - --out-prefix=zeromq
  367. - --include=requirements/base.txt
  368. - --include=requirements/zeromq.txt
  369. - --include=requirements/pytest.txt
  370. - --remove-line=^pycrypto==(.*)$
  371. - id: pip-tools-compile
  372. alias: compile-osx-py3.7-zmq-requirements
  373. name: OSX Py3.7 ZeroMQ Requirements
  374. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|zeromq|pytest)\.txt|static/osx\.in))$
  375. args:
  376. - -v
  377. - --py-version=3.7
  378. - --platform=darwin
  379. - --out-prefix=zeromq
  380. - --include=pkg/osx/req.txt
  381. - --include=pkg/osx/req_ext.txt
  382. - --include=requirements/base.txt
  383. - --include=requirements/zeromq.txt
  384. - --include=requirements/pytest.txt
  385. - --remove-line=^pycrypto==(.*)$
  386. - id: pip-tools-compile
  387. alias: compile-windows-py3.7-zmq-requirements
  388. name: Windows Py3.7 ZeroMQ Requirements
  389. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  390. args:
  391. - -v
  392. - --py-version=3.7
  393. - --platform=windows
  394. - --out-prefix=zeromq
  395. - --include=pkg/windows/req.txt
  396. - --include=pkg/windows/req_win.txt
  397. - --include=requirements/base.txt
  398. - --include=requirements/zeromq.txt
  399. - --include=requirements/pytest.txt
  400. - --remove-line=^pycrypto==(.*)$
  401. - id: pip-tools-compile
  402. alias: compile-linux-py3.7-raet-requirements
  403. name: Linux Py3.7 RAET Requirements
  404. files: ^requirements/((base|raet|pytest)\.txt|static/(.*)\.in)$
  405. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|osx|windows)\.in$
  406. args:
  407. - -v
  408. - --py-version=3.7
  409. - --platform=linux
  410. - --out-prefix=raet
  411. - --include=requirements/base.txt
  412. - --include=requirements/raet.txt
  413. - --include=requirements/pytest.txt
  414. - --remove-line=^pycrypto==(.*)$
  415. - --remove-line=^enum34==(.*)$
  416. - id: pip-tools-compile
  417. alias: compile-osx-py3.7-raet-requirements
  418. name: OSX Py3.7 RAET Requirements
  419. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|raet|pytest)\.txt|static/osx\.in))$
  420. args:
  421. - -v
  422. - --py-version=3.7
  423. - --platform=darwin
  424. - --out-prefix=raet
  425. - --include=pkg/osx/req.txt
  426. - --include=pkg/osx/req_ext.txt
  427. - --include=requirements/base.txt
  428. - --include=requirements/raet.txt
  429. - --include=requirements/pytest.txt
  430. - --remove-line=^pycrypto==(.*)$
  431. - --remove-line=^enum34==(.*)$
  432. - id: pip-tools-compile
  433. alias: compile-windows-py3.7-raet-requirements
  434. name: Windows Py3.7 RAET Requirements
  435. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|raet|pytest)\.txt|static/windows\.in))$
  436. args:
  437. - -v
  438. - --py-version=3.7
  439. - --platform=windows
  440. - --out-prefix=raet
  441. - --include=pkg/windows/req.txt
  442. - --include=pkg/windows/req_win.txt
  443. - --include=requirements/base.txt
  444. - --include=requirements/raet.txt
  445. - --include=requirements/pytest.txt
  446. - --remove-line=^pycrypto==(.*)$
  447. - --remove-line=^enum34==(.*)$
  448. - id: pip-tools-compile
  449. alias: compile-cloud-py3.7-requirements
  450. name: Cloud Py3.7 Requirements
  451. files: ^requirements/(static/cloud\.in)$
  452. args:
  453. - -v
  454. - --py-version=3.7
  455. - id: pip-tools-compile
  456. alias: compile-doc-requirements
  457. name: Docs Py3.7 Requirements
  458. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  459. args:
  460. - -v
  461. - --py-version=3.7
  462. - --platform=linux