Skip to content

Commit

Permalink
Merge pull request #75 from wwade/clean-files
Browse files Browse the repository at this point in the history
doc: update README for hacking notes
  • Loading branch information
wwade committed Mar 20, 2021
2 parents c263ca5 + 62a9cc1 commit f39a1cf
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ $ view `job` # Opens the output from ls using "view"
```
$ job echo 1
$ job echo 2
$ view `job -n0 -n1`
$ view `job -n0 -n1`
```
* Query by job name
```
Expand All @@ -80,7 +80,7 @@ program = mail
# your mail program instead. "chatmail" must be specified rather than a differently
# named link to the script, else some options provided to job (such as --rc-file)
# will not be passed through to it.
# program = chatmail
# program = chatmail
domain = example.com
[ui]
watch reminder = full|summary # default=summary
Expand All @@ -94,3 +94,28 @@ user1 = https://chat.googleapis.com/v1/spaces/...
# It should show up as "user/some_long_integer" somewhere in the span's metadata.
user1 = <long integer>
```

## Hacking

### Primary workflow
It's highly recommend to work inside a virtualenv using `pipenv`.

Create new virtualenv and install an editable version of `jobrunner`:

pipenv --three install --dev
pipenv run install -e .

Autoformat the code and check linters:

pipenv run ./format.sh

Run tests:

pipenv run pytest

### Run CI checks locally
This allows you to run something similar to the azure pipelines locally using docker.
It will use `PIP_INDEX_URL` and / or `~/.config/pip/pip.conf` to configure a pypi mirror.
This will also update `Pipfile-2.7.lock` and `Pipfile.lock`.

./test-docker.sh

0 comments on commit f39a1cf

Please sign in to comment.