Mercurial > evolve
annotate contrib/docker/pytype/README.rst @ 6658:edcd6710033e
contrib: adjust heptapod CI flavor sizes
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 18 Jan 2024 13:22:27 -0300 |
parents | da3fd8644ad9 |
children |
rev | line source |
---|---|
6649
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
1 Pytype in Docker |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
2 ================ |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
3 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
4 To build the container:: |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
5 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
6 $ docker build --tag evolve-pytype-checker "$(hg root)/contrib/docker/pytype/" |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
7 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
8 To check the code with pytype:: |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
9 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
10 $ docker run --rm -it -u "$(id -u):$(id -g)" -v "$(hg root):/tmp/evolve-ci" -v "/path/to/mercurial-repo:/tmp/mercurial-ci" evolve-pytype-checker |