Browse Source

Add requirements

dev
Noëlle 7 months ago
parent
commit
32952853da
No known key found for this signature in database
3 changed files with 40 additions and 0 deletions
  1. 27
    0
      .pre-commit-config.yaml
  2. 8
    0
      bussard.py
  3. 5
    0
      requirements.txt

+ 27
- 0
.pre-commit-config.yaml View 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 View 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 View 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…
Cancel
Save