Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
biopython/.flake8 at data2code · data2code/biopython · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
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 }}
data2code
/
biopython
Public
forked from
biopython/biopython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
data2code
Breadcrumbs
biopython
/
.flake8
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
116 lines (111 loc) · 4.72 KB
data2code
Breadcrumbs
biopython
/
.flake8
Copy path
Top
File metadata and controls
Code
Blame
116 lines (111 loc) · 4.72 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#
=================================================
#
flake8:
#
pycodestyle: E### (error), W### (warning)
#
pyflake: F### (error)
#
flake8-blind-except: B###
#
flake8-bugbear: B###
#
flake8-quotes: Q###
#
flake8-black : BLK###
#
flake8-commas: C8## (in case installed locally)
#
flake8-pie : PIE### (in case installed locally)
#
flake8-sfs : SFS### (in case installed locally)
#
flake8-pydocstyle: D### (in case installed locally)
#
=================================================
[flake8]
doctests
= True
rst-roles
=
class,
func,
meth,
mod,
data,
rst-directives
=
seealso,
todo,
#
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
E122,E131,E124,E126,E127,E128,E201,E241,
#
E112 continuation line missing indentation or outdented
#
E131 continuation line unaligned for hanging indent
#
E124 closing bracket does not match visual indentation
#
E126 continuation line over-indented for hanging indent
#
E127 continuation line over-indented for visual indent
#
E128 continuation line under-indented for visual indent
#
E201 whitespace after '['
#
E241 multiple spaces after ','
#
ignoring as using black for layout (if this is triggered,
#
it would be in a snippet explicitly excluded from black)
E501,
#
line too long
#
Maybe we find a sensible limit, e.g. 88 (black) and enforce it
E704,
#
multiple statements on one line (def)
#
seeing some false positives with @overload ... for type annotation
B007,
#
Loop control variable not used within the loop body.
#
If this is intended, start the name with an underscore
B028,
#
No explicit stacklevel keyword argument found.
#
The warn method from the warnings module uses a stacklevel of 1
#
by default... It is therefore recommended to use a stacklevel of
#
2 or greater to provide more information to the user
B902,
#
=========================================
#
Optional ignores for local installations:
#
=========================================
PIE781,
#
Assigning to temp variable and then returning, not enforcing
SFS101,SFS301,
#
typical string formatting
C8,
#
everything from flake8-commas - just use black
D,
#
using ruff for the historic flake8-pydocstyle codes
#
========================
#
Folder specific ignores:
#
========================
per-file-ignores
=
Bio/*:F401,F841,B009,B010
Tests/*:F401,F841,W291,B009,B010,B015
#
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,B009,B010
/Tests/*:F401,F841,D101,W291,B009,B010,B015
#
Explanation of the codes being ignored in Bio/ and Tests/:
#
#
Bio/*:F401 module imported but unused TODO? (97 occurrences)
#
F841 local variable is assigned to but never used TODO? (58 occurrences)
#
B009 do not call getattr with a constant attribute value (5 occurrences),
#
it is not any safer than normal property access
#
B010 do not call setattr with a constant attribute value (11 occurrences),
#
it is not any safer than normal property access
#
Tests/*:F401 module imported but unused TODO? (115 occurrences)
#
F841 local variable is assigned to but never used TODO? (93 occurrences)
#
D101 missing docstring in public class (244 occurrences)
#
D102 missing docstring in public method (1368 occurrences)
#
D103 missing docstring in public functions (20 occurrences)
#
W291 trailing whitespace (due to alignment tests)
#
B009 do not call getattr with a constant attribute value (10 occurrences),
#
it is not any safer than normal property access
#
B010 do not call setattr with a constant attribute value (7 occurrences),
#
it is not any safer than normal property access
#
B015 Pointless comparison. This comparison does nothing ... (108 occurrences)
#
(Intended to trigger exceptions in our tests)
#
=======================
#
flake8-quotes settings:
#
=======================
inline-quotes
= double
You can’t perform that action at this time.