1
0

.pre-commit-config.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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. - --remove-line=^pycrypto==(.*)$
  19. - id: pip-tools-compile
  20. alias: compile-darwin-py2.7-zmq-requirements
  21. name: Darwin Py2.7 ZeroMQ Requirements
  22. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  23. args:
  24. - -v
  25. - --py-version=2.7
  26. - --platform=darwin
  27. - --include=pkg/osx/req.txt
  28. - --include=pkg/osx/req_ext.txt
  29. - --include=requirements/base.txt
  30. - --include=requirements/zeromq.txt
  31. - --include=requirements/pytest.txt
  32. - --remove-line=^pycrypto==(.*)$
  33. - --passthrough-line-from-input=^pyobjc(.*)$
  34. - id: pip-tools-compile
  35. alias: compile-windows-py2.7-zmq-requirements
  36. name: Windows Py2.7 ZeroMQ Requirements
  37. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  38. args:
  39. - -v
  40. - --py-version=2.7
  41. - --platform=windows
  42. - --include=pkg/windows/req.txt
  43. - --include=pkg/windows/req_win.txt
  44. - --include=requirements/base.txt
  45. - --include=requirements/zeromq.txt
  46. - --include=requirements/pytest.txt
  47. - --remove-line=^pycrypto==(.*)$
  48. - id: pip-tools-compile
  49. alias: compile-lint-py2.7-requirements
  50. name: Lint Py2.7 Requirements
  51. files: ^requirements/static/lint\.in$
  52. args:
  53. - -v
  54. - --py-version=2.7
  55. - --platform=linux
  56. - id: pip-tools-compile
  57. alias: compile-cloud-py2.7-requirements
  58. name: Cloud Py2.7 Requirements
  59. files: ^requirements/(static/cloud\.in)$
  60. args:
  61. - -v
  62. - --py-version=2.7
  63. - id: pip-tools-compile
  64. alias: compile-linux-py3.4-zmq-requirements
  65. name: Linux Py3.4 ZeroMQ Requirements
  66. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  67. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  68. args:
  69. - -v
  70. - --py-version=3.4
  71. - --platform=linux
  72. - --include=requirements/base.txt
  73. - --include=requirements/zeromq.txt
  74. - --include=requirements/pytest.txt
  75. - --remove-line=^pycrypto==(.*)$
  76. - id: pip-tools-compile
  77. alias: compile-cloud-py3.4-requirements
  78. name: Cloud Py3.4 Requirements
  79. files: ^requirements/(static/cloud\.in)$
  80. args:
  81. - -v
  82. - --py-version=3.4
  83. - id: pip-tools-compile
  84. alias: compile-linux-py3.5-zmq-requirements
  85. name: Linux Py3.5 ZeroMQ Requirements
  86. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  87. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  88. args:
  89. - -v
  90. - --py-version=3.5
  91. - --platform=linux
  92. - --include=requirements/base.txt
  93. - --include=requirements/zeromq.txt
  94. - --include=requirements/pytest.txt
  95. - --remove-line=^pycrypto==(.*)$
  96. - id: pip-tools-compile
  97. alias: compile-darwin-py3.5-zmq-requirements
  98. name: Darwin Py3.5 ZeroMQ Requirements
  99. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  100. args:
  101. - -v
  102. - --py-version=3.5
  103. - --platform=darwin
  104. - --include=pkg/osx/req.txt
  105. - --include=pkg/osx/req_ext.txt
  106. - --include=requirements/base.txt
  107. - --include=requirements/zeromq.txt
  108. - --include=requirements/pytest.txt
  109. - --remove-line=^pycrypto==(.*)$
  110. - --passthrough-line-from-input=^pyobjc(.*)$
  111. - id: pip-tools-compile
  112. alias: compile-windows-py3.5-zmq-requirements
  113. name: Windows Py3.5 ZeroMQ Requirements
  114. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  115. args:
  116. - -v
  117. - --py-version=3.5
  118. - --platform=windows
  119. - --include=pkg/windows/req.txt
  120. - --include=pkg/windows/req_win.txt
  121. - --include=requirements/base.txt
  122. - --include=requirements/zeromq.txt
  123. - --include=requirements/pytest.txt
  124. - --remove-line=^pycrypto==(.*)$
  125. - id: pip-tools-compile
  126. alias: compile-cloud-py3.5-requirements
  127. name: Cloud Py3.5 Requirements
  128. files: ^requirements/(static/cloud\.in)$
  129. args:
  130. - -v
  131. - --py-version=3.5
  132. - id: pip-tools-compile
  133. alias: compile-doc-requirements
  134. name: Docs Py3.5 Requirements
  135. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  136. args:
  137. - -v
  138. - --py-version=3.5
  139. - --platform=linux
  140. - id: pip-tools-compile
  141. alias: compile-linux-py3.6-zmq-requirements
  142. name: Linux Py3.6 ZeroMQ Requirements
  143. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  144. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  145. args:
  146. - -v
  147. - --py-version=3.6
  148. - --platform=linux
  149. - --include=requirements/base.txt
  150. - --include=requirements/zeromq.txt
  151. - --include=requirements/pytest.txt
  152. - --remove-line=^pycrypto==(.*)$
  153. - id: pip-tools-compile
  154. alias: compile-darwin-py3.6-zmq-requirements
  155. name: Darwin Py3.6 ZeroMQ Requirements
  156. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  157. args:
  158. - -v
  159. - --py-version=3.6
  160. - --platform=darwin
  161. - --include=pkg/osx/req.txt
  162. - --include=pkg/osx/req_ext.txt
  163. - --include=requirements/base.txt
  164. - --include=requirements/zeromq.txt
  165. - --include=requirements/pytest.txt
  166. - --remove-line=^pycrypto==(.*)$
  167. - --passthrough-line-from-input=^pyobjc(.*)$
  168. - id: pip-tools-compile
  169. alias: compile-windows-py3.6-zmq-requirements
  170. name: Windows Py3.6 ZeroMQ Requirements
  171. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  172. args:
  173. - -v
  174. - --py-version=3.6
  175. - --platform=windows
  176. - --include=pkg/windows/req.txt
  177. - --include=pkg/windows/req_win.txt
  178. - --include=requirements/base.txt
  179. - --include=requirements/zeromq.txt
  180. - --include=requirements/pytest.txt
  181. - --remove-line=^pycrypto==(.*)$
  182. - id: pip-tools-compile
  183. alias: compile-cloud-py3.6-requirements
  184. name: Cloud Py3.6 Requirements
  185. files: ^requirements/(static/cloud\.in)$
  186. args:
  187. - -v
  188. - --py-version=3.6
  189. - id: pip-tools-compile
  190. alias: compile-doc-requirements
  191. name: Docs Py3.6 Requirements
  192. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  193. args:
  194. - -v
  195. - --py-version=3.6
  196. - --platform=linux
  197. - id: pip-tools-compile
  198. alias: compile-linux-py3.7-zmq-requirements
  199. name: Linux Py3.7 ZeroMQ Requirements
  200. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  201. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  202. args:
  203. - -v
  204. - --py-version=3.7
  205. - --platform=linux
  206. - --include=requirements/base.txt
  207. - --include=requirements/zeromq.txt
  208. - --include=requirements/pytest.txt
  209. - --remove-line=^pycrypto==(.*)$
  210. - id: pip-tools-compile
  211. alias: compile-darwin-py3.7-zmq-requirements
  212. name: Darwin Py3.7 ZeroMQ Requirements
  213. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  214. args:
  215. - -v
  216. - --py-version=3.7
  217. - --platform=darwin
  218. - --include=pkg/osx/req.txt
  219. - --include=pkg/osx/req_ext.txt
  220. - --include=requirements/base.txt
  221. - --include=requirements/zeromq.txt
  222. - --include=requirements/pytest.txt
  223. - --remove-line=^pycrypto==(.*)$
  224. - --passthrough-line-from-input=^pyobjc(.*)$
  225. - id: pip-tools-compile
  226. alias: compile-windows-py3.7-zmq-requirements
  227. name: Windows Py3.7 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.7
  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. - --remove-line=^pycrypto==(.*)$
  239. - id: pip-tools-compile
  240. alias: compile-cloud-py3.7-requirements
  241. name: Cloud Py3.7 Requirements
  242. files: ^requirements/(static/cloud\.in)$
  243. args:
  244. - -v
  245. - --py-version=3.7
  246. - id: pip-tools-compile
  247. alias: compile-doc-requirements
  248. name: Docs Py3.7 Requirements
  249. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  250. args:
  251. - -v
  252. - --py-version=3.7
  253. - --platform=linux
  254. - repo: https://github.com/saltstack/salt-nox-pre-commit
  255. rev: master
  256. hooks:
  257. - id: nox-py2
  258. alias: lint-salt
  259. name: Lint Salt
  260. files: ^((setup|noxfile)|salt/.*)\.py$
  261. args:
  262. - -e
  263. - lint-salt
  264. - --
  265. - repo: https://github.com/saltstack/salt-nox-pre-commit
  266. rev: master
  267. hooks:
  268. - id: nox-py2
  269. alias: lint-tests
  270. name: Lint Tests
  271. files: ^tests/.*\.py$
  272. args:
  273. - -e
  274. - lint-tests
  275. - --