Mercurial > code > home > repos > reposync
changeset 16:db4037285592 main master
update deps, some ide setup
author | drewp@bigasterisk.com |
---|---|
date | Fri, 27 Aug 2021 13:40:49 -0700 |
parents | d653e1b558ce |
children | a4778c56cc03 |
files | .flake8 .style.yapf .vscode/settings.json Dockerfile entrypoint.sh hg_status.py |
diffstat | 6 files changed, 17 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.flake8 Fri Aug 27 13:40:49 2021 -0700 @@ -0,0 +1,3 @@ +[flake8] +max-line-length=160 +ignore=E722,W503,E741,E201,E202,E241,E231
--- a/.style.yapf Sat Jul 17 00:17:56 2021 -0700 +++ b/.style.yapf Fri Aug 27 13:40:49 2021 -0700 @@ -1,3 +1,4 @@ +# overwritten by /home/drewp/bin/setup_home_venv [style] based_on_style = google -column_limit = 130 +column_limit = 160
--- a/.vscode/settings.json Sat Jul 17 00:17:56 2021 -0700 +++ b/.vscode/settings.json Fri Aug 27 13:40:49 2021 -0700 @@ -1,4 +1,10 @@ { - "python.pythonPath": "/home/drewp/.venvs/reposync/bin/python", - "python.formatting.provider": "yapf" -} \ No newline at end of file + "python.linting.pylintEnabled": false, + "python.linting.flake8Enabled": true, + "python.linting.enabled": true, + "python.pythonPath": "/home/drewp/.venvs/reposync/bin/python", + "python.formatting.provider": "yapf", + "files.watcherExclude": { + "_darcs_old/**": true + } +}
--- a/Dockerfile Sat Jul 17 00:17:56 2021 -0700 +++ b/Dockerfile Fri Aug 27 13:40:49 2021 -0700 @@ -2,6 +2,7 @@ WORKDIR /opt +RUN echo 2021-07-22 && apt-get update RUN apt-get install -y python3.8 libpython3.8-dev python3-openssl python3-cffi-backend RUN python3.8 -m pip install mercurial @@ -24,4 +25,4 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone -CMD ["/bin/sh", "entrypoint.sh"] \ No newline at end of file +CMD ["/bin/sh", "entrypoint.sh"]
--- a/entrypoint.sh Sat Jul 17 00:17:56 2021 -0700 +++ b/entrypoint.sh Fri Aug 27 13:40:49 2021 -0700 @@ -1,5 +1,4 @@ #!/bin/sh -echo "nameserver 10.43.0.10 8.8.8.8" > /etc/resolv.conf exec python3.8 hg_status.py -v \ No newline at end of file
--- a/hg_status.py Sat Jul 17 00:17:56 2021 -0700 +++ b/hg_status.py Fri Aug 27 13:40:49 2021 -0700 @@ -151,12 +151,7 @@ repo = self.toProcess.pop(0) try: - update = { - 'path': str(repo.path), - 'github': repo.github, - 'status': (yield repo.getStatus()), - 'hgLatest': (yield repo.getLatestHgCommit()) - } + update = {'path': str(repo.path), 'github': repo.github, 'status': (yield repo.getStatus()), 'hgLatest': (yield repo.getLatestHgCommit())} if repo.github: update['githubLatest'] = (yield repo.getLatestGithubCommit()) self.update(str(repo.path), update)