Skip to content

Commit

Permalink
Merge branch 'main' into feature/algorithms_framework
Browse files Browse the repository at this point in the history
  • Loading branch information
lladdy committed Sep 25, 2023
2 parents 7f9bd8e + 2627021 commit 9bf3f03
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
name: Rust

on:
push:
branches: [ master, staging ]
pull_request:
branches: [ main ]
branches: [ master, staging ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11" ]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -20,12 +18,5 @@ jobs:
- name: Prepare environment
run: |
python -m pip install --upgrade pip
pip install flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 .
- name: Lint with Pylint
run: |
pylint .
if [ -f requirements.DEVELOPMENT.txt ]; then pip install -r requirements.txt; fi
- uses: pre-commit/action@v3.0.0
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea/
bossman/__pycache__/

venv
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
repos:
- repo: local
hooks:
- id: black
name: Black
entry: black --check
types: [python]
language: python
- id: ruff
name: ruff
entry: ruff
types: [python]
language: python
3 changes: 3 additions & 0 deletions requirements.DEVELOPMENT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-r requirements.txt
pre-commit==3.3.3
ruff==0.0.264

0 comments on commit 9bf3f03

Please sign in to comment.