Skip to content

Commit

Permalink
Add Github Actions with Ruff (#31)
Browse files Browse the repository at this point in the history
* Update readme

* Add Github Actions

* Run linters only on push of main branches
  • Loading branch information
zhanymkanov authored Jun 12, 2024
1 parent 2e450e7 commit 1e2bdea
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Run Linters
on:
push:
branches:
- main
- dev
pull_request:


jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
- uses: chartboost/ruff-action@v1
with:
args: 'format --check'
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,18 @@ apt install just

Others: [link](https://github.com/casey/just?tab=readme-ov-file#packages)

### Setup Database
### Setup poetry
```shell
pip install poetry
```

Other ways: [link](https://python-poetry.org/docs/#installation)

### Setup Postgres (16.3)
```shell
just up
```
### Setup Dependencies & Environment variables
### Copy the environment file and install dependencies
1. `cp .env.example .env`
2. `poetry install`

Expand Down

0 comments on commit 1e2bdea

Please sign in to comment.