Skip to content

Commit

Permalink
Merge pull request #1 from olafurjohannsson/black-formatter
Browse files Browse the repository at this point in the history
Black formatter
  • Loading branch information
olafurjohannsson authored Sep 5, 2023
2 parents 2e2c99a + 12ef215 commit a57ad14
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Black check

on: [push, pull_request]

jobs:
black-check:
runs-on: ubuntu-latest
name: Black
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./src"
jupyter: true
version: "22.3.0"
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
# sentiment-analysis
# Viðhorfsgreining á íslenskum texta





# Style

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

# License
MIT

# Authors

Ólafur Aron Jóhannsson \
Eysteinn Örn \
Birkir Arndal \
Júlíus Grettir Margrétarson
9 changes: 9 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from transformers import pipeline


def main():
print(pipeline("sentiment-analysis")(__name__))


if __name__ == "__main__":
main()

0 comments on commit a57ad14

Please sign in to comment.