Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
9879 commits
Select commit Hold shift + click to select a range
5df040f
Remove python 2 assertion
Jan 22, 2020
8ee9ecb
Remove python 2 crutch for cmp
Jan 22, 2020
1ccef93
black, version 19.10b, Bio/Blast/Applications.py
Jan 15, 2020
6758d9d
post-black string concatenation
peterjc Jan 15, 2020
a5e960c
Fix triple quotes in Bio/Blast/Applications.py
peterjc Jan 15, 2020
97d2459
Apply black to Test/test_PDB* (#2571)
svalqui Jan 24, 2020
a477dd9
updates Bio.Graphics for pyton3 (#2560)
mdehoon Jan 24, 2020
4ca4fd0
Add support for passing sets to Entrez.efetch()
austinv11 Jun 27, 2018
1e7afa1
More generically support iterables in Entrez.efetch
austinv11 Jul 9, 2018
2c776f5
Raise TypeError when ids is not an int
austinv11 Jul 24, 2018
ff8b1d2
Thank Austin in NEWS file
peterjc Jan 24, 2020
d5d7630
Quote fix
peterjc Jan 24, 2020
e3ded78
TravisCI: Mark s390x as an allowed fail.
peterjc Jan 24, 2020
e109115
black, version 19.10b, does tuple assignment
Jan 15, 2020
88dc891
black, version 19.10b, for recent edits
Jan 15, 2020
0462aa2
Missing space on string concatenation
peterjc Jan 15, 2020
fbb38a7
Avoid triple-quote string; suggest f-string
peterjc Jan 15, 2020
9a9fbb2
More black on top of recent edits
Jan 22, 2020
ae2c97b
black, version 19.10b0, on Bio.Graphics
Jan 24, 2020
aedc245
Fix sort order (my mistake in rebasing)
peterjc Jan 24, 2020
74eb89b
update Bio.PopGen for python3 (#2578)
mdehoon Jan 26, 2020
d4f7929
change all "r" args
chris-rands Jan 22, 2020
ec31316
gzip and bgzf stuff
chris-rands Jan 22, 2020
51d7ca1
typo
chris-rands Jan 22, 2020
ed067fd
revert changes
chris-rands Jan 23, 2020
c493dda
Add pygments python file to .gitignore
hwalinga Jan 24, 2020
495a301
Kwargs in pairwise aligner constructor (#2569)
hwalinga Jan 26, 2020
b671798
Disable black on Bio/SubsMat/MatrixInfo.py
peterjc Jan 15, 2020
1a3ad34
Revert Jython JVM workaround in MatrixInfo.py
peterjc Jan 15, 2020
821f449
Four space indentation to match current style
peterjc Jan 15, 2020
3035e24
_ -> \_ fixes interruption when running make
bganglia Jan 28, 2020
ab11d95
Remove obsolete comment
peterjc Jan 28, 2020
10d9888
update Exceptions in Bio.Seq to python3
mdehoon Jan 28, 2020
31eae95
update Exceptions in Bio.SeqFeature for python3
mdehoon Jan 28, 2020
430f20f
Bio.GenBank: Remove error-hiding __gettattr__ method (#2528)
kblin Jan 27, 2020
1fbc7d0
Bio.Genbank: Add molecule_type handler to _RecordConsumer
kblin Jan 28, 2020
8aa53e9
Bio.GenBank: Fix a _FeatureConsumer typo masked by blanked __getattr_…
kblin Jan 28, 2020
dce203c
Bio.Genbank: Add topology handler to _RecordConsumer
kblin Jan 28, 2020
3b2cacb
Bio.GenBank: Silence a false flake8 warning
kblin Jan 28, 2020
ed4d971
Disable black on Bio/pairwise2.py temporarily
peterjc Jan 24, 2020
18485d6
Refresh black on recent edits
Jan 28, 2020
79eb29a
flake8: enforce black on Bio/
peterjc Jan 24, 2020
be56e6b
black on long comment line
Jan 29, 2020
0b8ea2e
Apply black style to test_SeqIO_Gck.py and test_SeqIO_SnapGene.py, ve…
Jan 28, 2020
497e3a6
REBASE Jan 2020
peterjc Jan 28, 2020
c4dc766
updated and ran ranacompiler.py
mdehoon Jan 26, 2020
df9d4e1
Most of Restriction_Dictionary.py follows black style now
peterjc Jan 28, 2020
7543a3c
Remove obsolete comment and reference to deleted file
peterjc Jan 29, 2020
9d2b0a9
python3 updates Bio.SeqIO.AbiIO (#2591)
mdehoon Jan 29, 2020
f356da1
updated Bio.SearchIO for python3 + some cleanup
mdehoon Jan 28, 2020
fb51986
updated Bio.Restriction for python3 (#2581)
mdehoon Jan 29, 2020
c2bd5fc
updating Bio.Sequencing for python3 (#2594)
mdehoon Jan 29, 2020
7b3aa91
docstring update (#2599)
mdehoon Jan 30, 2020
70d0772
black, version 19.10b0, on Bio/
Jan 30, 2020
8a0dbfa
Don't need as_handle any more
mdehoon Jan 30, 2020
e89ca48
black, version 19.10b0
Jan 30, 2020
3573632
If flake8-sfs installed, ignore percent & f-string formatting
peterjc Jan 29, 2020
7dcda63
Convert string literal .format to f-strings
peterjc Jan 29, 2020
51b3754
Remove pointless f-string
peterjc Jan 30, 2020
c279ddb
Remove redundant Python 2 comment about bytes
peterjc Jan 29, 2020
6837148
Remove Python 2.5 era fallback for minus infinity
peterjc Jan 29, 2020
1d7656c
Remove historical commentary in docstring
peterjc Jan 29, 2020
22b4435
Remove Python 2 era comment
peterjc Jan 29, 2020
1256399
Reduce python 2/3 commentary here
peterjc Jan 29, 2020
e8089ce
Remove python 2 specific comment
peterjc Jan 29, 2020
a010428
Reword docstring as dropped Python 2
peterjc Jan 29, 2020
422b2c0
updating Bio.SeqIO.GckIO for python3 (#2604)
mdehoon Jan 30, 2020
faa081f
update Bio/SeqIO/FastaIO.py for Python3 & cleanup (#2602)
mdehoon Jan 30, 2020
bb6b870
need to yield to avoid jumping to finally immediatly (#2607)
mdehoon Jan 31, 2020
70749a6
is not instead of != (#2608)
mdehoon Jan 31, 2020
80f0cb6
removed Bio.trie warning from website
mdehoon Jan 31, 2020
f9c3e96
updated Bio.SeqIO.NibIO for python3
mdehoon Jan 31, 2020
48a12bd
pairwise2: namedtuple and keyword parameters (#2603)
MarkusPiotrowski Jan 31, 2020
f2fa1d3
allow opening SwissProt files by name (#2613)
mdehoon Feb 1, 2020
20a011b
allow phd files to be opened by name (#2614)
mdehoon Feb 1, 2020
fc552eb
Seqio igio python3 (#2606)
mdehoon Feb 2, 2020
1128846
Apply black style to test_SeqIO_AbiIO.py, version 19.10b0.
Jan 30, 2020
d4fa3dd
Bio.SeqIO.PirIO cleanup
mdehoon Feb 2, 2020
be8f8d2
add file mode checking
mdehoon Feb 2, 2020
a19f1d6
bug fix
mdehoon Feb 2, 2020
1fb8e4e
cleanup in Bio.SeqIO.PdbIO (#2612)
mdehoon Feb 3, 2020
66f2f0d
Convert os.system to subprocess.call (#2568)
chris-rands Feb 3, 2020
309aec7
updated Bio.SeqIO.InsdcIO for python3
mdehoon Jan 31, 2020
fc4d544
Adopting f-strings in Scripts/ dir via flynt (#2511)
chris-rands Feb 3, 2020
2a2a57e
Set project_urls in setup.py
peterjc Jan 27, 2020
e5ab44c
Apply black style, version 19.10b0. test_SeqIO_convert.py and test_Se…
Feb 2, 2020
b316020
TravisCI also runs doc8 on the RST files
peterjc Feb 4, 2020
5bc1fdb
SnapGene cleanup (#2621)
mdehoon Feb 4, 2020
3eb9521
allow file path as argument
mdehoon Feb 5, 2020
b991a3b
Let Bio.SwissProt handle filename vs handle (#2623)
mdehoon Feb 5, 2020
1052cab
Remove subprocess call to python interpreter
MarkusPiotrowski Feb 4, 2020
41037b6
use ElementTree to handle file paths (#2629)
mdehoon Feb 5, 2020
4ba7b8e
Let Bio.SeqIO.XdnaIO handle file paths (#2630)
mdehoon Feb 6, 2020
a3e0302
Allow file paths in FastaIterator and FastaTwoLineIterator
mdehoon Feb 6, 2020
86d8b1c
Apply black style to test_SearchIO_blast_xml.py , version 19.10b0.
Feb 5, 2020
99eb85f
Let Bio.Sequencing.Phd take care of file paths (#2637)
mdehoon Feb 6, 2020
55430ff
update Bio.SeqIO.PdbIO
mdehoon Feb 6, 2020
c37cf60
Add guide on contributing to the Biopython Tutorial (#2625)
bganglia Feb 8, 2020
07051e7
allow Bio.SeqIO.FastaIO and Bio.SeqIO.SeqXmlIO to open a file for wri…
mdehoon Feb 8, 2020
15da5a4
trivial update in Bio.Sequencing.Phd and Bio.SwissProt for python3 (#…
mdehoon Feb 9, 2020
5696c5f
Sequtils checksum python3 (#2651)
mdehoon Feb 9, 2020
1e8176f
test updates for python3 (#2655)
mdehoon Feb 9, 2020
e0060a9
updates to tools tests for python3 (#2657)
mdehoon Feb 9, 2020
fef0cae
update test_Cluster.py for python3 (#2658)
mdehoon Feb 9, 2020
29ba465
updates to test_Compass.py for python3 (#2660)
mdehoon Feb 9, 2020
67beaeb
remove Jython stuff from Entrez tests (#2662)
mdehoon Feb 9, 2020
d854083
use with in test_Enzyme (#2663)
mdehoon Feb 9, 2020
8d899e2
use with statement (#2664)
mdehoon Feb 9, 2020
87a6738
use with (#2666)
mdehoon Feb 9, 2020
3018ad5
use with to open files in test_KEGG_online.py (#2667)
mdehoon Feb 9, 2020
85e8956
BioSQL updates for python3 (#2654)
mdehoon Feb 9, 2020
25ab589
trivial update in Bio.TogoWS for python3 (#2653)
mdehoon Feb 9, 2020
6f7a6a1
update test_NCBI_qblast.py for python3
mdehoon Feb 9, 2020
1f62005
update learning tests for python3
mdehoon Feb 9, 2020
1895714
Apply black style to test_seq* files, version 19.10b0.
Feb 4, 2020
74474be
Rewrite assertEqual to match style of the other assertEqual.
Feb 4, 2020
9a6ab95
Style cosmetics, adjust line length for better look.
Feb 4, 2020
ab3b76f
Style cosmetics, removed comments as they do not align with black style.
Feb 4, 2020
cc81c53
fix Emboss tests for python3, and one more mutli test in FastaIO (#2661)
mdehoon Feb 10, 2020
08d5284
updates to Bio.Graphics tests for python3 (#2659)
mdehoon Feb 10, 2020
b316292
python3 updates to PDB tests
mdehoon Feb 10, 2020
b09757a
python3 updates to test_AlignIO_MauveIO
mdehoon Feb 9, 2020
cc4a30e
updating phylo tests for python3
mdehoon Feb 10, 2020
89baacc
python3 updates for SeqIO tests
mdehoon Feb 10, 2020
bb2825e
update test_TogoWS.py for python3
mdehoon Feb 10, 2020
b7a40f3
update test_Tutorial.py for python3
mdehoon Feb 10, 2020
1a5568e
update test_codonalign for python3
mdehoon Feb 10, 2020
1b479fc
update test_align_substitution_matrices.py for python3
mdehoon Feb 10, 2020
1ec1a89
update Bio.phenotype tests for python3
mdehoon Feb 10, 2020
4a32683
update Bio.SeqRecord for python3 (#2680)
mdehoon Feb 10, 2020
2cad32d
update test_Uniprot for python3 (#2676)
mdehoon Feb 11, 2020
642b3c3
use with statement in test_NCBITextParser.py (#2683)
mdehoon Feb 11, 2020
d1969c4
use with statement in test_motifs (#2684)
mdehoon Feb 11, 2020
6b9e620
use with statement in test_NCBIXML (#2685)
mdehoon Feb 11, 2020
fe730ca
use with statement in test_KeyWList.py (#2687)
mdehoon Feb 11, 2020
0678bc3
use with statement (#2688)
mdehoon Feb 11, 2020
d67233c
use with to open files (#2689)
mdehoon Feb 11, 2020
26165c2
use with statement in test_GenBank (#2682)
mdehoon Feb 11, 2020
b47daf0
Initial commit for parsing
Feb 3, 2020
292d653
I'm the news
Feb 3, 2020
224aed6
Fix newline
Feb 3, 2020
f499015
Use alphabetical order
Feb 3, 2020
47eb3e9
First take on explicit tls/tsa check
Feb 3, 2020
7b5af2b
Apply black style to test_pro* files, version 19.10b0.
Feb 9, 2020
2ae5ba6
Style cosmetic, join strings implicit concatenation, making one line …
Feb 10, 2020
35af00e
Apply black style to test_SearchIO_blast*, version 19.10b0.
Feb 5, 2020
bc57d8d
Apply black style to test_SearchIO_* last files, version 19.10b0.
Feb 7, 2020
d2c6f5d
Apply black style to test_SearchIO_fasta*, version 19.10b0.
Feb 6, 2020
3bea174
Apply black style to test_SearchIO_h*, version 19.10b0.
Feb 6, 2020
d911638
Apply black style to test_SearchIO_blat*, version 19.10b0.
Feb 5, 2020
4802265
Apply black style to more test_SeqIO* files , version 19.10b0.
Jan 30, 2020
9306317
Style cosmetics, split line looks better.
Jan 30, 2020
9815b98
Apply black style to test_SearchIO_exonerate*, version 19.10b0.
Feb 6, 2020
8529dd7
use with in test_GenomeDiagram.py (#2686)
mdehoon Feb 11, 2020
24d46c5
Black on pairwise2
MarkusPiotrowski Feb 4, 2020
9e1dd90
Black on pairwise2 tests
MarkusPiotrowski Feb 11, 2020
958b0d0
Update flake8 settings (#2696)
MarkusPiotrowski Feb 12, 2020
67b9b62
Apply black style to test_SeqIO_QualityIO.py and index files , versi…
Jan 30, 2020
79cd0a2
Style cosmetics, align first line with the rest of paragraph.
Jan 30, 2020
3b92e2a
Fix E731, relocated # noqa E731, misplaced after black style.
Feb 11, 2020
f6bdafe
Apply black to Tests/test_run_tests.py
martonlanga Feb 11, 2020
f4f0047
Remove TODO comments about empty __init__.py
peterjc Feb 12, 2020
d1d3c0d
updated Bio.Phylo for python3 (#2577)
mdehoon Feb 12, 2020
5df641a
use with in test_Medline.py
mdehoon Feb 12, 2020
67c5da0
trim_str is no longer used (#2702)
mdehoon Feb 12, 2020
00a3726
use with (#2703)
mdehoon Feb 12, 2020
8be2e56
use with to open files (#2704)
mdehoon Feb 13, 2020
7cc2c57
use with in SCOP tests (#2705)
mdehoon Feb 13, 2020
a37e6dc
Apply black style to test_Phylo* files, version 19.10b0.
Feb 12, 2020
fcf049e
Replaced assertFalse with assertNotIn; better use of Python3 methods.
Feb 12, 2020
05334c0
use with statement in SeqIO tests (#2706)
mdehoon Feb 13, 2020
dd829b6
use with statement to open files
mdehoon Feb 13, 2020
5296afa
fix online tests (#2709)
mdehoon Feb 13, 2020
ca56075
allow SffIO and XdnaIO to accept a file path (#2714)
mdehoon Feb 14, 2020
c5e8321
let NibWriter accept file names (#2712)
mdehoon Feb 14, 2020
2470128
use with to open files (#2719)
mdehoon Feb 16, 2020
bb70d54
use with (#2720)
mdehoon Feb 16, 2020
2d16866
use with to open files in test_UniGene.py (#2718)
mdehoon Feb 16, 2020
c76472f
use with in test_cellosaurus.py (#2722)
mdehoon Feb 16, 2020
e500d21
use with
mdehoon Feb 16, 2020
ed74f2a
Apply black style to test_SCOP* files, version 19.10b0.
Feb 17, 2020
164ebcd
Fixed "MMCIF2Dict ValueError: Opening quote in middle of word #2261" …
andrei-istrate Feb 17, 2020
0da7d2e
Apply black style to T* files, version 19.10b0.
Feb 16, 2020
bbfefc1
Style cosmetics, joining strings for more standard look.
Feb 17, 2020
429a52d
Apply black style to test_PopGen* files, version 19.10b0.
Feb 17, 2020
3271a6e
Remove unused imports (flake8 F401)
peterjc Feb 14, 2020
8f50dcb
Update .flake8 comments
peterjc Feb 14, 2020
2b8559b
No need for 'except XXX as local_var' here (flake8 F841)
peterjc Feb 14, 2020
672157d
Apply black style to test_phenotype* files, version 19.10b0.
Feb 18, 2020
b349214
Style cosmetics, split the strings, looks better.
Feb 19, 2020
1a1ff41
Apply black style to test_PAML* files, version 19.10b0.
Feb 12, 2020
5c964a7
Use the base class in Bio.SeqIO.Interface to check the number of sequ…
mdehoon Feb 20, 2020
66c8819
Update failing Entrez Tutorial doctest (#2734)
svalqui Feb 21, 2020
9ab1c7f
Apply black style to test_l* files, version 19.10b0.
Feb 21, 2020
73e11fb
define StreamModeError, use in SeqIO & SeqRecord (#2735)
mdehoon Feb 21, 2020
946b8d6
Apply black style to test_NCBI* files, version 19.10b0.
Feb 20, 2020
c29d7fe
don't need _BinaryFormats any more in SeqIO.write (#2741)
mdehoon Feb 21, 2020
09e29e1
Entrez efetch: Bug in id handling? (#2707)
MarkusPiotrowski Feb 22, 2020
fa48b54
Optimise algorithm of `Bio.SeqUtils.IsoelectricPoint` (#2665)
TianyiShi2001 Feb 22, 2020
555863d
Remove Python 2 specific __div__ and __rdiv__
peterjc Jan 9, 2020
3fc911b
use defaultdict (#2745)
mdehoon Feb 23, 2020
f46c1b4
update crc32 in Bio.SeqUtils
mdehoon Feb 23, 2020
98ca383
remove ancient comment
mdehoon Feb 23, 2020
94a3110
cleanup compare Bio.SCOP (#2748)
mdehoon Feb 24, 2020
091786f
Apply black style to test_HMM* files, version 19.10b0.
Feb 24, 2020
57a6b38
move handle url check outside with block (#2755)
mdehoon Feb 24, 2020
68974af
remove IGNORE_EXCEPTION_DETAIL in doctest
mdehoon Feb 23, 2020
38c9127
Adjust blastp search with short_query for new matrix
MarkusPiotrowski Feb 22, 2020
153ed15
Solve Python2/3 issue with StringIO
MarkusPiotrowski Feb 23, 2020
143e66f
Remove unused imports and 'EmbossWriter' Class (#2759)
chris-rands Feb 25, 2020
cf8ee0e
update Bio.PDB for python3
mdehoon Feb 23, 2020
db13552
free view buffer (#2760)
mdehoon Feb 27, 2020
90a1138
deprecate class
chris-rands Feb 26, 2020
bbe5c78
Apply black style to test_GenBank.py, version 19.10b0; after v19.3b0…
Feb 27, 2020
98622c4
Implements assert changes as detailed in biopython #2698
deekerno Feb 28, 2020
287ff66
Added name to NEWS and CONTRIB
deekerno Feb 28, 2020
e00322f
Use Python 3.1+ assertIsNot method in tests
peterjc Feb 12, 2020
6d68f69
Overdue removal of Seq __hash__ warning
peterjc Feb 28, 2020
c186054
apply black and use unittest assert methods (#2767)
svalqui Feb 29, 2020
4c9dfd6
Implements assert changes as detailed in biopython #2700
deekerno Mar 3, 2020
4845b2e
Bugfix for test_phyml_tool (#2770)
MarkusPiotrowski Mar 3, 2020
98cb8e0
Apply black style to test_Entrez* files, version 19.10b0.
Mar 4, 2020
2aab2cf
Apply black to Tests/test_raxml_tool.py (#2780)
peterjc Mar 4, 2020
d577e2b
cleanup in test_Phylo (#2751)
mdehoon Mar 5, 2020
a44d1fc
python3 cleanup in Bio.Phylo (#2747)
mdehoon Mar 5, 2020
f1e0d96
Make mocked version of NCBI_qblast tests (#2779)
MarkusPiotrowski Mar 6, 2020
5341de1
Use StreamModeError consistently, and avoid the _BinaryFormats local …
mdehoon Mar 8, 2020
a622740
Apply black style to test_AlignIO.py, version 19.10b0.
Mar 9, 2020
7c6a7f3
Apply black style to test_Emboss* files, version 19.10b0. (#2785)
svalqui Mar 9, 2020
c17b351
Use StreamModeError to get rid of the _BinaryFormats private variable…
mdehoon Mar 9, 2020
90e031b
check file mode
mdehoon Feb 7, 2020
88e3ce0
Convert handle.readline() to next(handle)
mdehoon Feb 7, 2020
20cb4d6
Loop over handles instead of using next
mdehoon Feb 7, 2020
08d5986
Adding remaining changes from #2649, and using StreamModeError consis…
mdehoon Mar 10, 2020
abb2d15
Apply black style to test_AlignIO* files, version 19.10b0.
Mar 9, 2020
a3cc262
Apply black style to test_Wise.py, version 19.10b0.
Mar 11, 2020
5f75caa
Apply black style to test_XXmotif_tool.py, version 19.10b0.
Mar 10, 2020
523a975
Apply black style to test_Tutorial.py, version 19.10b0.
Mar 11, 2020
4a3041b
Cosmetic change, change string with f-string, looks better.
Mar 12, 2020
80fcb33
Apply black style to test_SffIO.py, version 19.10b0.
Mar 12, 2020
47526c8
Apply black style to test_samtools_tool.py, version 19.10b0.
Mar 12, 2020
8c39730
Apply black style to test_SubsMat.py, version 19.10b0.
Mar 12, 2020
fbcb497
use assertIn
mdehoon Mar 14, 2020
8ac7399
assertListEqual will check for length
mdehoon Mar 14, 2020
afb28b0
don't add tests at runtime in test_AlignIO_convert.py
mdehoon Mar 14, 2020
e54e56f
travis worries about having too many blank lines
mdehoon Mar 14, 2020
d9fb098
Use unittest in test_PopGen_GenePop.py (#2805)
mdehoon Mar 15, 2020
86bcf43
Don't add tests at run time, and use unittest asserts
mdehoon Mar 18, 2020
a7e6184
don't add tests at run time
mdehoon Mar 19, 2020
fdd4c7b
use unittest API (#2812)
mdehoon Mar 19, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
58 changes: 58 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
skip_tags: true
clone_depth: 1

os: Visual Studio 2015

environment:
matrix:
- PY_MAJOR_VER: 3
PYTHON_ARCH: "x86"
- PY_MAJOR_VER: 3
PYTHON_ARCH: "x86_64"

matrix:
fast_finish: true

# Enable MySQL and PostgreSQL for BioSQL tests
services:
- postgresql
- mysql

before_build:
- SET PGUSER=postgres
- SET PGPASSWORD=Password12!
- SET PATH=C:\Program Files\PostgreSQL\9.6\bin\;%PATH%
- psql -U postgres -c "CREATE USER biosql_user WITH PASSWORD 'biosql_pass';"
- psql -U postgres -c "CREATE DATABASE biosql_test OWNER biosql_user;"

build_script:
# If there's a newer build queued for the same PR, cancel this one
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
- ps: Start-FileDownload "https://repo.continuum.io/miniconda/Miniconda$env:PY_MAJOR_VER-latest-Windows-$env:PYTHON_ARCH.exe" C:\Miniconda.exe; echo "Finished downloading miniconda"
- cmd: C:\Miniconda.exe /S /D=C:\Py
- SET PATH=C:\Py;C:\Py\Scripts;C:\Py\Library\bin;%PATH%
- conda config --set always_yes yes
- conda update conda
# Pinning pillow==5.4.1 as version 6 breaks on current latest reportlab
# https://bitbucket.org/rptlab/reportlab/issues/176/incompatibility-with-pillow-600
- conda install setuptools numpy psycopg2 matplotlib networkx reportlab scipy coverage pillow==5.4.1

# Pinning mysql-connector-python==8.0.13 for Python 3 as 8.0.16 breaks our tests
# https://github.com/biopython/biopython/issues/2120
- conda install mysql-connector-python==8.0.13
- python setup.py build

test_script:
- python -c "import sys; print(sys.version)"
- cd Tests
- cp biosql.ini.appveyor biosql.ini
- coverage run run_tests.py --offline
- coverage xml
- cd ..

after_test:
- conda install -c conda-forge codecov
- codecov --file Tests/coverage.xml -X pycov -X gcov
7 changes: 7 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# See https://github.com/codecov/support/wiki/Codecov-Yaml
# and https://codecov.io/gh/biopython/biopython which is
# updated via our TravisCI and AppVeyor testing.

coverage:
ignore:
- "Tests/*"
3 changes: 0 additions & 3 deletions .cvsignore

This file was deleted.

88 changes: 88 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# =================================================
# flake8:
# pycodestyle: E### (error), W### (warning)
# pyflake: F### (error)
# pydocstyle: D1## - Missing Docstrings
# D2## - Whitespace Issues
# D4## - Docstring Content issues
# flake8-bugbear: B###
# flake8-quotes: Q###
# flake8-black : BLK###
# flake8-commas: C#### (in case installed locally)
# flake8-pie : PIE### (in case installed locally)
# flake8-sfs : SFS### (in case installed locally)
# =================================================

[flake8]
doctests = True
# Exclude some file types and folders that shouldn't be checked:
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.github,build,
ignore =
# =============================================================
# Biopython's 'standard' ignores we can agree to always accept:
# =============================================================
W503, # line-break before binary operator
# deliberately ignore (in favour of enforcing W504)
# ===========================================
# Ignores that we have to accept for a while:
# ===========================================
E203, # whitespace before ':'
# gives false positives after running black, see
# https://github.com/PyCQA/pycodestyle/issues/373
E501, # line too long
# Maybe we find a sensible limit, e.g. 88 (black) and enforce it
B007, # Loop control variable not used within the loop body.
# If this is intended, start the name with an underscore
# =========================================
# Optional ignores for local installations:
# =========================================
PIE781, # Assigning to temp variable and then returning, not enforcing
SFS101,SFS301, # typical string formatting

# ========================
# Folder specific ignores:
# ========================
per-file-ignores =
Bio/*:F401,F841,D105,B009,B010,B011,C812,C815
Tests/*:E123,F401,F841,D101,D102,D103,W504,B009,B010,B011,C812,BLK100

# Due to a bug in flake8, we need the following lines for running the
# pre-commit hook. If you made edits above, please change also here!
/Bio/*:F401,F841,D105,B009,B010,B011,C812,C815
/Tests/*:E123,F401,F841,D101,D102,D103,W504,B009,B010,B011,C812,BLK100

# =============================
# per-file-ignores error codes:
# =============================
#Bio/*:F401 module imported but unused TODO? (107 occurrences)
# F841 local variable is assigned to but never used TODO? (55 occurrences)
# D105 missing docstring magic method (121 occurrences)
# B009 do not call getattr with a constant attribute value,
# it is not any safer than normal property access
# B010 do not call setattr with a constant attribute value,
# it is not any safer than normal property access
# B011 do not call assert False since python -O removes these calls;
# instead callers should raise AssertionError().
# C812 missing trailing comma
# C815 missing trailing comma in Python 3.5+
#Tests/*:E123 closing bracket does not match indentation of opening bracket's line
# (41 occurences, may be removed by Black)
# F401 module imported but unused TODO? (88 occurrences)
# F841 local variable is assigned to but never used TODO? (64 occurrences)
# D101 missing docstring in public class (207 occurrences)
# D102 missing docstring in public method (956 occurrences)
# D103 missing docstring in public functions (52 occurrences)
# W504 line break after binary operator (97 occurences, may be removed by black)
# B009 do not call getattr with a constant attribute value,
# it is not any safer than normal property access
# B010 do not call setattr with a constant attribute value,
# it is not any safer than normal property access
# B011 do not call assert False since python -O removes these calls;
# instead callers should raise AssertionError()
# C812 missing trailing comma
# BLK100 Black would make changes

# =======================
# flake8-quotes settings:
# =======================
inline-quotes = double
27 changes: 27 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# On Windows, git can be setup to convert text files to use
# DOS/Windows newlines (\r\n) rather than Unix style (\n).
# This should be harmless for most of our unit tests...
#
# However, where testing indexing and get_raw (including the
# BGZF tests comparing the uncompressed file to the compressed
# file) it can be important to preserve the line endings in git.

Tests/Fasta/f002 binary
Tests/GenBank/cor6_6.gb binary
Tests/GenBank/NC_000932.gb binary
Tests/Quality/example.fastq binary
Tests/Quality/example_dos.fastq binary
Tests/Blast/wnts.xml binary

# This pickle file has to be using Unix new lines otherwise at
# least Python 3.4's C pickle parser fails with exception:
# _pickle.UnpicklingError: the STRING opcode argument must be quoted

Tests/SubsMat/acc_rep_mat.pik binary

# MMTF is a binary file format,
Tests/PDB/4CUP.mmtf binary

# UCSC Nib files are binary:
Tests/Nib/test_bigendian.nib binary
Tests/Nib/test_littleendian.nib binary
69 changes: 69 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# See https://help.github.com/articles/about-codeowners/
# and https://github.com/blog/2392-introducing-code-owners
#
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.
#
# These owners will be the default owners for everything in the repo.
# * @defunkt
#
# Order is important. The last matching pattern has the most precedence.
# So if a pull request only touches javascript files, only these owners
# will be requested to review.
# *.js @octocat @github/js
#
# You can also use email addresses if you prefer.
# docs/* docs@example.com
#

Bio/Alphabet @peterjc

Bio/Align/* @peterjc
Bio/Align/_aligners.c @mdehoon
Bio/AlignIO/* @peterjc
Tests/test_AlignIO* @peterjc

Bio/bgzf.py @peterjc
Tests/test_bgzf*.py @peterjc

Bio/Cluster/* @mdehoon
Tests/test_Cluster*.py @mdehoon

Bio/codonalign/* @zruan
Tests/test_codonalign*.py @zruan

Bio/Entrez/* @mdehoon
Tests/test_Entrez*.py @mdehoon

Bio/GenBank/* @peterjc
Tests/test_GenBank*.py @peterjc
Tests/test_EMBL*.py @peterjc

Bio/Graphics/GenomeDiagram/* @widdowquinn @peterjc
Tests/test_GenomeDiagram*.py @widdowquinn @peterjc

Bio/motifs/* @mdehoon
Tests/test_motifs*.py @mdehoon

Bio/PDB/* @joaorodrigues @lennax
Tests/test_PDB*.py @joaorodrigues @lennax

Bio/Phylo/* @etal
Tests/test_Phylo*.py @etal

Bio/PopGen/* @tiagoantao
Tests/test_PopGen*.py @tiagoantao

Bio/SearchIO/* @bow
Tests/test_SearchIO*.py @bow

Bio/Seq*.py @peterjc
Bio/SeqIO/* @peterjc
Tests/test_Seq* @peterjc
Tests/test_seq* @peterjc

Bio/SeqIO/AbiIO.py @peterjc @bow
Tests/test_SeqIO_AbiIO.py @peterjc @bow

Bio/TogoWS/* @peterjc
Tests/test_TogoWS*.py @peterjc
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### Setup

I am reporting a problem with Biopython version, Python version, and operating
system as follows:

```python
import sys; print(sys.version)
import platform; print(platform.python_implementation()); print(platform.platform())
import Bio; print(Bio.__version__)
```

(*Please copy and run the above in your Python, and copy-and-paste the output*)

### Expected behaviour

(*Please fill this in*)

### Actual behaviour

(*Please fill this in, and provide any exception message in full*)

### Steps to reproduce

(*Please fill this in *)
15 changes: 15 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
This pull request addresses issue #...

<!--- Please read each of the following items and confirm by replacing
!--the [ ] with a [X] --->

- [ ] I hereby agree to dual licence this and any previous contributions under both
the _Biopython License Agreement_ **AND** the _BSD 3-Clause License_.

- [ ] I have read the ``CONTRIBUTING.rst`` file, have run ``flake8`` locally, and
understand that AppVeyor and TravisCI will be used to confirm the Biopython unit
tests and style checks pass with these changes.

- [ ] I have added my name to the alphabetical contributors listings in the files
``NEWS.rst`` and ``CONTRIB.rst`` as part of this pull request, am listed
already, or do not wish to be listed. (*This acknowledgement is optional.*)
Loading