Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

two comments, no functional changes #55

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
comments only
boyan committed May 4, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 6a4a58dbd101a1e193ff42ce0dd766b78b0b05c8
3 changes: 3 additions & 0 deletions papers/__main__.py
Original file line number Diff line number Diff line change
@@ -474,6 +474,9 @@ def addcmd(parser, o, config):
savebib(biblio, config)

def checkcmd(parser, o, config):
"""
Loops over the entire bib file that the Papers install sees, and checks each entry for formatting and for the existance of duplicates. Then writes the Biblio object back to your Bibtex file.
"""
set_keyformat_config_from_cmd(o, config)

biblio = get_biblio(config)
3 changes: 3 additions & 0 deletions papers/bib.py
boyanpenkov marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -591,6 +591,9 @@ def rename_entries_files(self, copy=False, relative_to=None):
def fix_entry(self, e, fix_doi=True, fetch=False, fetch_all=False,
fix_key=False, auto_key=False, key_ascii=False, encoding=None,
format_name=True, interactive=False):
"""
Given an entry in an existing Bilio object, checks the format name and encoding. Will fetch additional info if it's missing.
"""

e_old = e.copy()

2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -2,4 +2,4 @@
# setup user name and user email if not set (otherwise commit will fail)
sp.check_call('git config --list | grep user.name || git config --global user.name "Papers Tests"', shell=True)
sp.check_call('git config --list | grep user.email || git config --global user.email "[email protected]"', shell=True)
del sp
del sp