Skip to content

Commit

Permalink
feat: add sync to readwise.io
Browse files Browse the repository at this point in the history
  • Loading branch information
bskim45 committed Jul 24, 2024
1 parent ec39fbc commit 5f69969
Show file tree
Hide file tree
Showing 23 changed files with 1,757 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
root = true

[*]
charset=utf-8
end_of_line=lf
indent_size=4
indent_style=space
insert_final_newline=true
trim_trailing_whitespaces=true
max_line_length = 80

[*.py]
indent_size=4
quote_type=single
max_line_length = 88

[*.json]
indent_size=2

[{*.yml,*.yaml}]
indent_size=2

[*.sh]
indent_size=2

[*.md]
indent_size=2

[*.toml]
indent_size=2

[{Makefile,**.mk}]
indent_style = tab
73 changes: 73 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
### Python
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# pyenv
.python-version

# Cython debug symbols
cython_debug/

# venv
.venv
venv/

### macOS
.DS_Store
.AppleDouble
.LSOverride

### IDE
.idea/
.vscode/

### env
.env*
!.env.example
46 changes: 46 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
default_stages: [commit, push]

default_language_version:
python: python3.10

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-added-large-files
- id: check-toml
- id: check-yaml

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.18
hooks:
- id: validate-pyproject

- repo: https://github.com/google/yamlfmt
rev: v0.13.0
hooks:
- id: yamlfmt
args: ['-formatter', 'retain_line_breaks_single=true']

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
hooks:
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format
args: [--check]

- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args: ["-rn", "-sn"]
files: 'src/.*\.py$'
Loading

0 comments on commit 5f69969

Please sign in to comment.