1
0

.pre-commit-config.yaml 14 KB

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