Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Latest commit

 

History

History
36 lines (30 loc) · 1.83 KB

contributing.md

File metadata and controls

36 lines (30 loc) · 1.83 KB

Contributing

When you submit a pull request, a CI will process to some checks:

  • That the code is conform to the PEP8 standard
  • That the unit tests are not broken
  • That the functional tests are not broken

These tests are done in all Python versions supported by this library.

For running these checks locally, you should have installed:

Especially for functional tests are required:

If all these requirements are ok, the following command process locally at the same checks as the CI:

$ DROPBOX_TOKEN=mydropboxtoken tox

If you don't have a Dropbox token or a Google Drive credential file, you can however locally check the code standards and launch the unit tests:

$ make dev
$ make lint
$ make test-unit

You should run these tests in all Python versions supported by the library.

Functional tests download sample images in the repository ianare/exif-samples. This repository size is about 31M but is downloaded once in your /tmp directory or in the path defined in TMPDIR environment variable if defined. Note for preventing multiple heavy downloads, the image archive is never deleted. If you want to delete it:

$ make clear-tmp

Anyway, if you need it again, it will be downloaded the next time you'll launch functional tests.