Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.12 KB

CONTRIBUTING.md

File metadata and controls

34 lines (25 loc) · 1.12 KB

Development - Contributing

Requirements

  • poetry: For dependency management and packaging in Python
  • pre-commit: For identifying code issues before submission to code review

Developing

To start working on this project, here are some guidelines to set up your environment:

  1. git clone https://github.com/anancarv/python-artifactory.git
  2. cd python-artifactory
  3. Install poetry
  4. Activate virtualenvpoetry shell
  5. Install dependencies: poetry install
  6. Run pre-commit install --install-hooks to install precommit hooks

After having installed pre-commit, before each commit, pre-commit hooks are run to:

  • check code formatting
  • detect secrets
  • create TOC in README
  • check code typing
  • find common security issues in Python code

Tests

Tests are run with Pytest.

pytest --cov=pyartifactory --cov-branch

Please, make sure to write tests for each feature you want to implement.