Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
truenas-rk3588
truenas
Commits
a3e1be28
Commit
a3e1be28
authored
4 years ago
by
William Grzybowski
Browse files
Options
Download
Email Patches
Plain Diff
Bye Travis, Hi PEP8 Speaks
parent
6f0cd879
base
NAS-117105-1
NAS-119224
NAS-119538-removed
NAS-119664
NAS-121347
NAS-122102-22.12.3
NAS-123000
NAS-123267
NAS-123503-22.12.4
NAS-123516-23.10
NAS-124167
NAS-124388-23.10
NAS-124980-23.10.1
NAS-125227
NAS-125258
NAS-125285
NAS-125301
NAS-125446
NAS-125491-23.10.1
NAS-125499
NAS-125546-23.10.2
NAS-125719
NAS-125816
NAS-125816-backup
NAS-125822
NAS-125830
NAS-125932-24.04
NAS-126857-23.10.2
NAS-126958
NAS-127024-24.04-RC.1
NAS-127087
NAS-127267-24.04-RC.1
NAS-127318
NAS-127422-24.04-RC.1
NAS-127543
NAS-127559-24.04-RC.1
NAS-127702
NAS-127840-24.04.0
NAS-127922-24.04.0
NAS-128040-24.04.0
ad_testing
add-audit-results-cache
add-fstype-check
add-internal-methods
add-more-filesystem-roles
add-nfs4acl-test
add-public-audit
add-realm-validation
add-shadow-fields
add-written-counter
allow-eula-readonly
audit-cache-pagination
awalker_tesitng
awalker_testing
awalker_testing_ad
awalker_testing_mock
beadm-error
bmeagher_testing
bmeagher_testing3
check_create_ancestors
cluster-test
configurable-testing
df_fail_test_012
enhance-sharing-manger-role
expand-api-key-testing
expand-valdiation-smb
expand-verbosity-readonly-role
fail_test_012
failover-test
fix-aclmode-validation
fix-and-improve-audit-query
fix-broken-api-tests
fix-ci-path
fix-haad-test
fix-in-rin-filter_list
fix-share-acl-toggling-bluefin
fix-smbconf-test
fix-snmp
freeipa-testing
fs-test
gluster-test
improve-alert
improve-audit-query-validation
improve-filterable
improve-initial-install
integration-test-k8s
ldap-improvements
ldap-test
libpam-test
make-ipaddresses-to-register-configurable
master
module-param-change-check
more_nfs_failover_fixes
mrehan/disable-kubernetes-test
mrehan/fix-ups-tests
mrehan/ixdiagnose-integration
new-api
new-jenkins
new-jenkins2
passdb-test
persistent-client-tests
prevent-readonly-web-shell
pristine-cluster
privilege.roles
randomize-privilege-test
reduce-log-spam-quota
refactor-smb
rel-v0.0.1
release/21.06-BETA.1
release/21.08-BETA.1
release/21.08-BETA.2
release/22.02
release/22.02-RC.1
release/22.02-RC.1-1
release/22.02-RC.1-2
release/22.02-RC.2
release/22.02-test
release/22.02.1
release/22.02.2
release/22.02.3
release/22.02.4
release/22.12
release/22.12-BETA.1
release/22.12-BETA.2
release/22.12-RC.1
release/22.12.1
release/22.12.2
release/22.12.3
release/22.12.3.1
release/22.12.3.2
release/22.12.4
release/22.12.4.1
release/22.2-RC.1
release/23.10-BETA.1
release/23.10-RC.1
release/23.10.0
release/23.10.0.1
release/23.10.1
release/23.10.1.1
release/23.10.1.2
release/23.10.1.3
release/23.10.2
release/24.04-BETA.1
release/24.04-RC.1
release/24.04.0
remove-json-auth-audit-samba
remove-pool-dataset-permission
roles-test
set-hashes-private
set-iosqe_async-smb-read
setup-ad
smb-proto-tests-refactor
smbaux-testing
soln/rm_enc_swap
sort-enclosures
spaces-tests
stable/angelfish
stable/bluefin
stable/cobia
stable/dragonfish
sysdataset-setup-pool-create
test-2fa
test-access
test-acl
test-ad
test-ad-cobia
test-audit
test-audit-changes
test-audit-redaction
test-auth
test-cluster
test-dataset-acl
test-disable-mock
test-freeipa
test-group
test-ldap
test-new-freeipa
test-noauthz
test-rbac
test-refactor-smb
test-refactor-smb2
test-roles
test-runtest-fix
test-shadow
test-share-name
test-sharesec
test-simple-share
test-smb-comments
test-snmp
test-statx
test-syslog
test190-test
test_2fa
test_priv
test_syslog
testing-refine-branchout-process
testing-refine-branchout-process2
truenas/21.08-stable
use-acl-inheritance-new-dataset
zectl-callerror-stderr
TS-24.04-RC.1
TS-24.04-BETA.1
TS-23.10.2
TS-23.10.1.3
TS-23.10.1.2
TS-23.10.1.1
TS-23.10.1
TS-23.10.0.1
TS-23.10.0
TS-23.10-RC.1
TS-23.10-BETA.1
TS-22.12.4.2
TS-22.12.4.1
TS-22.12.4
TS-22.12.3.3
TS-22.12.3.2
TS-22.12.3.1
TS-22.12.3
TS-22.12.2
TS-22.12.1
TS-22.12.0
TS-22.12-RC.1
TS-22.12-BETA.2
TS-22.12-BETA.1
TS-22.12-ALPHA.1
TS-22.02.4
TS-22.02.3
TS-22.02.2.1
TS-22.02.2
TS-22.02.1
TS-22.02.0.1
TS-22.02.0
TS-22.2.0
TS-22.02.RELEASE.1
TS-22.02-RC.2
TS-22.02-RC.1
TS-22.02-RC.1-2
TS-22.02-RC.1-1
TS-21.08-BETA.2
TS-21.08-BETA.1
TS-21.06-BETA.1
TS-21.04-ALPHA.1
TS-21.02-ALPHA.1
TS-20.12-ALPHA
TS-12.12.3
DN110M-CS-v2.0
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.pep8speaks.yml
+15
-0
.pep8speaks.yml
.travis.yml
+0
-10
.travis.yml
.travis/flake8.sh
+0
-33
.travis/flake8.sh
with
15 additions
and
43 deletions
+15
-43
.pep8speaks.yml
0 → 100644
View file @
a3e1be28
scanner
:
diff_only
:
True
linter
:
flake8
flake8
:
ignore
:
-
E402
-
E501
-
W504
count
:
False
show-source
:
False
statistics
:
False
hang-closing
:
False
no_blank_comment
:
True
This diff is collapsed.
Click to expand it.
.travis.yml
deleted
100644 → 0
View file @
6f0cd879
language
:
python
python
:
-
3.8
install
:
-
sudo apt-get -qq update
-
sudo apt-get -y install git
-
pip3 install flake8
script
:
.travis/flake8.sh
This diff is collapsed.
Click to expand it.
.travis/flake8.sh
deleted
100755 → 0
View file @
6f0cd879
#!/bin/sh
set
-x
# Run pep8 on all .py files in all subfolders
# We must ignore E402 module level import not at top of file
# because of use case sys.path.append('..'); import <module>
tmpafter
=
$(
mktemp
)
find src
-name
\*
.py
-exec
flake8
--ignore
=
E402,E501,W504
{}
+ | egrep
-v
"alembic/versions/|usr/local/share/pysnmp/mibs/"
>
$tmpafter
num_errors_after
=
`
cat
$tmpafter
|
wc
-l
`
echo
$num_errors_after
if
[
"
${
TRAVIS_PULL_REQUEST
}
"
=
"false"
]
;
then
git checkout HEAD~
else
git remote set-branches origin
${
TRAVIS_BRANCH
}
git fetch
--depth
1 origin
${
TRAVIS_BRANCH
}
git checkout
${
TRAVIS_BRANCH
}
fi
tmpbefore
=
$(
mktemp
)
find src
-name
\*
.py
-exec
flake8
--ignore
=
E402,E501,W504
{}
+ | egrep
-v
"alembic/versions/|usr/local/share/pysnmp/mibs/"
>
$tmpbefore
num_errors_before
=
`
cat
$tmpbefore
|
wc
-l
`
echo
$num_errors_before
if
[
$num_errors_after
-gt
$num_errors_before
]
;
then
echo
"New Flake8 errors were introduced:"
diff
-u
$tmpbefore
$tmpafter
exit
1
fi
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help