.pre-commit-config.yaml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  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_ext|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_ext.txt
  228. - --include=pkg/osx/req_pyobjc.txt
  229. - --include=requirements/base.txt
  230. - --include=requirements/zeromq.txt
  231. - --include=requirements/pytest.txt
  232. - --passthrough-line-from-input=^pyobjc(.*)$
  233. - id: pip-tools-compile
  234. alias: compile-darwin-py3.6-zmq-requirements
  235. name: Darwin Py3.6 ZeroMQ Requirements
  236. files: ^(pkg/osx/(req|req_ext|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  237. args:
  238. - -v
  239. - --py-version=3.6
  240. - --platform=darwin
  241. - --include=pkg/osx/req.txt
  242. - --include=pkg/osx/req_ext.txt
  243. - --include=pkg/osx/req_pyobjc.txt
  244. - --include=requirements/base.txt
  245. - --include=requirements/zeromq.txt
  246. - --include=requirements/pytest.txt
  247. - --passthrough-line-from-input=^pyobjc(.*)$
  248. - id: pip-tools-compile
  249. alias: compile-darwin-py3.7-zmq-requirements
  250. name: Darwin Py3.7 ZeroMQ Requirements
  251. files: ^(pkg/osx/(req|req_ext|req_pyobjc)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  252. args:
  253. - -v
  254. - --py-version=3.7
  255. - --platform=darwin
  256. - --include=pkg/osx/req.txt
  257. - --include=pkg/osx/req_ext.txt
  258. - --include=pkg/osx/req_pyobjc.txt
  259. - --include=requirements/base.txt
  260. - --include=requirements/zeromq.txt
  261. - --include=requirements/pytest.txt
  262. - --passthrough-line-from-input=^pyobjc(.*)$
  263. - id: pip-tools-compile
  264. alias: compile-darwin-py3.8-zmq-requirements
  265. name: Darwin Py3.8 ZeroMQ Requirements
  266. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  267. args:
  268. - -v
  269. - --py-version=3.8
  270. - --platform=darwin
  271. - --include=pkg/osx/req.txt
  272. - --include=pkg/osx/req_ext.txt
  273. - --include=requirements/base.txt
  274. - --include=requirements/zeromq.txt
  275. - --include=requirements/pytest.txt
  276. - --passthrough-line-from-input=^pyobjc(.*)$
  277. - id: pip-tools-compile
  278. alias: compile-darwin-py3.9-zmq-requirements
  279. name: Darwin Py3.9 ZeroMQ Requirements
  280. files: ^(pkg/osx/(req|req_ext)\.txt|requirements/((base|zeromq|pytest)\.txt|static/darwin\.in))$
  281. args:
  282. - -v
  283. - --py-version=3.9
  284. - --platform=darwin
  285. - --include=pkg/osx/req.txt
  286. - --include=pkg/osx/req_ext.txt
  287. - --include=requirements/base.txt
  288. - --include=requirements/zeromq.txt
  289. - --include=requirements/pytest.txt
  290. - --passthrough-line-from-input=^pyobjc(.*)$
  291. - id: pip-tools-compile
  292. alias: compile-darwin-crypto-py3.5-requirements
  293. name: Darwin Py3.5 Crypto Requirements
  294. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  295. args:
  296. - -v
  297. - --py-version=3.5
  298. - --platform=darwin
  299. - --out-prefix=darwin
  300. - id: pip-tools-compile
  301. alias: compile-darwin-crypto-py3.6-requirements
  302. name: Darwin Py3.6 Crypto Requirements
  303. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  304. args:
  305. - -v
  306. - --py-version=3.6
  307. - --platform=darwin
  308. - --out-prefix=darwin
  309. - id: pip-tools-compile
  310. alias: compile-darwin-crypto-py3.7-requirements
  311. name: Darwin Py3.7 Crypto Requirements
  312. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  313. args:
  314. - -v
  315. - --py-version=3.7
  316. - --platform=darwin
  317. - --out-prefix=darwin
  318. - id: pip-tools-compile
  319. alias: compile-darwin-crypto-py3.8-requirements
  320. name: Darwin Py3.8 Crypto Requirements
  321. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  322. args:
  323. - -v
  324. - --py-version=3.8
  325. - --platform=darwin
  326. - --out-prefix=darwin
  327. - id: pip-tools-compile
  328. alias: compile-darwin-crypto-py3.9-requirements
  329. name: Darwin Py3.9 Crypto Requirements
  330. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  331. args:
  332. - -v
  333. - --py-version=3.9
  334. - --platform=darwin
  335. - --out-prefix=darwin
  336. - id: pip-tools-compile
  337. alias: compile-windows-py3.5-zmq-requirements
  338. name: Windows Py3.5 ZeroMQ Requirements
  339. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  340. args:
  341. - -v
  342. - --py-version=3.5
  343. - --platform=windows
  344. - --include=pkg/windows/req.txt
  345. - --include=pkg/windows/req_win.txt
  346. - --include=requirements/base.txt
  347. - --include=requirements/zeromq.txt
  348. - --include=requirements/pytest.txt
  349. - id: pip-tools-compile
  350. alias: compile-windows-py3.6-zmq-requirements
  351. name: Windows Py3.6 ZeroMQ Requirements
  352. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  353. args:
  354. - -v
  355. - --py-version=3.6
  356. - --platform=windows
  357. - --include=pkg/windows/req.txt
  358. - --include=pkg/windows/req_win.txt
  359. - --include=requirements/base.txt
  360. - --include=requirements/zeromq.txt
  361. - --include=requirements/pytest.txt
  362. - id: pip-tools-compile
  363. alias: compile-windows-py3.7-zmq-requirements
  364. name: Windows Py3.7 ZeroMQ Requirements
  365. files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  366. args:
  367. - -v
  368. - --py-version=3.7
  369. - --platform=windows
  370. - --include=pkg/windows/req.txt
  371. - --include=pkg/windows/req_win.txt
  372. - --include=requirements/base.txt
  373. - --include=requirements/zeromq.txt
  374. - --include=requirements/pytest.txt
  375. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  376. # - id: pip-tools-compile
  377. # alias: compile-windows-py3.8-zmq-requirements
  378. # name: Windows Py3.8 ZeroMQ Requirements
  379. # files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  380. # args:
  381. # - -v
  382. # - --py-version=3.8
  383. # - --platform=windows
  384. # - --include=pkg/windows/req.txt
  385. # - --include=pkg/windows/req_win.txt
  386. # - --include=requirements/base.txt
  387. # - --include=requirements/zeromq.txt
  388. # - --include=requirements/pytest.txt
  389. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  390. # - id: pip-tools-compile
  391. # alias: compile-windows-py3.9-zmq-requirements
  392. # name: Windows Py3.9 ZeroMQ Requirements
  393. # files: ^(pkg/windows/(req|req_win)\.txt|requirements/((base|zeromq|pytest)\.txt|static/windows\.in))$
  394. # args:
  395. # - -v
  396. # - --py-version=3.9
  397. # - --platform=windows
  398. # - --include=pkg/windows/req.txt
  399. # - --include=pkg/windows/req_win.txt
  400. # - --include=requirements/base.txt
  401. # - --include=requirements/zeromq.txt
  402. # - --include=requirements/pytest.txt
  403. - id: pip-tools-compile
  404. alias: compile-windows-crypto-py3.5-requirements
  405. name: Windows Py3.5 Crypto Requirements
  406. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  407. args:
  408. - -v
  409. - --py-version=3.5
  410. - --platform=windows
  411. - --out-prefix=windows
  412. - id: pip-tools-compile
  413. alias: compile-windows-crypto-py3.6-requirements
  414. name: Windows Py3.6 Crypto Requirements
  415. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  416. args:
  417. - -v
  418. - --py-version=3.6
  419. - --platform=windows
  420. - --out-prefix=windows
  421. - id: pip-tools-compile
  422. alias: compile-windows-crypto-py3.7-requirements
  423. name: Windows Py3.7 Crypto Requirements
  424. files: ^requirements/(crypto\.txt|static/crypto\.in)$
  425. args:
  426. - -v
  427. - --py-version=3.7
  428. - --platform=windows
  429. - --out-prefix=windows
  430. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  431. # - id: pip-tools-compile
  432. # alias: compile-windows-crypto-py3.8-requirements
  433. # name: Windows Py3.8 Crypto Requirements
  434. # files: ^requirements/(crypto\.txt|static/crypto\.in)$
  435. # args:
  436. # - -v
  437. # - --py-version=3.8
  438. # - --platform=windows
  439. # - --out-prefix=windows
  440. # Commented out since pywin32 and pymssql do not have packages or support for Py >= 3.8
  441. # - id: pip-tools-compile
  442. # alias: compile-windows-crypto-py3.9-requirements
  443. # name: Windows Py3.9 Crypto Requirements
  444. # files: ^requirements/(crypto\.txt|static/crypto\.in)$
  445. # args:
  446. # - -v
  447. # - --py-version=3.9
  448. # - --platform=windows
  449. # - --out-prefix=windows
  450. - id: pip-tools-compile
  451. alias: compile-doc-requirements
  452. name: Docs Py3.5 Requirements
  453. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  454. args:
  455. - -v
  456. - --py-version=3.5
  457. - --platform=linux
  458. - id: pip-tools-compile
  459. alias: compile-doc-requirements
  460. name: Docs Py3.6 Requirements
  461. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  462. args:
  463. - -v
  464. - --py-version=3.6
  465. - --platform=linux
  466. - id: pip-tools-compile
  467. alias: compile-doc-requirements
  468. name: Docs Py3.7 Requirements
  469. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  470. args:
  471. - -v
  472. - --py-version=3.7
  473. - --platform=linux
  474. - id: pip-tools-compile
  475. alias: compile-doc-requirements
  476. name: Docs Py3.8 Requirements
  477. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  478. args:
  479. - -v
  480. - --py-version=3.8
  481. - --platform=linux
  482. - id: pip-tools-compile
  483. alias: compile-doc-requirements
  484. name: Docs Py3.9 Requirements
  485. files: ^requirements/((base|zeromq|pytest)\.txt|static/docs\.in)$
  486. args:
  487. - -v
  488. - --py-version=3.9
  489. - --platform=linux
  490. - id: pip-tools-compile
  491. alias: compile-lint-py3.5-requirements
  492. name: Lint Py3.5 Requirements
  493. files: ^requirements/static/lint\.in$
  494. args:
  495. - -v
  496. - --py-version=3.5
  497. - --platform=linux
  498. - id: pip-tools-compile
  499. alias: compile-lint-py3.6-requirements
  500. name: Lint Py3.6 Requirements
  501. files: ^requirements/static/lint\.in$
  502. args:
  503. - -v
  504. - --py-version=3.6
  505. - --platform=linux
  506. - id: pip-tools-compile
  507. alias: compile-lint-py3.7-requirements
  508. name: Lint Py3.7 Requirements
  509. files: ^requirements/static/lint\.in$
  510. args:
  511. - -v
  512. - --py-version=3.7
  513. - --platform=linux
  514. - id: pip-tools-compile
  515. alias: compile-lint-py3.8-requirements
  516. name: Lint Py3.8 Requirements
  517. files: ^requirements/static/lint\.in$
  518. args:
  519. - -v
  520. - --py-version=3.8
  521. - --platform=linux
  522. - id: pip-tools-compile
  523. alias: compile-lint-py3.9-requirements
  524. name: Lint Py3.9 Requirements
  525. files: ^requirements/static/lint\.in$
  526. args:
  527. - -v
  528. - --py-version=3.9
  529. - --platform=linux
  530. - id: pip-tools-compile
  531. alias: compile-cloud-py3.5-requirements
  532. name: Cloud Py3.5 Requirements
  533. files: ^requirements/(static/cloud\.in)$
  534. args:
  535. - -v
  536. - --py-version=3.5
  537. - id: pip-tools-compile
  538. alias: compile-cloud-py3.6-requirements
  539. name: Cloud Py3.6 Requirements
  540. files: ^requirements/(static/cloud\.in)$
  541. args:
  542. - -v
  543. - --py-version=3.6
  544. - id: pip-tools-compile
  545. alias: compile-cloud-py3.7-requirements
  546. name: Cloud Py3.7 Requirements
  547. files: ^requirements/(static/cloud\.in)$
  548. args:
  549. - -v
  550. - --py-version=3.7
  551. - id: pip-tools-compile
  552. alias: compile-cloud-py3.8-requirements
  553. name: Cloud Py3.8 Requirements
  554. files: ^requirements/(static/cloud\.in)$
  555. args:
  556. - -v
  557. - --py-version=3.8
  558. - id: pip-tools-compile
  559. alias: compile-cloud-py3.9-requirements
  560. name: Cloud Py3.9 Requirements
  561. files: ^requirements/(static/cloud\.in)$
  562. args:
  563. - -v
  564. - --py-version=3.9
  565. - id: pip-tools-compile
  566. alias: compile-changelog-requirements
  567. name: Changelog Py3.5 Requirements
  568. files: ^requirements/static/changelog\.in$
  569. args:
  570. - -v
  571. - --py-version=3.5
  572. - --platform=linux
  573. - id: pip-tools-compile
  574. alias: compile-changelog-requirements
  575. name: Changelog Py3.6 Requirements
  576. files: ^requirements/static/changelog\.in$
  577. args:
  578. - -v
  579. - --py-version=3.6
  580. - --platform=linux
  581. - id: pip-tools-compile
  582. alias: compile-changelog-requirements
  583. name: Changelog Py3.7 Requirements
  584. files: ^requirements/static/changelog\.in$
  585. args:
  586. - -v
  587. - --py-version=3.7
  588. - --platform=linux
  589. # ----- Invoke ---------------------------------------------------------------------------------------------------->
  590. - id: pip-tools-compile
  591. alias: compile-py3.5-invoke-requirements
  592. name: Linux Py3.5 Invoke Requirements
  593. files: ^requirements/static/invoke\.in$
  594. args:
  595. - -v
  596. - --py-version=3.5
  597. - id: pip-tools-compile
  598. alias: compile-py3.6-invoke-requirements
  599. name: Linux Py3.6 Invoke Requirements
  600. files: ^requirements/static/invoke\.in$
  601. args:
  602. - -v
  603. - --py-version=3.6
  604. - id: pip-tools-compile
  605. alias: compile-py3.7-invoke-requirements
  606. name: Linux Py3.7 Invoke Requirements
  607. files: ^requirements/static/invoke\.in$
  608. args:
  609. - -v
  610. - --py-version=3.7
  611. - id: pip-tools-compile
  612. alias: compile-py3.8-invoke-requirements
  613. name: Linux Py3.8 Invoke Requirements
  614. files: ^requirements/static/invoke\.in$
  615. args:
  616. - -v
  617. - --py-version=3.8
  618. - id: pip-tools-compile
  619. alias: compile-py3.9-invoke-requirements
  620. name: Linux Py3.9 Invoke Requirements
  621. files: ^requirements/static/invoke\.in$
  622. args:
  623. - -v
  624. - --py-version=3.9
  625. # <---- Invoke -----------------------------------------------------------------------------------------------------
  626. - repo: https://github.com/timothycrosley/isort
  627. rev: "1e78a9acf3110e1f9721feb591f89a451fc9876a"
  628. hooks:
  629. - id: isort
  630. additional_dependencies: ['toml']
  631. # This tells pre-commit not to pass files to isort.
  632. # This should be kept in sync with pyproject.toml
  633. exclude: >
  634. (?x)^(
  635. templates/.*|
  636. salt/ext/.*|
  637. tests/kitchen/.*
  638. )$
  639. - repo: https://github.com/psf/black
  640. rev: stable
  641. hooks:
  642. - id: black
  643. # This tells pre-commit not to pass files to black.
  644. # This should be kept in sync with pyproject.toml
  645. exclude: >
  646. (?x)^(
  647. templates/.*|
  648. salt/ext/.*|
  649. tests/kitchen/.*
  650. )$
  651. - repo: https://github.com/saltstack/salt-nox-pre-commit
  652. rev: master
  653. hooks:
  654. - id: nox-py2
  655. alias: lint-salt
  656. name: Lint Salt
  657. files: ^((setup|noxfile)|(salt|tasks)/.*)\.py$
  658. args:
  659. - -e
  660. - lint-salt-pre-commit
  661. - --
  662. - repo: https://github.com/saltstack/salt-nox-pre-commit
  663. rev: master
  664. hooks:
  665. - id: nox-py2
  666. alias: lint-tests
  667. name: Lint Tests
  668. files: ^tests/.*\.py$
  669. args:
  670. - -e
  671. - lint-tests-pre-commit
  672. - --
  673. - repo: https://github.com/saltstack/salt-nox-pre-commit
  674. rev: master
  675. hooks:
  676. - id: nox-py2
  677. alias: check-docs
  678. name: Check Docs
  679. files: ^(salt/.*\.py|doc/ref/.*\.rst)$
  680. args:
  681. - -e
  682. - invoke-pre-commit
  683. - --
  684. - docs.check
  685. - repo: https://github.com/saltstack/salt-nox-pre-commit
  686. rev: master
  687. hooks:
  688. - id: nox-py2
  689. alias: check-filemap
  690. name: Check Filename Map Change Matching
  691. files: ^tests/filename_map\.yml$
  692. pass_filenames: false
  693. args:
  694. - -e
  695. - invoke-pre-commit
  696. - --
  697. - filemap.check