.pre-commit-config.yaml 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157
  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: 4dcdb0699e41880ebbc0a376191b4f7791f9d91e
  7. hooks:
  8. # ----- Packaging Requirements ------------------------------------------------------------------------------------>
  9. - id: pip-tools-compile
  10. alias: compile-pkg-linux-3.5-zmq-requirements
  11. name: Linux Packaging Py3.5 ZeroMQ Requirements
  12. files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/linux\.in)$
  13. pass_filenames: false
  14. args:
  15. - -v
  16. - --py-version=3.5
  17. - --platform=linux
  18. - --include=requirements/base.txt
  19. - --include=requirements/zeromq.txt
  20. - --include=requirements/zeromq.txt
  21. - requirements/static/pkg/linux.in
  22. - id: pip-tools-compile
  23. alias: compile-pkg-linux-3.6-zmq-requirements
  24. name: Linux Packaging Py3.6 ZeroMQ Requirements
  25. files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/linux\.in)$
  26. pass_filenames: false
  27. args:
  28. - -v
  29. - --py-version=3.6
  30. - --platform=linux
  31. - --include=requirements/base.txt
  32. - --include=requirements/zeromq.txt
  33. - requirements/static/pkg/linux.in
  34. - id: pip-tools-compile
  35. alias: compile-pkg-linux-3.7-zmq-requirements
  36. name: Linux Packaging Py3.7 ZeroMQ Requirements
  37. files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/linux\.in)$
  38. pass_filenames: false
  39. args:
  40. - -v
  41. - --py-version=3.7
  42. - --platform=linux
  43. - --include=requirements/base.txt
  44. - --include=requirements/zeromq.txt
  45. - requirements/static/pkg/linux.in
  46. - id: pip-tools-compile
  47. alias: compile-pkg-linux-3.8-zmq-requirements
  48. name: Linux Packaging Py3.8 ZeroMQ Requirements
  49. files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/linux\.in)$
  50. pass_filenames: false
  51. args:
  52. - -v
  53. - --py-version=3.8
  54. - --platform=linux
  55. - --include=requirements/base.txt
  56. - --include=requirements/zeromq.txt
  57. - requirements/static/pkg/linux.in
  58. - id: pip-tools-compile
  59. alias: compile-pkg-linux-3.9-zmq-requirements
  60. name: Linux Packaging Py3.9 ZeroMQ Requirements
  61. files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/linux\.in)$
  62. pass_filenames: false
  63. args:
  64. - -v
  65. - --py-version=3.9
  66. - --platform=linux
  67. - --include=requirements/base.txt
  68. - --include=requirements/zeromq.txt
  69. - requirements/static/pkg/linux.in
  70. - id: pip-tools-compile
  71. alias: compile-pkg-freebsd-3.5-zmq-requirements
  72. name: FreeBSD Packaging Py3.5 ZeroMQ Requirements
  73. files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/freebsd\.in)$
  74. pass_filenames: false
  75. args:
  76. - -v
  77. - --py-version=3.5
  78. - --platform=linux
  79. - --include=requirements/base.txt
  80. - --include=requirements/zeromq.txt
  81. - requirements/static/pkg/freebsd.in
  82. - id: pip-tools-compile
  83. alias: compile-pkg-freebsd-3.6-zmq-requirements
  84. name: FreeBSD Packaging Py3.6 ZeroMQ Requirements
  85. files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/freebsd\.in)$
  86. pass_filenames: false
  87. args:
  88. - -v
  89. - --py-version=3.6
  90. - --platform=linux
  91. - --include=requirements/base.txt
  92. - --include=requirements/zeromq.txt
  93. - requirements/static/pkg/freebsd.in
  94. - id: pip-tools-compile
  95. alias: compile-pkg-freebsd-3.7-zmq-requirements
  96. name: FreeBSD Packaging Py3.7 ZeroMQ Requirements
  97. files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/freebsd\.in)$
  98. pass_filenames: false
  99. args:
  100. - -v
  101. - --py-version=3.7
  102. - --platform=linux
  103. - --include=requirements/base.txt
  104. - --include=requirements/zeromq.txt
  105. - requirements/static/pkg/freebsd.in
  106. - id: pip-tools-compile
  107. alias: compile-pkg-freebsd-3.8-zmq-requirements
  108. name: FreeBSD Packaging Py3.8 ZeroMQ Requirements
  109. files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/freebsd\.in)$
  110. pass_filenames: false
  111. args:
  112. - -v
  113. - --py-version=3.8
  114. - --platform=linux
  115. - --include=requirements/base.txt
  116. - --include=requirements/zeromq.txt
  117. - requirements/static/pkg/freebsd.in
  118. - id: pip-tools-compile
  119. alias: compile-pkg-freebsd-3.9-zmq-requirements
  120. name: FreeBSD Packaging Py3.9 ZeroMQ Requirements
  121. files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/freebsd\.in)$
  122. pass_filenames: false
  123. args:
  124. - -v
  125. - --py-version=3.9
  126. - --platform=linux
  127. - --include=requirements/base.txt
  128. - --include=requirements/zeromq.txt
  129. - requirements/static/pkg/freebsd.in
  130. - id: pip-tools-compile
  131. alias: compile-pkg-darwin-3.5-zmq-requirements
  132. name: Darwin Packaging Py3.5 ZeroMQ Requirements
  133. files: ^(pkg/osx/req_pyobjc\.txt|requirements/((base|zeromq|crypto)\.txt|static/pkg/darwin\.in))$
  134. pass_filenames: false
  135. args:
  136. - -v
  137. - --py-version=3.5
  138. - --platform=darwin
  139. - --include=pkg/osx/req_pyobjc.txt
  140. - --include=requirements/darwin.txt
  141. - --passthrough-line-from-input=^pyobjc(.*)$
  142. - requirements/static/pkg/darwin.in
  143. - id: pip-tools-compile
  144. alias: compile-pkg-darwin-3.6-zmq-requirements
  145. name: Darwin Packaging Py3.6 ZeroMQ Requirements
  146. files: ^(pkg/osx/req_pyobjc\.txt|requirements/((base|zeromq|crypto)\.txt|static/pkg/darwin\.in))$
  147. pass_filenames: false
  148. args:
  149. - -v
  150. - --py-version=3.6
  151. - --platform=darwin
  152. - --include=pkg/osx/req_pyobjc.txt
  153. - --include=requirements/darwin.txt
  154. - --passthrough-line-from-input=^pyobjc(.*)$
  155. - requirements/static/pkg/darwin.in
  156. - id: pip-tools-compile
  157. alias: compile-pkg-darwin-3.7-zmq-requirements
  158. name: Darwin Packaging Py3.7 ZeroMQ Requirements
  159. files: ^(pkg/osx/req_pyobjc\.txt|requirements/((base|zeromq|crypto)\.txt|static/pkg/darwin\.in))$
  160. pass_filenames: false
  161. args:
  162. - -v
  163. - --py-version=3.7
  164. - --platform=darwin
  165. - --include=pkg/osx/req_pyobjc.txt
  166. - --include=requirements/darwin.txt
  167. - --passthrough-line-from-input=^pyobjc(.*)$
  168. - requirements/static/pkg/darwin.in
  169. - id: pip-tools-compile
  170. alias: compile-pkg-darwin-3.8-zmq-requirements
  171. name: Darwin Packaging Py3.8 ZeroMQ Requirements
  172. files: ^(pkg/osx/req_pyobjc\.txt|requirements/((base|zeromq|crypto)\.txt|static/pkg/darwin\.in))$
  173. pass_filenames: false
  174. args:
  175. - -v
  176. - --py-version=3.8
  177. - --platform=darwin
  178. - --include=pkg/osx/req_pyobjc.txt
  179. - --include=requirements/darwin.txt
  180. - --passthrough-line-from-input=^pyobjc(.*)$
  181. - requirements/static/pkg/darwin.in
  182. - id: pip-tools-compile
  183. alias: compile-pkg-darwin-3.9-zmq-requirements
  184. name: Darwin Packaging Py3.9 ZeroMQ Requirements
  185. files: ^(pkg/osx/req_pyobjc\.txt|requirements/((base|zeromq|crypto)\.txt|static/pkg/darwin\.in))$
  186. pass_filenames: false
  187. args:
  188. - -v
  189. - --py-version=3.9
  190. - --platform=darwin
  191. - --include=pkg/osx/req_pyobjc.txt
  192. - --include=requirements/darwin.txt
  193. - --passthrough-line-from-input=^pyobjc(.*)$
  194. - requirements/static/pkg/darwin.in
  195. - id: pip-tools-compile
  196. alias: compile-pkg-windows-3.5-zmq-requirements
  197. name: Windows Packaging Py3.5 ZeroMQ Requirements
  198. files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/windows\.in)$
  199. pass_filenames: false
  200. args:
  201. - -v
  202. - --py-version=3.5
  203. - --platform=windows
  204. - --include=requirements/windows.txt
  205. - requirements/static/pkg/windows.in
  206. - id: pip-tools-compile
  207. alias: compile-pkg-windows-3.6-zmq-requirements
  208. name: Windows Packaging Py3.6 ZeroMQ Requirements
  209. files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/windows\.in)$
  210. pass_filenames: false
  211. args:
  212. - -v
  213. - --py-version=3.6
  214. - --platform=windows
  215. - --include=requirements/windows.txt
  216. - requirements/static/pkg/windows.in
  217. - id: pip-tools-compile
  218. alias: compile-pkg-windows-3.7-zmq-requirements
  219. name: Windows Packaging Py3.7 ZeroMQ Requirements
  220. files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/windows\.in)$
  221. pass_filenames: false
  222. args:
  223. - -v
  224. - --py-version=3.7
  225. - --platform=windows
  226. - --include=requirements/windows.txt
  227. - requirements/static/pkg/windows.in
  228. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  229. # - id: pip-tools-compile
  230. # alias: compile-pkg-windows-3.8-zmq-requirements
  231. # name: Windows Packaging Py3.8 ZeroMQ Requirements
  232. # files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/windows\.in)$
  233. # pass_filenames: false
  234. # args:
  235. # - -v
  236. # - --py-version=3.8
  237. # - --platform=windows
  238. # - --include=requirements/windows.txt
  239. # - requirements/static/pkg/windows.in
  240. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  241. # - id: pip-tools-compile
  242. # alias: compile-pkg-windows-3.9-zmq-requirements
  243. # name: Windows Packaging Py3.9 ZeroMQ Requirements
  244. # files: ^requirements/((base|zeromq|crypto)\.txt|static/pkg/windows\.in)$
  245. # pass_filenames: false
  246. # args:
  247. # - -v
  248. # - --py-version=3.9
  249. # - --platform=windows
  250. # - --include=requirements/windows.txt
  251. # - requirements/static/pkg/windows.in
  252. # <---- Packaging Requirements -------------------------------------------------------------------------------------
  253. # ----- CI Requirements ------------------------------------------------------------------------------------------->
  254. - id: pip-tools-compile
  255. alias: compile-ci-linux-py3.5-zmq-requirements
  256. name: Linux CI Py3.5 ZeroMQ Requirements
  257. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/linux\.in)$
  258. pass_filenames: false
  259. args:
  260. - -v
  261. - --py-version=3.5
  262. - --platform=linux
  263. - --include=requirements/static/pkg/py{py_version}/linux.txt
  264. - --include=requirements/pytest.txt
  265. - requirements/static/ci/linux.in
  266. - id: pip-tools-compile
  267. alias: compile-ci-linux-py3.6-zmq-requirements
  268. name: Linux CI Py3.6 ZeroMQ Requirements
  269. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/linux\.in)$
  270. pass_filenames: false
  271. args:
  272. - -v
  273. - --py-version=3.6
  274. - --platform=linux
  275. - --include=requirements/static/pkg/py{py_version}/linux.txt
  276. - --include=requirements/pytest.txt
  277. - requirements/static/ci/linux.in
  278. - id: pip-tools-compile
  279. alias: compile-ci-linux-py3.7-zmq-requirements
  280. name: Linux CI Py3.7 ZeroMQ Requirements
  281. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/linux\.in)$
  282. pass_filenames: false
  283. args:
  284. - -v
  285. - --py-version=3.7
  286. - --platform=linux
  287. - --include=requirements/static/pkg/py{py_version}/linux.txt
  288. - --include=requirements/pytest.txt
  289. - requirements/static/ci/linux.in
  290. - id: pip-tools-compile
  291. alias: compile-ci-linux-py3.8-zmq-requirements
  292. name: Linux CI Py3.8 ZeroMQ Requirements
  293. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/linux\.in)$
  294. pass_filenames: false
  295. args:
  296. - -v
  297. - --py-version=3.8
  298. - --platform=linux
  299. - --include=requirements/static/pkg/py{py_version}/linux.txt
  300. - --include=requirements/pytest.txt
  301. - requirements/static/ci/linux.in
  302. - id: pip-tools-compile
  303. alias: compile-ci-linux-py3.9-zmq-requirements
  304. name: Linux CI Py3.9 ZeroMQ Requirements
  305. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/linux\.in)$
  306. pass_filenames: false
  307. args:
  308. - -v
  309. - --py-version=3.9
  310. - --platform=linux
  311. - --include=requirements/static/pkg/py{py_version}/linux.txt
  312. - --include=requirements/pytest.txt
  313. - requirements/static/ci/linux.in
  314. - id: pip-tools-compile
  315. alias: compile-ci-linux-crypto-py3.5-requirements
  316. name: Linux CI Py3.5 Crypto Requirements
  317. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  318. pass_filenames: false
  319. args:
  320. - -v
  321. - --py-version=3.5
  322. - --platform=linux
  323. - --out-prefix=linux
  324. - requirements/static/ci/crypto.in
  325. - id: pip-tools-compile
  326. alias: compile-ci-linux-crypto-py3.6-requirements
  327. name: Linux CI Py3.6 Crypto Requirements
  328. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  329. pass_filenames: false
  330. args:
  331. - -v
  332. - --py-version=3.6
  333. - --platform=linux
  334. - --out-prefix=linux
  335. - requirements/static/ci/crypto.in
  336. - id: pip-tools-compile
  337. alias: compile-ci-linux-crypto-py3.7-requirements
  338. name: Linux CI Py3.7 Crypto Requirements
  339. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  340. pass_filenames: false
  341. args:
  342. - -v
  343. - --py-version=3.7
  344. - --platform=linux
  345. - --out-prefix=linux
  346. - requirements/static/ci/crypto.in
  347. - id: pip-tools-compile
  348. alias: compile-ci-linux-crypto-py3.8-requirements
  349. name: Linux CI Py3.8 Crypto Requirements
  350. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  351. pass_filenames: false
  352. args:
  353. - -v
  354. - --py-version=3.8
  355. - --platform=linux
  356. - --out-prefix=linux
  357. - requirements/static/ci/crypto.in
  358. - id: pip-tools-compile
  359. alias: compile-ci-linux-crypto-py3.9-requirements
  360. name: Linux CI Py3.9 Crypto Requirements
  361. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  362. pass_filenames: false
  363. args:
  364. - -v
  365. - --py-version=3.9
  366. - --platform=linux
  367. - --out-prefix=linux
  368. - requirements/static/ci/crypto.in
  369. - id: pip-tools-compile
  370. alias: compile-ci-freebsd-py3.5-zmq-requirements
  371. name: FreeBSD CI Py3.5 ZeroMQ Requirements
  372. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/freebsd\.in)$
  373. pass_filenames: false
  374. args:
  375. - -v
  376. - --py-version=3.5
  377. - --platform=linux
  378. - --include=requirements/static/pkg/py{py_version}/freebsd.txt
  379. - --include=requirements/pytest.txt
  380. - requirements/static/ci/freebsd.in
  381. - id: pip-tools-compile
  382. alias: compile-ci-freebsd-py3.6-zmq-requirements
  383. name: FreeBSD CI Py3.6 ZeroMQ Requirements
  384. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/freebsd\.in)$
  385. pass_filenames: false
  386. args:
  387. - -v
  388. - --py-version=3.6
  389. - --platform=linux
  390. - --include=requirements/static/pkg/py{py_version}/freebsd.txt
  391. - --include=requirements/pytest.txt
  392. - requirements/static/ci/freebsd.in
  393. - id: pip-tools-compile
  394. alias: compile-ci-freebsd-py3.7-zmq-requirements
  395. name: FreeBSD CI Py3.7 ZeroMQ Requirements
  396. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/freebsd\.in)$
  397. pass_filenames: false
  398. args:
  399. - -v
  400. - --py-version=3.7
  401. - --platform=linux
  402. - --include=requirements/static/pkg/py{py_version}/freebsd.txt
  403. - --include=requirements/pytest.txt
  404. - requirements/static/ci/freebsd.in
  405. - id: pip-tools-compile
  406. alias: compile-ci-freebsd-py3.8-zmq-requirements
  407. name: FreeBSD CI Py3.8 ZeroMQ Requirements
  408. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/freebsd\.in)$
  409. pass_filenames: false
  410. args:
  411. - -v
  412. - --py-version=3.8
  413. - --platform=linux
  414. - --include=requirements/static/pkg/py{py_version}/freebsd.txt
  415. - --include=requirements/pytest.txt
  416. - requirements/static/ci/freebsd.in
  417. - id: pip-tools-compile
  418. alias: compile-ci-freebsd-py3.9-zmq-requirements
  419. name: FreeBSD CI Py3.9 ZeroMQ Requirements
  420. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/freebsd\.in)$
  421. pass_filenames: false
  422. args:
  423. - -v
  424. - --py-version=3.9
  425. - --platform=linux
  426. - --include=requirements/static/pkg/py{py_version}/freebsd.txt
  427. - --include=requirements/pytest.txt
  428. - requirements/static/ci/freebsd.in
  429. - id: pip-tools-compile
  430. alias: compile-ci-freebsd-crypto-py3.5-requirements
  431. name: FreeBSD CI Py3.5 Crypto Requirements
  432. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  433. pass_filenames: false
  434. args:
  435. - -v
  436. - --py-version=3.5
  437. - --platform=linux
  438. - --out-prefix=freebsd
  439. - requirements/static/ci/crypto.in
  440. - id: pip-tools-compile
  441. alias: compile-ci-freebsd-crypto-py3.6-requirements
  442. name: FreeBSD CI Py3.6 Crypto Requirements
  443. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  444. pass_filenames: false
  445. args:
  446. - -v
  447. - --py-version=3.6
  448. - --platform=linux
  449. - --out-prefix=freebsd
  450. - requirements/static/ci/crypto.in
  451. - id: pip-tools-compile
  452. alias: compile-ci-freebsd-crypto-py3.7-requirements
  453. name: FreeBSD CI Py3.7 Crypto Requirements
  454. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  455. pass_filenames: false
  456. args:
  457. - -v
  458. - --py-version=3.7
  459. - --platform=linux
  460. - --out-prefix=freebsd
  461. - requirements/static/ci/crypto.in
  462. - id: pip-tools-compile
  463. alias: compile-ci-freebsd-crypto-py3.8-requirements
  464. name: FreeBSD CI Py3.8 Crypto Requirements
  465. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  466. pass_filenames: false
  467. args:
  468. - -v
  469. - --py-version=3.8
  470. - --platform=linux
  471. - --out-prefix=freebsd
  472. - requirements/static/ci/crypto.in
  473. - id: pip-tools-compile
  474. alias: compile-ci-freebsd-crypto-py3.9-requirements
  475. name: FreeBSD CI Py3.9 Crypto Requirements
  476. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  477. pass_filenames: false
  478. args:
  479. - -v
  480. - --py-version=3.9
  481. - --platform=linux
  482. - --out-prefix=freebsd
  483. - requirements/static/ci/crypto.in
  484. - id: pip-tools-compile
  485. alias: compile-ci-darwin-py3.5-zmq-requirements
  486. name: Darwin CI Py3.5 ZeroMQ Requirements
  487. files: ^(pkg/osx/(req|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/ci/darwin\.in))$
  488. pass_filenames: false
  489. args:
  490. - -v
  491. - --py-version=3.5
  492. - --platform=darwin
  493. - --include=requirements/static/pkg/py{py_version}/darwin.txt
  494. - --include=requirements/pytest.txt
  495. - --passthrough-line-from-input=^pyobjc(.*)$
  496. - requirements/static/ci/darwin.in
  497. - id: pip-tools-compile
  498. alias: compile-ci-darwin-py3.6-zmq-requirements
  499. name: Darwin CI Py3.6 ZeroMQ Requirements
  500. files: ^(pkg/osx/(req|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/ci/darwin\.in))$
  501. pass_filenames: false
  502. args:
  503. - -v
  504. - --py-version=3.6
  505. - --platform=darwin
  506. - --include=requirements/static/pkg/py{py_version}/darwin.txt
  507. - --include=requirements/pytest.txt
  508. - --passthrough-line-from-input=^pyobjc(.*)$
  509. - requirements/static/ci/darwin.in
  510. - id: pip-tools-compile
  511. alias: compile-ci-darwin-py3.7-zmq-requirements
  512. name: Darwin CI Py3.7 ZeroMQ Requirements
  513. files: ^(pkg/osx/(req|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/ci/darwin\.in))$
  514. pass_filenames: false
  515. args:
  516. - -v
  517. - --py-version=3.7
  518. - --platform=darwin
  519. - --include=requirements/static/pkg/py{py_version}/darwin.txt
  520. - --include=requirements/pytest.txt
  521. - --passthrough-line-from-input=^pyobjc(.*)$
  522. - requirements/static/ci/darwin.in
  523. - id: pip-tools-compile
  524. alias: compile-ci-darwin-py3.8-zmq-requirements
  525. name: Darwin CI Py3.8 ZeroMQ Requirements
  526. files: ^(pkg/osx/(req|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/ci/darwin\.in))$
  527. pass_filenames: false
  528. args:
  529. - -v
  530. - --py-version=3.8
  531. - --platform=darwin
  532. - --include=requirements/static/pkg/py{py_version}/darwin.txt
  533. - --include=requirements/pytest.txt
  534. - --passthrough-line-from-input=^pyobjc(.*)$
  535. - requirements/static/ci/darwin.in
  536. - id: pip-tools-compile
  537. alias: compile-ci-darwin-py3.9-zmq-requirements
  538. name: Darwin CI Py3.9 ZeroMQ Requirements
  539. files: ^(pkg/osx/(req|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/ci/darwin\.in))$
  540. pass_filenames: false
  541. args:
  542. - -v
  543. - --py-version=3.9
  544. - --platform=darwin
  545. - --include=requirements/static/pkg/py{py_version}/darwin.txt
  546. - --include=requirements/pytest.txt
  547. - --passthrough-line-from-input=^pyobjc(.*)$
  548. - requirements/static/ci/darwin.in
  549. - id: pip-tools-compile
  550. alias: compile-ci-darwin-crypto-py3.5-requirements
  551. name: Darwin CI Py3.5 Crypto Requirements
  552. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  553. pass_filenames: false
  554. args:
  555. - -v
  556. - --py-version=3.5
  557. - --platform=darwin
  558. - --out-prefix=darwin
  559. - requirements/static/ci/crypto.in
  560. - id: pip-tools-compile
  561. alias: compile-ci-darwin-crypto-py3.6-requirements
  562. name: Darwin CI Py3.6 Crypto Requirements
  563. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  564. pass_filenames: false
  565. args:
  566. - -v
  567. - --py-version=3.6
  568. - --platform=darwin
  569. - --out-prefix=darwin
  570. - requirements/static/ci/crypto.in
  571. - id: pip-tools-compile
  572. alias: compile-ci-darwin-crypto-py3.7-requirements
  573. name: Darwin CI Py3.7 Crypto Requirements
  574. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  575. pass_filenames: false
  576. args:
  577. - -v
  578. - --py-version=3.7
  579. - --platform=darwin
  580. - --out-prefix=darwin
  581. - requirements/static/ci/crypto.in
  582. - id: pip-tools-compile
  583. alias: compile-ci-darwin-crypto-py3.8-requirements
  584. name: Darwin CI Py3.8 Crypto Requirements
  585. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  586. pass_filenames: false
  587. args:
  588. - -v
  589. - --py-version=3.8
  590. - --platform=darwin
  591. - --out-prefix=darwin
  592. - requirements/static/ci/crypto.in
  593. - id: pip-tools-compile
  594. alias: compile-ci-darwin-crypto-py3.9-requirements
  595. name: Darwin CI Py3.9 Crypto Requirements
  596. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  597. pass_filenames: false
  598. args:
  599. - -v
  600. - --py-version=3.9
  601. - --platform=darwin
  602. - --out-prefix=darwin
  603. - requirements/static/ci/crypto.in
  604. - id: pip-tools-compile
  605. alias: compile-ci-windows-py3.5-zmq-requirements
  606. name: Windows CI Py3.5 ZeroMQ Requirements
  607. files: requirements/((base|zeromq|pytest)\.txt|static/ci/windows\.in)$
  608. pass_filenames: false
  609. args:
  610. - -v
  611. - --py-version=3.5
  612. - --platform=windows
  613. - --include=requirements/static/pkg/py{py_version}/windows.txt
  614. - --include=requirements/pytest.txt
  615. - requirements/static/ci/windows.in
  616. - id: pip-tools-compile
  617. alias: compile-ci-windows-py3.6-zmq-requirements
  618. name: Windows CI Py3.6 ZeroMQ Requirements
  619. files: requirements/((base|zeromq|pytest)\.txt|static/ci/windows\.in)$
  620. pass_filenames: false
  621. args:
  622. - -v
  623. - --py-version=3.6
  624. - --platform=windows
  625. - --include=requirements/static/pkg/py{py_version}/windows.txt
  626. - --include=requirements/pytest.txt
  627. - requirements/static/ci/windows.in
  628. - id: pip-tools-compile
  629. alias: compile-ci-windows-py3.7-zmq-requirements
  630. name: Windows CI Py3.7 ZeroMQ Requirements
  631. files: requirements/((base|zeromq|pytest)\.txt|static/ci/windows\.in)$
  632. pass_filenames: false
  633. args:
  634. - -v
  635. - --py-version=3.7
  636. - --platform=windows
  637. - --include=requirements/static/pkg/py{py_version}/windows.txt
  638. - --include=requirements/pytest.txt
  639. - requirements/static/ci/windows.in
  640. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  641. # - id: pip-tools-compile
  642. # alias: compile-ci-windows-py3.8-zmq-requirements
  643. # name: Windows CI Py3.8 ZeroMQ Requirements
  644. # files: requirements/((base|zeromq|pytest)\.txt|static/ci/windows\.in)$
  645. # pass_filenames: false
  646. # args:
  647. # - -v
  648. # - --py-version=3.8
  649. # - --platform=windows
  650. # - --include=requirements/static/pkg/py{py_version}/windows.txt
  651. # - --include=requirements/pytest.txt
  652. # - requirements/static/ci/windows.in
  653. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  654. # - id: pip-tools-compile
  655. # alias: compile-ci-windows-py3.9-zmq-requirements
  656. # name: Windows CI Py3.9 ZeroMQ Requirements
  657. # files: requirements/((base|zeromq|pytest)\.txt|static/ci/windows\.in)$
  658. # pass_filenames: false
  659. # args:
  660. # - -v
  661. # - --py-version=3.9
  662. # - --platform=windows
  663. # - --include=requirements/static/pkg/py{py_version}/windows.txt
  664. # - --include=requirements/pytest.txt
  665. # - requirements/static/ci/windows.in
  666. - id: pip-tools-compile
  667. alias: compile-ci-windows-crypto-py3.5-requirements
  668. name: Windows CI Py3.5 Crypto Requirements
  669. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  670. pass_filenames: false
  671. args:
  672. - -v
  673. - --py-version=3.5
  674. - --platform=windows
  675. - --out-prefix=windows
  676. - requirements/static/ci/crypto.in
  677. - id: pip-tools-compile
  678. alias: compile-ci-windows-crypto-py3.6-requirements
  679. name: Windows CI Py3.6 Crypto Requirements
  680. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  681. pass_filenames: false
  682. args:
  683. - -v
  684. - --py-version=3.6
  685. - --platform=windows
  686. - --out-prefix=windows
  687. - requirements/static/ci/crypto.in
  688. - id: pip-tools-compile
  689. alias: compile-ci-windows-crypto-py3.7-requirements
  690. name: Windows CI Py3.7 Crypto Requirements
  691. files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  692. pass_filenames: false
  693. args:
  694. - -v
  695. - --py-version=3.7
  696. - --platform=windows
  697. - --out-prefix=windows
  698. - requirements/static/ci/crypto.in
  699. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  700. # - id: pip-tools-compile
  701. # alias: compile-ci-windows-crypto-py3.8-requirements
  702. # name: Windows CI Py3.8 Crypto Requirements
  703. # files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  704. # pass_filenames: false
  705. # args:
  706. # - -v
  707. # - --py-version=3.8
  708. # - --platform=windows
  709. # - --out-prefix=windows
  710. # - requirements/static/ci/crypto.in
  711. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  712. # - id: pip-tools-compile
  713. # alias: compile-ci-windows-crypto-py3.9-requirements
  714. # name: Windows CI Py3.9 Crypto Requirements
  715. # files: ^requirements/(crypto\.txt|static/ci/crypto\.in)$
  716. # pass_filenames: false
  717. # args:
  718. # - -v
  719. # - --py-version=3.9
  720. # - --platform=windows
  721. # - --out-prefix=windows
  722. # - requirements/static/ci/crypto.in
  723. # <---- CI Requirements --------------------------------------------------------------------------------------------
  724. # ----- Cloud CI Requirements ------------------------------------------------------------------------------------->
  725. - id: pip-tools-compile
  726. alias: compile-ci-cloud-py3.5-requirements
  727. name: Cloud CI Py3.5 Requirements
  728. files: ^requirements/(static/ci/cloud\.in)$
  729. pass_filenames: false
  730. args:
  731. - -v
  732. - --py-version=3.5
  733. - requirements/static/ci/cloud.in
  734. - id: pip-tools-compile
  735. alias: compile-ci-cloud-py3.6-requirements
  736. name: Cloud CI Py3.6 Requirements
  737. files: ^requirements/(static/ci/cloud\.in)$
  738. pass_filenames: false
  739. args:
  740. - -v
  741. - --py-version=3.6
  742. - requirements/static/ci/cloud.in
  743. - id: pip-tools-compile
  744. alias: compile-ci-cloud-py3.7-requirements
  745. name: Cloud CI Py3.7 Requirements
  746. files: ^requirements/(static/ci/cloud\.in)$
  747. pass_filenames: false
  748. args:
  749. - -v
  750. - --py-version=3.7
  751. - requirements/static/ci/cloud.in
  752. - id: pip-tools-compile
  753. alias: compile-ci-cloud-py3.8-requirements
  754. name: Cloud CI Py3.8 Requirements
  755. files: ^requirements/(static/ci/cloud\.in)$
  756. pass_filenames: false
  757. args:
  758. - -v
  759. - --py-version=3.8
  760. - requirements/static/ci/cloud.in
  761. - id: pip-tools-compile
  762. alias: compile-ci-cloud-py3.9-requirements
  763. name: Cloud CI Py3.9 Requirements
  764. files: ^requirements/(static/ci/cloud\.in)$
  765. pass_filenames: false
  766. args:
  767. - -v
  768. - --py-version=3.9
  769. - requirements/static/ci/cloud.in
  770. # <---- Cloud CI Requirements --------------------------------------------------------------------------------------
  771. # ----- Doc CI Requirements --------------------------------------------------------------------------------------->
  772. - id: pip-tools-compile
  773. alias: compile-doc-requirements
  774. name: Docs CI Py3.5 Requirements
  775. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/docs\.in)$
  776. pass_filenames: false
  777. args:
  778. - -v
  779. - --py-version=3.5
  780. - --platform=linux
  781. - requirements/static/ci/docs.in
  782. - id: pip-tools-compile
  783. alias: compile-doc-requirements
  784. name: Docs CI Py3.6 Requirements
  785. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/docs\.in)$
  786. pass_filenames: false
  787. args:
  788. - -v
  789. - --py-version=3.6
  790. - --platform=linux
  791. - requirements/static/ci/docs.in
  792. - id: pip-tools-compile
  793. alias: compile-doc-requirements
  794. name: Docs CI Py3.7 Requirements
  795. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/docs\.in)$
  796. pass_filenames: false
  797. args:
  798. - -v
  799. - --py-version=3.7
  800. - --platform=linux
  801. - requirements/static/ci/docs.in
  802. - id: pip-tools-compile
  803. alias: compile-doc-requirements
  804. name: Docs CI Py3.8 Requirements
  805. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/docs\.in)$
  806. pass_filenames: false
  807. args:
  808. - -v
  809. - --py-version=3.8
  810. - --platform=linux
  811. - requirements/static/ci/docs.in
  812. - id: pip-tools-compile
  813. alias: compile-doc-requirements
  814. name: Docs CI Py3.9 Requirements
  815. files: ^requirements/((base|zeromq|pytest)\.txt|static/ci/docs\.in)$
  816. pass_filenames: false
  817. args:
  818. - -v
  819. - --py-version=3.9
  820. - --platform=linux
  821. - requirements/static/ci/docs.in
  822. # <---- Doc CI Requirements ----------------------------------------------------------------------------------------
  823. # ----- Lint CI Requirements -------------------------------------------------------------------------------------->
  824. - id: pip-tools-compile
  825. alias: compile-ci-lint-py3.5-requirements
  826. name: Lint CI Py3.5 Requirements
  827. files: ^requirements/static/ci/lint\.in$
  828. pass_filenames: false
  829. args:
  830. - -v
  831. - --py-version=3.5
  832. - --platform=linux
  833. - requirements/static/ci/lint.in
  834. - id: pip-tools-compile
  835. alias: compile-ci-lint-py3.6-requirements
  836. name: Lint CI Py3.6 Requirements
  837. files: ^requirements/static/ci/lint\.in$
  838. pass_filenames: false
  839. args:
  840. - -v
  841. - --py-version=3.6
  842. - --platform=linux
  843. - requirements/static/ci/lint.in
  844. - id: pip-tools-compile
  845. alias: compile-ci-lint-py3.7-requirements
  846. name: Lint CI Py3.7 Requirements
  847. files: ^requirements/static/ci/lint\.in$
  848. pass_filenames: false
  849. args:
  850. - -v
  851. - --py-version=3.7
  852. - --platform=linux
  853. - requirements/static/ci/lint.in
  854. - id: pip-tools-compile
  855. alias: compile-ci-lint-py3.8-requirements
  856. name: Lint CI Py3.8 Requirements
  857. files: ^requirements/static/ci/lint\.in$
  858. pass_filenames: false
  859. args:
  860. - -v
  861. - --py-version=3.8
  862. - --platform=linux
  863. - requirements/static/ci/lint.in
  864. - id: pip-tools-compile
  865. alias: compile-ci-lint-py3.9-requirements
  866. name: Lint CI Py3.9 Requirements
  867. files: ^requirements/static/ci/lint\.in$
  868. pass_filenames: false
  869. args:
  870. - -v
  871. - --py-version=3.9
  872. - --platform=linux
  873. - requirements/static/ci/lint.in
  874. # <---- Lint CI Requirements ---------------------------------------------------------------------------------------
  875. # ----- Changelog ------------------------------------------------------------------------------------------------->
  876. - id: pip-tools-compile
  877. alias: compile-ci-changelog-py3.5-requirements
  878. name: Changelog CI Py3.5 Requirements
  879. files: ^requirements/static/ci/changelog\.in$
  880. pass_filenames: false
  881. args:
  882. - -v
  883. - --py-version=3.5
  884. - --platform=linux
  885. - requirements/static/ci/changelog.in
  886. - id: pip-tools-compile
  887. alias: compile-ci-changelog-py3.6-requirements
  888. name: Changelog CI Py3.6 Requirements
  889. files: ^requirements/static/ci/changelog\.in$
  890. pass_filenames: false
  891. args:
  892. - -v
  893. - --py-version=3.6
  894. - --platform=linux
  895. - requirements/static/ci/changelog.in
  896. - id: pip-tools-compile
  897. alias: compile-ci-changelog-py3.7-requirements
  898. name: Changelog CI Py3.7 Requirements
  899. files: ^requirements/static/ci/changelog\.in$
  900. pass_filenames: false
  901. args:
  902. - -v
  903. - --py-version=3.7
  904. - --platform=linux
  905. - requirements/static/ci/changelog.in
  906. - id: pip-tools-compile
  907. alias: compile-ci-changelog-py3.8-requirements
  908. name: Changelog CI Py3.8 Requirements
  909. files: ^requirements/static/ci/changelog\.in$
  910. pass_filenames: false
  911. args:
  912. - -v
  913. - --py-version=3.8
  914. - --platform=linux
  915. - requirements/static/ci/changelog.in
  916. - id: pip-tools-compile
  917. alias: compile-ci-changelog-py3.9-requirements
  918. name: Changelog CI Py3.9 Requirements
  919. files: ^requirements/static/ci/changelog\.in$
  920. pass_filenames: false
  921. args:
  922. - -v
  923. - --py-version=3.9
  924. - --platform=linux
  925. - requirements/static/ci/changelog.in
  926. # <---- Changelog --------------------------------------------------------------------------------------------------
  927. # ----- Invoke ---------------------------------------------------------------------------------------------------->
  928. - id: pip-tools-compile
  929. alias: compile-ci-invoke-py3.5-requirements
  930. name: Linux CI Py3.5 Invoke Requirements
  931. files: ^requirements/static/ci/invoke\.in$
  932. pass_filenames: false
  933. args:
  934. - -v
  935. - --py-version=3.5
  936. - requirements/static/ci/invoke.in
  937. - id: pip-tools-compile
  938. alias: compile-ci-invoke-py3.6-requirements
  939. name: Linux CI Py3.6 Invoke Requirements
  940. files: ^requirements/static/ci/invoke\.in$
  941. pass_filenames: false
  942. args:
  943. - -v
  944. - --py-version=3.6
  945. - requirements/static/ci/invoke.in
  946. - id: pip-tools-compile
  947. alias: compile-ci-invoke-py3.7-requirements
  948. name: Linux CI Py3.7 Invoke Requirements
  949. files: ^requirements/static/ci/invoke\.in$
  950. pass_filenames: false
  951. args:
  952. - -v
  953. - --py-version=3.7
  954. - requirements/static/ci/invoke.in
  955. - id: pip-tools-compile
  956. alias: compile-ci-invoke-py3.8-requirements
  957. name: Linux CI Py3.8 Invoke Requirements
  958. files: ^requirements/static/ci/invoke\.in$
  959. pass_filenames: false
  960. args:
  961. - -v
  962. - --py-version=3.8
  963. - requirements/static/ci/invoke.in
  964. - id: pip-tools-compile
  965. alias: compile-ci-invoke-py3.9-requirements
  966. name: Linux CI Py3.9 Invoke Requirements
  967. files: ^requirements/static/ci/invoke\.in$
  968. pass_filenames: false
  969. args:
  970. - -v
  971. - --py-version=3.9
  972. - requirements/static/ci/invoke.in
  973. # <---- Invoke -----------------------------------------------------------------------------------------------------
  974. # ----- Code Formatting ------------------------------------------------------------------------------------------->
  975. - repo: https://github.com/timothycrosley/isort
  976. rev: 5.0.7
  977. hooks:
  978. - id: isort
  979. additional_dependencies: ['toml']
  980. # This tells pre-commit not to pass files to isort.
  981. # This should be kept in sync with pyproject.toml
  982. exclude: >
  983. (?x)^(
  984. templates/.*|
  985. salt/ext/.*|
  986. tests/kitchen/.*
  987. )$
  988. - repo: https://github.com/psf/black
  989. rev: 19.10b0
  990. hooks:
  991. - id: black
  992. # This tells pre-commit not to pass files to black.
  993. # This should be kept in sync with pyproject.toml
  994. exclude: >
  995. (?x)^(
  996. templates/.*|
  997. salt/ext/.*|
  998. tests/kitchen/.*
  999. )$
  1000. - repo: https://github.com/asottile/blacken-docs
  1001. rev: v1.7.0
  1002. hooks:
  1003. - id: blacken-docs
  1004. args: [--skip-errors]
  1005. files: ^doc/.*\.rst
  1006. additional_dependencies: [black==19.10b0]
  1007. # <---- Code Formatting --------------------------------------------------------------------------------------------
  1008. # ----- Pre-Commit ------------------------------------------------------------------------------------------------>
  1009. - repo: https://github.com/saltstack/salt-nox-pre-commit
  1010. rev: 016340c5f2dc6e81e922eff6a20ee0384f407915
  1011. hooks:
  1012. - id: nox-py2
  1013. alias: lint-salt
  1014. name: Lint Salt
  1015. files: ^((setup|noxfile)|(salt|tasks)/.*)\.py$
  1016. args:
  1017. - -e
  1018. - lint-salt-pre-commit
  1019. - --
  1020. - repo: https://github.com/saltstack/salt-nox-pre-commit
  1021. rev: 016340c5f2dc6e81e922eff6a20ee0384f407915
  1022. hooks:
  1023. - id: nox-py2
  1024. alias: lint-tests
  1025. name: Lint Tests
  1026. files: ^tests/.*\.py$
  1027. args:
  1028. - -e
  1029. - lint-tests-pre-commit
  1030. - --
  1031. - repo: https://github.com/saltstack/salt-nox-pre-commit
  1032. rev: 016340c5f2dc6e81e922eff6a20ee0384f407915
  1033. hooks:
  1034. - id: nox-py2
  1035. alias: check-docs
  1036. name: Check Docs
  1037. files: ^(salt/.*\.py|doc/ref/.*\.rst)$
  1038. args:
  1039. - -e
  1040. - invoke-pre-commit
  1041. - --
  1042. - docs.check
  1043. - repo: https://github.com/saltstack/salt-nox-pre-commit
  1044. rev: 016340c5f2dc6e81e922eff6a20ee0384f407915
  1045. hooks:
  1046. - id: nox-py2
  1047. alias: check-filemap
  1048. name: Check Filename Map Change Matching
  1049. files: ^tests/filename_map\.yml$
  1050. pass_filenames: false
  1051. args:
  1052. - -e
  1053. - invoke-pre-commit
  1054. - --
  1055. - filemap.check
  1056. # <---- Pre-Commit -------------------------------------------------------------------------------------------------