You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use imperative mood for one-line docstring summaries #1473
$ pydocstyle Bio/ --select D401 --count
Bio/_utils.py:38 in public function `read_forward`:
D401: First line should be in imperative mood ('Read', not 'Reads')
...
Bio/Wise/__init__.py:26 in private function `_build_align_cmdline`:
D401: First line should be in imperative mood; try rephrasing (found 'Helper')
416
If we do manage to make pydocstyle happy, then D401 can be enforced on TravisCI/Tox by updating file Bio/.flake8 which currently ignores it.
Given there are hundreds of docstrings to review, it makes sense to do this in batches, for example by top level folder. If you are going to work on this please comment here first to avoid overlap of effort (e.g. "I'm going to work on Bio/BLAST/ next).
Good work everyone. We're almost there - just three left:
$ pydocstyle Bio/ --select D401 --count
Bio/Data/CodonTable.py:71 in public method `__str__`:
D401: First line should be in imperative mood ('Return', not 'Returns')
Bio/Data/CodonTable.py:219 in public function `list_ambiguous_codons`:
D401: First line should be in imperative mood ('Extend', not 'Extends')
Bio/Data/CodonTable.py:396 in public function `register_ncbi_table`:
D401: First line should be in imperative mood ('Turn', not 'Turns')
3
Markus' pull request #1501 will fix these (and adds the latest NCBI genetic codes to our codon tables).
Once that's merged, we can start enforcing D401 in the Bio/.flake8 configuration.
Activity
MarkusPiotrowski commentedon Dec 11, 2017
I'm going to work on
Bio/SeqUtilsMarkusPiotrowski commentedon Dec 15, 2017
I go on with
Alphabet,CompassandDataGasta88 commentedon Dec 18, 2017
I'll take
Bio/_utils.py,Bio/SeqRecord.pyandBio/phenotype.Gasta88 commentedon Dec 19, 2017
I'll start with
Bio/Nexus,Bio/WiseandBio/PopGeneGasta88 commentedon Dec 27, 2017
I'll work on
Bio/Entrez,Bio/PDB,Bio/FSSPandBio/Phylo.peterjc commentedon Dec 27, 2017
Wow - this is going quicker than I expected - thanks for all the work so far!
Gasta88 commentedon Jan 7, 2018
Working on
Bio/Uniprot,Bio/motifs,Bio/KEGG,Bio/NMRandBio/SCOP.Gasta88 commentedon Jan 8, 2018
I'll take
Bio/SeqIO,Bio/CrystalandBio/SearchIO.peterjc commentedon Jan 8, 2018
I'll do
Bio/Sequencing/*.pynow...Update: And
Bio/DataCorrection: Markus is already doing
Bio/DataImperative mood for Bio.Sequencing docstrings (D401)
Imperative mood for Bio.Data docstrings (D401)
Imperative mood for Entrez, PDB, FSSP, Phylo (D401)
Imperative mood for Bio.Sequencing docstrings (D401)
Gasta88 commentedon Jan 11, 2018
I'll do
Bio/Pathway,Bio/NeuralNetworkandBio/Blast.Imperative mood for Pathway, NeuralNetwork and Blast (D401)
Imparative mood for SeqIO, SearchIO and Crystal (D401)
peterjc commentedon Jan 12, 2018
Good work everyone. We're almost there - just three left:
Markus' pull request #1501 will fix these (and adds the latest NCBI genetic codes to our codon tables).
Once that's merged, we can start enforcing
D401in theBio/.flake8configuration.TravisCI/Tox: enforce pydocstyle D401 imperative mood
TravisCI/Tox: enforce pydocstyle D401 imperative mood
peterjc commentedon Feb 23, 2018
Closed by #1542, thank you for everyone else for all the docstring changes