Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #13 from MousaZeidBaker/linting_and_formatting
Browse files Browse the repository at this point in the history
Add linter and formatters
  • Loading branch information
MousaZeidBaker authored Oct 14, 2021
2 parents 1d5025f + 457ef8c commit ce05db5
Show file tree
Hide file tree
Showing 9 changed files with 414 additions and 37 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
- name: Install dependencies
run: poetry install

- name: Lint
run: |
source $(poetry env info --path)/bin/activate # activate virtual environment
flake8 .
- name: Test
run: |
source $(poetry env info --path)/bin/activate # activate virtual environment
Expand Down Expand Up @@ -64,6 +69,11 @@ jobs:
- name: Install dependencies
run: poetry install

- name: Lint
run: |
source $(poetry env info --path)/bin/activate # activate virtual environment
flake8 .
- name: Test
run: |
source $(poetry env info --path)/bin/activate # activate virtual environment
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
- name: Install dependencies
run: poetry install

- name: Lint
run: |
source $(poetry env info --path)/bin/activate # activate virtual environment
flake8 .
- name: Test
run: |
source $(poetry env info --path)/bin/activate # activate virtual environment
Expand Down
37 changes: 31 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ running `poetry update` and `poetryup`, is that the latter also modifies the `py
poetryup
```

## Test
Activate virtualenv & Install project dependencies
```shell
poetry shell && poetry install
```

Run tests
```shell
pytest tests
Expand All @@ -36,3 +30,34 @@ Contributions are welcome via pull requests.
## Issues
If you encounter any problems, please file an [issue](https://github.com/MousaZeidBaker/poetryup/issues) along with a
detailed description.

## Develop
Activate virtual environment
```shell
poetry shell
```

Install dependencies
```shell
poetry install
```

Run tests
```shell
pytest tests
```

Run linter
```shell
flake8 .
```

Format code
```shell
black .
```

Sort imports
```shell
isort .
```
Loading

0 comments on commit ce05db5

Please sign in to comment.