We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeac7ef commit 0ba2a77Copy full SHA for 0ba2a77
5 files changed
.travis.yml
@@ -14,7 +14,7 @@ matrix:
14
- pip install pytest-flake8
15
- pip install .
16
script:
17
- - pytest --flake8 -m flake8
+ - flake8 nuc_processing test setup.py
18
after_success: []
19
install:
20
- pip install pytest-cov codecov
nuc_processing/NucProcess.py
@@ -1449,7 +1449,7 @@ def map_reads(fastq_file, genome_index, align_exe, num_cpu, ambig, qual_scheme,
1449
patt_4 = re.compile('(\d+) \(.+\) aligned >1 times')
1450
1451
cmd_args = [align_exe,
1452
- '-D', '20', '-R', '3', '-N', '0', '-L', '20', '-i', 'S,1,0.50',
+ '-D', '20', '-R', '3', '-N', '0', '-L', '20', '-i', 'S,1,0.50',
1453
'-x', genome_index,
1454
'-k', '2',
1455
'--reorder',
@@ -2654,7 +2654,7 @@ def pie_values(data, names):
2654
hist, edges = frag_sizes
2655
data_set = [(int(edges[i]), int(val)) for i, val in enumerate(hist)]
2656
svg_doc.graph(x1, y+chart_height, table_width/2, th-chart_height-40, [data_set], 'Size', 'Count',
2657
- names=None, colors=None, graph_type='line',
+ names=None, colors=None, graph_type='line',
2658
symbols=None, line_widths=None, symbol_sizes=None,
2659
legend=False, title=None, plot_offset=(80, 20))
2660
y += th
nuc_processing/NucSvg.py
@@ -465,7 +465,7 @@ def color_func(x, p=pos_color, n=neg_color, b=bg_color):
465
self.text(y_axis_label, (x3, y), anchor='middle', size=font_size, bold=False, font=font, color=line_color, angle=270, vert_align=None)
466
467
def graph(self, x, y, width, height, data_lists, x_label, y_label,
468
- names=None, colors=None, graph_type=LINE_TYPE,
+ names=None, colors=None, graph_type=LINE_TYPE,
469
470
legend=False, title=None, x_labels=None, plot_offset=(100, 50),
471
axis_color='black', bg_color='#F0F0F0', font=None, font_size=16, line_width=1,
nuc_processing/split_fastq_barcodes.py
@@ -820,7 +820,7 @@ def get_bc_file_name(path_root, bc_key, sample_names, nsn, file_ext):
820
msg = '{} barcode: {} count {:,} ({:.2f}%)'.format(sample_names[bc_key], bc_key, nb, nb/float(100.0*n_reads))
821
info(msg)
822
823
- _write_analysis_file(bc_counts, sample_names, analysis_file_path)
+ _write_analysis_file(bc_counts, sample_names, analysis_file_path)
824
825
826
if __name__ == '__main__':
setup.cfg
@@ -1,10 +1,15 @@
1
-[tool:pytest]
2
-flake8-ignore =
+[flake8]
+ignore =
3
E401
4
E261
5
E111
6
E114
7
E129
8
- nuc_processing/test/*.py F403 F405
9
- nuc_processing/nuc_processing/*.py E501 E231 E228 E741
10
-flake8-max-line-length = 101
+ E121
+ E226
+ W503
11
+ W504
12
+
13
+ test/*.py F403 F405
+ nuc_processing/*.py E501 E231 E228 E741
+max-line-length = 100
0 commit comments