Skip to content

Commit

Permalink
More linting!
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Jan 8, 2025
1 parent 6feca8e commit 8a6d2c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/obofoundry/cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Command line interface for :mod:`obofoundry`.
Why does this file exist, and why not put this in ``__main__``? You might be tempted to import things from ``__main__``
Why does this file exist, and why not put this in ``__main__``?
You might be tempted to import things from ``__main__``
later, but that will cause problems--the code will get executed twice:
- When you run ``python3 -m obofoundry`` python will execute``__main__.py`` as a script.
Expand Down
6 changes: 4 additions & 2 deletions src/obofoundry/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def get_data():
return ontologies


#: WikiData SPARQL endpoint. See https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service#Interfacing
#: WikiData SPARQL endpoint.\
# See https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service#Interfacing
WIKIDATA_SPARQL = "https://query.wikidata.org/bigdata/namespace/wdq/sparql"


Expand All @@ -47,7 +48,8 @@ def get_new_data():
So far, this applies in the following scenarios:
1. New ontologies, i.e., there's a markdown file for the ontology in the ``/ontologies`` directory
1. New ontologies, i.e.,
there's a markdown file for the ontology in the ``/ontologies`` directory
but has it not yet been published and does not appear in the config.yml
"""
data = get_data()
Expand Down

0 comments on commit 8a6d2c7

Please sign in to comment.