Skip to content

Commit

Permalink
Fixes in Makefile and Workflows (#43)
Browse files Browse the repository at this point in the history
* Makefile format

* Style

* Better on pr workflow
  • Loading branch information
dyakovri authored Apr 6, 2024
1 parent 2a2e3d5 commit 0c9d483
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Python package
name: Python tests

on:
pull_request:


jobs:
linting:
runs-on: ubuntu-latest
Expand All @@ -17,9 +16,8 @@ jobs:
requirementsFiles: "requirements.txt requirements.dev.txt"
- uses: psf/black@stable
- name: Comment if linting failed
if: ${{ failure() }}
if: failure()
uses: thollander/actions-comment-pull-request@v2
with:
message: |
:poop: Code linting failed, use `black` and `isort` to fix it.
2 changes: 1 addition & 1 deletion auth_lib/aiomethods.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import aiohttp

from .exceptions import AuthFailed, IncorrectData, NotFound, SessionExpired
from .exceptions import AuthFailed, SessionExpired

# See docs on https://api.test.profcomff.com/?urls.primaryName=auth

Expand Down
2 changes: 1 addition & 1 deletion auth_lib/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import requests

from .exceptions import AuthFailed, IncorrectData, NotFound, SessionExpired
from .exceptions import AuthFailed, SessionExpired

# See docs on https://api.test.profcomff.com/?urls.primaryName=auth

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


with open("requirements.txt", "r", encoding="utf-8") as req_file:
req = req_file.read().split('\n')
req = req_file.read().split("\n")


setup(
Expand Down

0 comments on commit 0c9d483

Please sign in to comment.