1
0

.pre-commit-config.yaml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  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: master
  7. hooks:
  8. - id: pip-tools-compile
  9. alias: compile-linux-py3.5-zmq-requirements
  10. name: Linux Py3.5 ZeroMQ Requirements
  11. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  12. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  13. args:
  14. - -v
  15. - --py-version=3.5
  16. - --platform=linux
  17. - --include=requirements/base.txt
  18. - --include=requirements/zeromq.txt
  19. - --include=requirements/pytest.txt
  20. - id: pip-tools-compile
  21. alias: compile-linux-py3.6-zmq-requirements
  22. name: Linux Py3.6 ZeroMQ Requirements
  23. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  24. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  25. args:
  26. - -v
  27. - --py-version=3.6
  28. - --platform=linux
  29. - --include=requirements/base.txt
  30. - --include=requirements/zeromq.txt
  31. - --include=requirements/pytest.txt
  32. - id: pip-tools-compile
  33. alias: compile-linux-py3.7-zmq-requirements
  34. name: Linux Py3.7 ZeroMQ Requirements
  35. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  36. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  37. args:
  38. - -v
  39. - --py-version=3.7
  40. - --platform=linux
  41. - --include=requirements/base.txt
  42. - --include=requirements/zeromq.txt
  43. - --include=requirements/pytest.txt
  44. - id: pip-tools-compile
  45. alias: compile-linux-py3.8-zmq-requirements
  46. name: Linux Py3.8 ZeroMQ Requirements
  47. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  48. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  49. args:
  50. - -v
  51. - --py-version=3.8
  52. - --platform=linux
  53. - --include=requirements/base.txt
  54. - --include=requirements/zeromq.txt
  55. - --include=requirements/pytest.txt
  56. - id: pip-tools-compile
  57. alias: compile-linux-py3.9-zmq-requirements
  58. name: Linux Py3.9 ZeroMQ Requirements
  59. files: ^requirements/((base|zeromq|pytest)\.txt|static/linux\.in)$
  60. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  61. args:
  62. - -v
  63. - --py-version=3.9
  64. - --platform=linux
  65. - --include=requirements/base.txt
  66. - --include=requirements/zeromq.txt
  67. - --include=requirements/pytest.txt
  68. - id: pip-tools-compile
  69. alias: compile-linux-crypto-py3.5-requirements
  70. name: Linux Py3.5 Crypto Requirements
  71. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  72. args:
  73. - -v
  74. - --py-version=3.5
  75. - --platform=linux
  76. - --out-prefix=linux
  77. - id: pip-tools-compile
  78. alias: compile-linux-crypto-py3.6-requirements
  79. name: Linux Py3.6 Crypto Requirements
  80. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  81. args:
  82. - -v
  83. - --py-version=3.6
  84. - --platform=linux
  85. - --out-prefix=linux
  86. - id: pip-tools-compile
  87. alias: compile-linux-crypto-py3.7-requirements
  88. name: Linux Py3.7 Crypto Requirements
  89. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  90. args:
  91. - -v
  92. - --py-version=3.7
  93. - --platform=linux
  94. - --out-prefix=linux
  95. - id: pip-tools-compile
  96. alias: compile-linux-crypto-py3.8-requirements
  97. name: Linux Py3.8 Crypto Requirements
  98. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  99. args:
  100. - -v
  101. - --py-version=3.8
  102. - --platform=linux
  103. - --out-prefix=linux
  104. - id: pip-tools-compile
  105. alias: compile-linux-crypto-py3.9-requirements
  106. name: Linux Py3.9 Crypto Requirements
  107. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  108. args:
  109. - -v
  110. - --py-version=3.9
  111. - --platform=linux
  112. - --out-prefix=linux
  113. - id: pip-tools-compile
  114. alias: compile-freebsd-py3.5-zmq-requirements
  115. name: FreeBSD Py3.5 ZeroMQ Requirements
  116. files: ^requirements/((base|zeromq|pytest)\.txt|static/freebsd\.in)$
  117. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  118. args:
  119. - -v
  120. - --py-version=3.5
  121. - --platform=linux
  122. - --include=requirements/base.txt
  123. - --include=requirements/zeromq.txt
  124. - --include=requirements/pytest.txt
  125. - id: pip-tools-compile
  126. alias: compile-freebsd-py3.6-zmq-requirements
  127. name: FreeBSD Py3.6 ZeroMQ Requirements
  128. files: ^requirements/((base|zeromq|pytest)\.txt|static/freebsd\.in)$
  129. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  130. args:
  131. - -v
  132. - --py-version=3.6
  133. - --platform=linux
  134. - --include=requirements/base.txt
  135. - --include=requirements/zeromq.txt
  136. - --include=requirements/pytest.txt
  137. - id: pip-tools-compile
  138. alias: compile-freebsd-py3.7-zmq-requirements
  139. name: FreeBSD Py3.7 ZeroMQ Requirements
  140. files: ^requirements/((base|zeromq|pytest)\.txt|static/freebsd\.in)$
  141. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  142. args:
  143. - -v
  144. - --py-version=3.7
  145. - --platform=linux
  146. - --include=requirements/base.txt
  147. - --include=requirements/zeromq.txt
  148. - --include=requirements/pytest.txt
  149. - id: pip-tools-compile
  150. alias: compile-freebsd-py3.8-zmq-requirements
  151. name: FreeBSD Py3.8 ZeroMQ Requirements
  152. files: ^requirements/((base|zeromq|pytest)\.txt|static/freebsd\.in)$
  153. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  154. args:
  155. - -v
  156. - --py-version=3.8
  157. - --platform=linux
  158. - --include=requirements/base.txt
  159. - --include=requirements/zeromq.txt
  160. - --include=requirements/pytest.txt
  161. - id: pip-tools-compile
  162. alias: compile-freebsd-py3.9-zmq-requirements
  163. name: FreeBSD Py3.9 ZeroMQ Requirements
  164. files: ^requirements/((base|zeromq|pytest)\.txt|static/freebsd\.in)$
  165. exclude: ^requirements/static/(centos-6|amzn-2018\.03|lint|cloud|docs|darwin|windows)\.in$
  166. args:
  167. - -v
  168. - --py-version=3.9
  169. - --platform=linux
  170. - --include=requirements/base.txt
  171. - --include=requirements/zeromq.txt
  172. - --include=requirements/pytest.txt
  173. - id: pip-tools-compile
  174. alias: compile-freebsd-crypto-py3.5-requirements
  175. name: FreeBSD Py3.5 Crypto Requirements
  176. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  177. args:
  178. - -v
  179. - --py-version=3.5
  180. - --platform=linux
  181. - --out-prefix=freebsd
  182. - id: pip-tools-compile
  183. alias: compile-freebsd-crypto-py3.6-requirements
  184. name: FreeBSD Py3.6 Crypto Requirements
  185. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  186. args:
  187. - -v
  188. - --py-version=3.6
  189. - --platform=linux
  190. - --out-prefix=freebsd
  191. - id: pip-tools-compile
  192. alias: compile-freebsd-crypto-py3.7-requirements
  193. name: FreeBSD Py3.7 Crypto Requirements
  194. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  195. args:
  196. - -v
  197. - --py-version=3.7
  198. - --platform=linux
  199. - --out-prefix=freebsd
  200. - id: pip-tools-compile
  201. alias: compile-freebsd-crypto-py3.8-requirements
  202. name: FreeBSD Py3.8 Crypto Requirements
  203. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  204. args:
  205. - -v
  206. - --py-version=3.8
  207. - --platform=linux
  208. - --out-prefix=freebsd
  209. - id: pip-tools-compile
  210. alias: compile-freebsd-crypto-py3.9-requirements
  211. name: FreeBSD Py3.9 Crypto Requirements
  212. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  213. args:
  214. - -v
  215. - --py-version=3.9
  216. - --platform=linux
  217. - --out-prefix=freebsd
  218. - id: pip-tools-compile
  219. alias: compile-darwin-py3.5-zmq-requirements
  220. name: Darwin Py3.5 ZeroMQ Requirements
  221. files: ^(pkg/osx/(req|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  222. args:
  223. - -v
  224. - --py-version=3.5
  225. - --platform=darwin
  226. - --include=pkg/osx/req.txt
  227. - --include=pkg/osx/req_pyobjc.txt
  228. - --include=requirements/base.txt
  229. - --include=requirements/zeromq.txt
  230. - --include=requirements/pytest.txt
  231. - --passthrough-line-from-input=^pyobjc(.*)$
  232. - id: pip-tools-compile
  233. alias: compile-darwin-py3.6-zmq-requirements
  234. name: Darwin Py3.6 ZeroMQ Requirements
  235. files: ^(pkg/osx/(req|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  236. args:
  237. - -v
  238. - --py-version=3.6
  239. - --platform=darwin
  240. - --include=pkg/osx/req.txt
  241. - --include=pkg/osx/req_pyobjc.txt
  242. - --include=requirements/base.txt
  243. - --include=requirements/zeromq.txt
  244. - --include=requirements/pytest.txt
  245. - --passthrough-line-from-input=^pyobjc(.*)$
  246. - id: pip-tools-compile
  247. alias: compile-darwin-py3.7-zmq-requirements
  248. name: Darwin Py3.7 ZeroMQ Requirements
  249. files: ^(pkg/osx/(req|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  250. args:
  251. - -v
  252. - --py-version=3.7
  253. - --platform=darwin
  254. - --include=pkg/osx/req.txt
  255. - --include=pkg/osx/req_pyobjc.txt
  256. - --include=requirements/base.txt
  257. - --include=requirements/zeromq.txt
  258. - --include=requirements/pytest.txt
  259. - --passthrough-line-from-input=^pyobjc(.*)$
  260. - id: pip-tools-compile
  261. alias: compile-darwin-py3.8-zmq-requirements
  262. name: Darwin Py3.8 ZeroMQ Requirements
  263. files: ^(pkg/osx/(req|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  264. args:
  265. - -v
  266. - --py-version=3.8
  267. - --platform=darwin
  268. - --include=pkg/osx/req.txt
  269. - --include=requirements/base.txt
  270. - --include=requirements/zeromq.txt
  271. - --include=requirements/pytest.txt
  272. - --passthrough-line-from-input=^pyobjc(.*)$
  273. - id: pip-tools-compile
  274. alias: compile-darwin-py3.9-zmq-requirements
  275. name: Darwin Py3.9 ZeroMQ Requirements
  276. files: ^(pkg/osx/(req|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  277. args:
  278. - -v
  279. - --py-version=3.9
  280. - --platform=darwin
  281. - --include=pkg/osx/req.txt
  282. - --include=requirements/base.txt
  283. - --include=requirements/zeromq.txt
  284. - --include=requirements/pytest.txt
  285. - --passthrough-line-from-input=^pyobjc(.*)$
  286. - id: pip-tools-compile
  287. alias: compile-darwin-crypto-py3.5-requirements
  288. name: Darwin Py3.5 Crypto Requirements
  289. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  290. args:
  291. - -v
  292. - --py-version=3.5
  293. - --platform=darwin
  294. - --out-prefix=darwin
  295. - id: pip-tools-compile
  296. alias: compile-darwin-crypto-py3.6-requirements
  297. name: Darwin Py3.6 Crypto Requirements
  298. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  299. args:
  300. - -v
  301. - --py-version=3.6
  302. - --platform=darwin
  303. - --out-prefix=darwin
  304. - id: pip-tools-compile
  305. alias: compile-darwin-crypto-py3.7-requirements
  306. name: Darwin Py3.7 Crypto Requirements
  307. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  308. args:
  309. - -v
  310. - --py-version=3.7
  311. - --platform=darwin
  312. - --out-prefix=darwin
  313. - id: pip-tools-compile
  314. alias: compile-darwin-crypto-py3.8-requirements
  315. name: Darwin Py3.8 Crypto Requirements
  316. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  317. args:
  318. - -v
  319. - --py-version=3.8
  320. - --platform=darwin
  321. - --out-prefix=darwin
  322. - id: pip-tools-compile
  323. alias: compile-darwin-crypto-py3.9-requirements
  324. name: Darwin Py3.9 Crypto Requirements
  325. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  326. args:
  327. - -v
  328. - --py-version=3.9
  329. - --platform=darwin
  330. - --out-prefix=darwin
  331. - id: pip-tools-compile
  332. alias: compile-windows-py3.5-zmq-requirements
  333. name: Windows Py3.5 ZeroMQ Requirements
  334. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  335. args:
  336. - -v
  337. - --py-version=3.5
  338. - --platform=windows
  339. - --include=pkg/windows/req.txt
  340. - --include=pkg/windows/req_win.txt
  341. - --include=requirements/base.txt
  342. - --include=requirements/zeromq.txt
  343. - --include=requirements/pytest.txt
  344. - id: pip-tools-compile
  345. alias: compile-windows-py3.6-zmq-requirements
  346. name: Windows Py3.6 ZeroMQ Requirements
  347. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  348. args:
  349. - -v
  350. - --py-version=3.6
  351. - --platform=windows
  352. - --include=pkg/windows/req.txt
  353. - --include=pkg/windows/req_win.txt
  354. - --include=requirements/base.txt
  355. - --include=requirements/zeromq.txt
  356. - --include=requirements/pytest.txt
  357. - id: pip-tools-compile
  358. alias: compile-windows-py3.7-zmq-requirements
  359. name: Windows Py3.7 ZeroMQ Requirements
  360. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  361. args:
  362. - -v
  363. - --py-version=3.7
  364. - --platform=windows
  365. - --include=pkg/windows/req.txt
  366. - --include=pkg/windows/req_win.txt
  367. - --include=requirements/base.txt
  368. - --include=requirements/zeromq.txt
  369. - --include=requirements/pytest.txt
  370. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  371. # - id: pip-tools-compile
  372. # alias: compile-windows-py3.8-zmq-requirements
  373. # name: Windows Py3.8 ZeroMQ Requirements
  374. # files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  375. # args:
  376. # - -v
  377. # - --py-version=3.8
  378. # - --platform=windows
  379. # - --include=pkg/windows/req.txt
  380. # - --include=pkg/windows/req_win.txt
  381. # - --include=requirements/base.txt
  382. # - --include=requirements/zeromq.txt
  383. # - --include=requirements/pytest.txt
  384. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  385. # - id: pip-tools-compile
  386. # alias: compile-windows-py3.9-zmq-requirements
  387. # name: Windows Py3.9 ZeroMQ Requirements
  388. # files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  389. # args:
  390. # - -v
  391. # - --py-version=3.9
  392. # - --platform=windows
  393. # - --include=pkg/windows/req.txt
  394. # - --include=pkg/windows/req_win.txt
  395. # - --include=requirements/base.txt
  396. # - --include=requirements/zeromq.txt
  397. # - --include=requirements/pytest.txt
  398. - id: pip-tools-compile
  399. alias: compile-windows-crypto-py3.5-requirements
  400. name: Windows Py3.5 Crypto Requirements
  401. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  402. args:
  403. - -v
  404. - --py-version=3.5
  405. - --platform=windows
  406. - --out-prefix=windows
  407. - id: pip-tools-compile
  408. alias: compile-windows-crypto-py3.6-requirements
  409. name: Windows Py3.6 Crypto Requirements
  410. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  411. args:
  412. - -v
  413. - --py-version=3.6
  414. - --platform=windows
  415. - --out-prefix=windows
  416. - id: pip-tools-compile
  417. alias: compile-windows-crypto-py3.7-requirements
  418. name: Windows Py3.7 Crypto Requirements
  419. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  420. args:
  421. - -v
  422. - --py-version=3.7
  423. - --platform=windows
  424. - --out-prefix=windows
  425. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  426. # - id: pip-tools-compile
  427. # alias: compile-windows-crypto-py3.8-requirements
  428. # name: Windows Py3.8 Crypto Requirements
  429. # files: ^requirements/(crypto\.txt|static/crypto\.in)$
  430. # args:
  431. # - -v
  432. # - --py-version=3.8
  433. # - --platform=windows
  434. # - --out-prefix=windows
  435. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  436. # - id: pip-tools-compile
  437. # alias: compile-windows-crypto-py3.9-requirements
  438. # name: Windows Py3.9 Crypto Requirements
  439. # files: ^requirements/(crypto\.txt|static/crypto\.in)$
  440. # args:
  441. # - -v
  442. # - --py-version=3.9
  443. # - --platform=windows
  444. # - --out-prefix=windows
  445. - id: pip-tools-compile
  446. alias: compile-doc-requirements
  447. name: Docs Py3.5 Requirements
  448. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  449. args:
  450. - -v
  451. - --py-version=3.5
  452. - --platform=linux
  453. - id: pip-tools-compile
  454. alias: compile-doc-requirements
  455. name: Docs Py3.6 Requirements
  456. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  457. args:
  458. - -v
  459. - --py-version=3.6
  460. - --platform=linux
  461. - id: pip-tools-compile
  462. alias: compile-doc-requirements
  463. name: Docs Py3.7 Requirements
  464. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  465. args:
  466. - -v
  467. - --py-version=3.7
  468. - --platform=linux
  469. - id: pip-tools-compile
  470. alias: compile-doc-requirements
  471. name: Docs Py3.8 Requirements
  472. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  473. args:
  474. - -v
  475. - --py-version=3.8
  476. - --platform=linux
  477. - id: pip-tools-compile
  478. alias: compile-doc-requirements
  479. name: Docs Py3.9 Requirements
  480. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  481. args:
  482. - -v
  483. - --py-version=3.9
  484. - --platform=linux
  485. - id: pip-tools-compile
  486. alias: compile-lint-py3.5-requirements
  487. name: Lint Py3.5 Requirements
  488. files: ^requirements/static/lint\.in$
  489. args:
  490. - -v
  491. - --py-version=3.5
  492. - --platform=linux
  493. - id: pip-tools-compile
  494. alias: compile-lint-py3.6-requirements
  495. name: Lint Py3.6 Requirements
  496. files: ^requirements/static/lint\.in$
  497. args:
  498. - -v
  499. - --py-version=3.6
  500. - --platform=linux
  501. - id: pip-tools-compile
  502. alias: compile-lint-py3.7-requirements
  503. name: Lint Py3.7 Requirements
  504. files: ^requirements/static/lint\.in$
  505. args:
  506. - -v
  507. - --py-version=3.7
  508. - --platform=linux
  509. - id: pip-tools-compile
  510. alias: compile-lint-py3.8-requirements
  511. name: Lint Py3.8 Requirements
  512. files: ^requirements/static/lint\.in$
  513. args:
  514. - -v
  515. - --py-version=3.8
  516. - --platform=linux
  517. - id: pip-tools-compile
  518. alias: compile-lint-py3.9-requirements
  519. name: Lint Py3.9 Requirements
  520. files: ^requirements/static/lint\.in$
  521. args:
  522. - -v
  523. - --py-version=3.9
  524. - --platform=linux
  525. - id: pip-tools-compile
  526. alias: compile-cloud-py3.5-requirements
  527. name: Cloud Py3.5 Requirements
  528. files: ^requirements/(static/cloud\.in)$
  529. args:
  530. - -v
  531. - --py-version=3.5
  532. - id: pip-tools-compile
  533. alias: compile-cloud-py3.6-requirements
  534. name: Cloud Py3.6 Requirements
  535. files: ^requirements/(static/cloud\.in)$
  536. args:
  537. - -v
  538. - --py-version=3.6
  539. - id: pip-tools-compile
  540. alias: compile-cloud-py3.7-requirements
  541. name: Cloud Py3.7 Requirements
  542. files: ^requirements/(static/cloud\.in)$
  543. args:
  544. - -v
  545. - --py-version=3.7
  546. - id: pip-tools-compile
  547. alias: compile-cloud-py3.8-requirements
  548. name: Cloud Py3.8 Requirements
  549. files: ^requirements/(static/cloud\.in)$
  550. args:
  551. - -v
  552. - --py-version=3.8
  553. - id: pip-tools-compile
  554. alias: compile-cloud-py3.9-requirements
  555. name: Cloud Py3.9 Requirements
  556. files: ^requirements/(static/cloud\.in)$
  557. args:
  558. - -v
  559. - --py-version=3.9
  560. - id: pip-tools-compile
  561. alias: compile-changelog-requirements
  562. name: Changelog Py3.5 Requirements
  563. files: ^requirements/static/changelog\.in$
  564. args:
  565. - -v
  566. - --py-version=3.5
  567. - --platform=linux
  568. - id: pip-tools-compile
  569. alias: compile-changelog-requirements
  570. name: Changelog Py3.6 Requirements
  571. files: ^requirements/static/changelog\.in$
  572. args:
  573. - -v
  574. - --py-version=3.6
  575. - --platform=linux
  576. - id: pip-tools-compile
  577. alias: compile-changelog-requirements
  578. name: Changelog Py3.7 Requirements
  579. files: ^requirements/static/changelog\.in$
  580. args:
  581. - -v
  582. - --py-version=3.7
  583. - --platform=linux
  584. # ----- Invoke ---------------------------------------------------------------------------------------------------->
  585. - id: pip-tools-compile
  586. alias: compile-py3.5-invoke-requirements
  587. name: Linux Py3.5 Invoke Requirements
  588. files: ^requirements/static/invoke\.in$
  589. args:
  590. - -v
  591. - --py-version=3.5
  592. - id: pip-tools-compile
  593. alias: compile-py3.6-invoke-requirements
  594. name: Linux Py3.6 Invoke Requirements
  595. files: ^requirements/static/invoke\.in$
  596. args:
  597. - -v
  598. - --py-version=3.6
  599. - id: pip-tools-compile
  600. alias: compile-py3.7-invoke-requirements
  601. name: Linux Py3.7 Invoke Requirements
  602. files: ^requirements/static/invoke\.in$
  603. args:
  604. - -v
  605. - --py-version=3.7
  606. - id: pip-tools-compile
  607. alias: compile-py3.8-invoke-requirements
  608. name: Linux Py3.8 Invoke Requirements
  609. files: ^requirements/static/invoke\.in$
  610. args:
  611. - -v
  612. - --py-version=3.8
  613. - id: pip-tools-compile
  614. alias: compile-py3.9-invoke-requirements
  615. name: Linux Py3.9 Invoke Requirements
  616. files: ^requirements/static/invoke\.in$
  617. args:
  618. - -v
  619. - --py-version=3.9
  620. # <---- Invoke -----------------------------------------------------------------------------------------------------
  621. - repo: https://github.com/timothycrosley/isort
  622. rev: "1e78a9acf3110e1f9721feb591f89a451fc9876a"
  623. hooks:
  624. - id: isort
  625. additional_dependencies: ['toml']
  626. # This tells pre-commit not to pass files to isort.
  627. # This should be kept in sync with pyproject.toml
  628. exclude: >
  629. (?x)^(
  630. templates/.*|
  631. salt/ext/.*|
  632. tests/kitchen/.*
  633. )$
  634. - repo: https://github.com/psf/black
  635. rev: 19.10b0
  636. hooks:
  637. - id: black
  638. # This tells pre-commit not to pass files to black.
  639. # This should be kept in sync with pyproject.toml
  640. exclude: >
  641. (?x)^(
  642. templates/.*|
  643. salt/ext/.*|
  644. tests/kitchen/.*
  645. )$
  646. - repo: https://github.com/asottile/blacken-docs
  647. rev: v1.7.0
  648. hooks:
  649. - id: blacken-docs
  650. args: [--skip-errors]
  651. files: ^doc/.*\.rst
  652. additional_dependencies: [black==19.10b0]
  653. - repo: https://github.com/saltstack/salt-nox-pre-commit
  654. rev: master
  655. hooks:
  656. - id: nox-py2
  657. alias: lint-salt
  658. name: Lint Salt
  659. files: ^((setup|noxfile)|(salt|tasks)/.*)\.py$
  660. args:
  661. - -e
  662. - lint-salt-pre-commit
  663. - --
  664. - repo: https://github.com/saltstack/salt-nox-pre-commit
  665. rev: master
  666. hooks:
  667. - id: nox-py2
  668. alias: lint-tests
  669. name: Lint Tests
  670. files: ^tests/.*\.py$
  671. args:
  672. - -e
  673. - lint-tests-pre-commit
  674. - --
  675. - repo: https://github.com/saltstack/salt-nox-pre-commit
  676. rev: master
  677. hooks:
  678. - id: nox-py2
  679. alias: check-docs
  680. name: Check Docs
  681. files: ^(salt/.*\.py|doc/ref/.*\.rst)$
  682. args:
  683. - -e
  684. - invoke-pre-commit
  685. - --
  686. - docs.check
  687. - repo: https://github.com/saltstack/salt-nox-pre-commit
  688. rev: master
  689. hooks:
  690. - id: nox-py2
  691. alias: check-filemap
  692. name: Check Filename Map Change Matching
  693. files: ^tests/filename_map\.yml$
  694. pass_filenames: false
  695. args:
  696. - -e
  697. - invoke-pre-commit
  698. - --
  699. - filemap.check