Sfoglia il codice sorgente

Add requirements

dev
Noëlle 1 anno fa
parent
commit
32952853da
Non sono state trovate chiavi note per questa firma nel database
3 ha cambiato i file con 40 aggiunte e 0 eliminazioni
  1. 27
    0
      .pre-commit-config.yaml
  2. 8
    0
      bussard.py
  3. 5
    0
      requirements.txt

+ 27
- 0
.pre-commit-config.yaml Vedi File

@@ -0,0 +1,27 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: check-xml
- id: check-ast
- id: check-json
- id: check-toml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- id: detect-private-key
- id: no-commit-to-branch
args: [--branch, main]
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
# https://github.com/psf/black/issues/2964#issuecomment-1080974737
additional_dependencies: ['click==8.0.4']
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
args: ["--profile", "black"]

+ 8
- 0
bussard.py Vedi File

@@ -1,3 +1,11 @@
import feedparser
import opyml
import Psycopg2


def read_archive(self, filename):
# filename is assumed to be relative to the directory
# you're calling this from, or globally qualified
# It cannot be a URL or non-local file.
with open(filename, "r") as file:
contents = file.read(filename)

+ 5
- 0
requirements.txt Vedi File

@@ -0,0 +1,5 @@
defusedxml==0.7.1
feedparser==6.0.10
opyml==0.1.2
psycopg2==2.9.7
sgmllib3k==1.0.0

Loading…
Annulla
Salva