Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
ac5f5d3d
Commit
ac5f5d3d
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
MNT: Ignore more warnings in style
parent
23a40096
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/contributing.rst
+2
-1
2 additions, 1 deletion
doc/contributing.rst
setup.cfg
+1
-1
1 addition, 1 deletion
setup.cfg
with
3 additions
and
2 deletions
doc/contributing.rst
+
2
−
1
View file @
ac5f5d3d
...
@@ -144,6 +144,7 @@ for a list of error codes):
...
@@ -144,6 +144,7 @@ for a list of error codes):
- E302: expected 2 blank lines, found 0
- E302: expected 2 blank lines, found 0
- E303: too many blank lines (3)
- E303: too many blank lines (3)
- E701: multiple statements on one line (colon)
- E701: multiple statements on one line (colon)
- W504: line break after binary operator
The ``pylint`` tool can be *very* opinionated about how you write your code,
The ``pylint`` tool can be *very* opinionated about how you write your code,
...
@@ -162,7 +163,7 @@ refactoring and convention messages, and a few select warnings (type ``pylint
...
@@ -162,7 +163,7 @@ refactoring and convention messages, and a few select warnings (type ``pylint
To check code with ``flake8`` and ``pylint``, I use the following commands::
To check code with ``flake8`` and ``pylint``, I use the following commands::
flake8 --ignore=E127,E201,E203,E221,E222,E241,E271,E272,E301,E302,E303,E701 fsl
flake8 --ignore=E127,E201,E203,E221,E222,E241,E271,E272,E301,E302,E303,E701
,W504
fsl
pylint --extension-pkg-whitelist=numpy,wx \
pylint --extension-pkg-whitelist=numpy,wx \
--generated-members=np.int8,np.uint8,np.int16,np.uint16,np.int32,np.uint32,np.int64,np.uint64,np.float32,np.float64,np.float128,wx.PyDeadObjectError \
--generated-members=np.int8,np.uint8,np.int16,np.uint16,np.int32,np.uint32,np.int64,np.uint64,np.float32,np.float64,np.float128,wx.PyDeadObjectError \
--disable=R,C,W0511,W0703,W1202 fsl
--disable=R,C,W0511,W0703,W1202 fsl
This diff is collapsed.
Click to expand it.
setup.cfg
+
1
−
1
View file @
ac5f5d3d
...
@@ -22,4 +22,4 @@ testpaths = tests
...
@@ -22,4 +22,4 @@ testpaths = tests
addopts
=
-v --niters=50 --cov=fsl -m "not longtest"
addopts
=
-v --niters=50 --cov=fsl -m "not longtest"
[flake8]
[flake8]
ignore
=
E127,E201,E203,E221,E222,E241,E271,E272,E301,E302,E303,E701
ignore
=
E127,E201,E203,E221,E222,E241,E271,E272,E301,E302,E303,E701,W504
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment