1
0

.pre-commit-config.yaml 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194
  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. # ----- 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|py3\.5/linux\.txt))$
  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|py3\.6/linux\.txt))$
  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|py3\.7/linux\.txt))$
  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|py3\.8/linux\.txt))$
  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|py3\.9/linux\.txt))$
  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|py3\.5/freebsd\.txt))$
  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|py3\.6/freebsd\.txt))$
  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|py3\.7/freebsd\.txt))$
  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|py3\.8/freebsd\.txt))$
  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|py3\.9/freebsd\.txt))$
  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|darwin)\.txt|static/pkg/(darwin\.in|py3\.5/darwin\.txt)))$
  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|darwin)\.txt|static/pkg/(darwin\.in|py3\.6/darwin\.txt)))$
  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|darwin)\.txt|static/pkg/(darwin\.in|py3\.7/darwin\.txt)))$
  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|darwin)\.txt|static/pkg/(darwin\.in|py3\.8/darwin\.txt)))$
  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|darwin)\.txt|static/pkg/(darwin\.in|py3\.9/darwin\.txt)))$
  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|windows)\.txt|static/pkg/(windows\.in|py3\.5/windows\.txt))$
  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|windows)\.txt|static/pkg/(windows\.in|py3\.6/windows\.txt))$
  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|windows)\.txt|static/pkg/(windows\.in|py3\.7/windows\.txt))$
  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|windows)\.txt|static/pkg/(windows\.in|py3\.8/windows\.txt))$
  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|windows)\.txt|static/pkg/(windows\.in|py3\.9/windows\.txt))$
  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|pkg)/linux\.in|pkg/py3\.5/linux\.txt))$
  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|pkg)/linux\.in|pkg/py3\.6/linux\.txt))$
  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|pkg)/linux\.in|pkg/py3\.7/linux\.txt))$
  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|pkg)/linux\.in|pkg/py3\.8/linux\.txt))$
  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|pkg)/linux\.in|pkg/py3\.9/linux\.txt))$
  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|pkg)/freebsd\.in|pkg/py3\.5/freebsd\.txt))$
  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|pkg)/freebsd\.in|pkg/py3\.6/freebsd\.txt))$
  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|pkg)/freebsd\.in|pkg/py3\.7/freebsd\.txt))$
  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|pkg)/freebsd\.in|pkg/py3\.8/freebsd\.txt))$
  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|pkg)/freebsd\.in|pkg/py3\.9/freebsd\.txt))$
  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|pkg)/darwin\.in|pkg/py3\.5/darwin\.txt)))$
  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|pkg)/darwin\.in|pkg/py3\.6/darwin\.txt)))$
  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|pkg)/darwin\.in|pkg/py3\.7/darwin\.txt)))$
  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|pkg)/darwin\.in|pkg/py3\.8/darwin\.txt)))$
  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|pkg)/darwin\.in|pkg/py3\.9/darwin\.txt)))$
  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|pkg)/windows\.in|pkg/py3\.5/windows\.txt))$
  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|pkg)/windows\.in|pkg/py3\.6/windows\.txt))$
  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|pkg)/windows\.in|pkg/py3\.7/windows\.txt))$
  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|pkg)/windows\.in|pkg/py3\.8/windows\.txt))$
  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|pkg)/windows\.in|pkg/py3\.9/windows\.txt))$
  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. # ----- Local Hooks ----------------------------------------------------------------------------------------------->
  975. - repo: local
  976. hooks:
  977. - id: check-changelog-entries
  978. name: Check Changelog Entries
  979. entry: .pre-commit-hooks/check-changelog-entries.py
  980. language: script
  981. # <---- Local Hooks ------------------------------------------------------------------------------------------------
  982. # ----- Code Formatting ------------------------------------------------------------------------------------------->
  983. - repo: https://github.com/asottile/pyupgrade
  984. # This, for now, is meant to run when locally committing code and will be disabled(skipped) when we run pre-commit
  985. # against all codebase to avoid MASSIVE code churn. This way, we do it in smaller chunks, a few at a time.
  986. rev: v2.7.2
  987. hooks:
  988. - id: pyupgrade
  989. name: Drop six usage and Py2 support
  990. args: [--py3-plus, --keep-mock]
  991. exclude: >
  992. (?x)^(
  993. salt/client/ssh/ssh_py_shim.py
  994. )$
  995. - repo: https://github.com/saltstack/pre-commit-remove-import-headers
  996. rev: 1.0.0
  997. hooks:
  998. - id: remove-import-headers
  999. - repo: https://github.com/timothycrosley/isort
  1000. rev: "1e78a9acf3110e1f9721feb591f89a451fc9876a"
  1001. hooks:
  1002. - id: isort
  1003. additional_dependencies: ['toml']
  1004. # This tells pre-commit not to pass files to isort.
  1005. # This should be kept in sync with pyproject.toml
  1006. exclude: >
  1007. (?x)^(
  1008. templates/.*|
  1009. salt/ext/.*|
  1010. tests/kitchen/.*
  1011. )$
  1012. - repo: https://github.com/psf/black
  1013. rev: 19.10b0
  1014. hooks:
  1015. - id: black
  1016. # This tells pre-commit not to pass files to black.
  1017. # This should be kept in sync with pyproject.toml
  1018. exclude: >
  1019. (?x)^(
  1020. templates/.*|
  1021. salt/ext/.*|
  1022. tests/kitchen/.*
  1023. )$
  1024. - repo: https://github.com/myint/rstcheck
  1025. # This, for now, is meant to run when locally committing code and will be disabled(skipped) when we run pre-commit
  1026. # against all codebase to avoid MASSIVE code churn. This way, we do it in smaller chunks, a few at a time.
  1027. rev: 3f92957
  1028. hooks:
  1029. - id: rstcheck
  1030. name: Check reST files using rstcheck
  1031. args: [--report=warning]
  1032. additional_dependencies: [sphinx]
  1033. - repo: https://github.com/asottile/blacken-docs
  1034. rev: v1.7.0
  1035. hooks:
  1036. - id: blacken-docs
  1037. args: [--skip-errors]
  1038. files: ^doc/.*\.rst
  1039. additional_dependencies: [black==19.10b0]
  1040. # <---- Code Formatting --------------------------------------------------------------------------------------------
  1041. # ----- Pre-Commit ------------------------------------------------------------------------------------------------>
  1042. - repo: https://github.com/saltstack/mirrors-nox
  1043. rev: v2020.8.22
  1044. hooks:
  1045. - id: nox
  1046. alias: lint-salt
  1047. name: Lint Salt
  1048. files: ^((setup|noxfile)|(salt|tasks)/.*)\.py$
  1049. args:
  1050. - -e
  1051. - lint-salt-pre-commit
  1052. - --
  1053. - repo: https://github.com/saltstack/mirrors-nox
  1054. rev: v2020.8.22
  1055. hooks:
  1056. - id: nox
  1057. alias: lint-tests
  1058. name: Lint Tests
  1059. files: ^tests/.*\.py$
  1060. args:
  1061. - -e
  1062. - lint-tests-pre-commit
  1063. - --
  1064. - repo: https://github.com/saltstack/mirrors-nox
  1065. rev: v2020.8.22
  1066. hooks:
  1067. - id: nox
  1068. alias: check-docs
  1069. name: Check Docs
  1070. files: ^(salt/.*\.py|doc/ref/.*\.rst)$
  1071. args:
  1072. - -e
  1073. - invoke-pre-commit
  1074. - --
  1075. - docs.check
  1076. - repo: https://github.com/saltstack/mirrors-nox
  1077. rev: v2020.8.22
  1078. hooks:
  1079. - id: nox
  1080. alias: check-filemap
  1081. name: Check Filename Map Change Matching
  1082. files: ^tests/filename_map\.yml$
  1083. pass_filenames: false
  1084. args:
  1085. - -e
  1086. - invoke-pre-commit
  1087. - --
  1088. - filemap.check
  1089. # <---- Pre-Commit -------------------------------------------------------------------------------------------------