Skip to content

Commit

Permalink
Merge branch 'master' into port-50742
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz authored Apr 10, 2020
2 parents 78540fe + 6258f6b commit 774cf94
Show file tree
Hide file tree
Showing 2,698 changed files with 428,890 additions and 367,528 deletions.
2 changes: 1 addition & 1 deletion .ci/docs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runDocs(
env: env)
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-amazon2-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-archlts-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-centos7-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-centos7-py3-cloud
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 0,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-centos7-py3-m2crypto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-centos7-py3-proxy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-centos7-py3-pycryptodomex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-centos7-py3-tcp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-centos8-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-debian10-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-debian9-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-fedora30-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-fedora31-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-macosxhighsierra-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

// Pre-nox pipeline
runTestSuite(
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-macosxmojave-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

// Pre-nox pipeline
runTestSuite(
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-macosxsierra-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

// Pre-nox pipeline
runTestSuite(
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-opensuse15-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-ubuntu1604-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-ubuntu1604-py3-m2crypto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-ubuntu1604-py3-proxy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-ubuntu1604-py3-pycryptodomex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-ubuntu1604-py3-tcp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-ubuntu1804-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-windows2016-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/kitchen-windows2019-py3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runTestSuite(
concurrent_builds: 1,
Expand Down
2 changes: 1 addition & 1 deletion .ci/lint
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('salt@master-1.6') _
@Library('salt@master-1.7') _

runLint(
env: env)
Expand Down
6 changes: 6 additions & 0 deletions .ci/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@Library('[email protected]') _

runPreCommit(
env: env)

// vim: ft=groovy
21 changes: 13 additions & 8 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@ codecov:
ci:
- drone.saltstack.com
- jenkinsci.saltstack.com
# max_report_age: 24 # The age you want coverage reports to expire at, or if you
# # want to disable this check. Expired reports will not be processed by codecov.
# require_ci_to_pass: yes # Less spammy. Only notify on passing builds.

branch: master

notify: off # Disable Notifications
# notify:
# require_ci_to_pass: yes # Less spammy. Only notify on passing builds.
# after_n_builds: 46 # Only notify after N builds
# # This value is the output of:
# # sh -c 'echo "$(ls .ci/ | grep kitchen | wc -l)"'
# wait_for_ci: yes # Should Codecov wait for all CI statuses to complete before sending ours.
# # Note: Codecov considers all non-codecov statues to be CI statuses

# Disable Notifications
notify: off

ignore:
- ^*.py$ # python files at the repo root, ie, setup.py
- doc/.* # ignore any code under doc/
- salt/ext/.* # ignore any code under salt/ext

coverage:
round: up
Expand All @@ -27,7 +30,7 @@ coverage:
project: # measuring the overall project coverage
default: false # disable the default status that measures entire project
salt: # declare a new status context "salt"
enabled: yes # must be yes|true to enable this status
enabled: no # must be yes|true to enable this status
paths: "!tests/" # remove all files in "tests/"
target: auto # will use the coverage from the base commit (pull request base or parent commit) coverage to compare against.
base: auto # will use the pull request base if the commit is on a pull request. If not, the parent commit will be used.
Expand All @@ -36,7 +39,7 @@ coverage:
if_not_found: success # if parent is not found report status as success, error, or failure
if_ci_failed: error # if ci fails report status as success, error, or failure
tests: # declare a new status context "tests"
enabled: yes # must be yes|true to enable this status
enabled: no # must be yes|true to enable this status
#target: 100% # we always want 100% coverage here
target: auto # auto while we get this going
base: auto # will use the pull request base if the commit is on a pull request. If not, the parent commit will be used.
Expand All @@ -50,7 +53,7 @@ coverage:
# entire pull requests Coverage Diff. Checking if the lines
# adjusted are covered at least X%.
default:
enabled: yes # must be yes|true to enable this status
enabled: no # must be yes|true to enable this status
target: 100% # Newly added lines must have 100% coverage
if_no_uploads: error # will post commit status of "error" if no coverage reports were uploaded
# options: success, error, failure
Expand All @@ -59,7 +62,7 @@ coverage:

changes: # if there are any unexpected changes in coverage
default:
enabled: yes # must be yes|true to enable this status
enabled: no # must be yes|true to enable this status
if_no_uploads: error
if_not_found: success
if_ci_failed: error
Expand All @@ -68,9 +71,11 @@ flags:
salt:
paths:
- salt/
carryforward: true # https://docs.codecov.io/docs/carryforward-flags
tests:
paths:
- tests/
carryforward: true

#comment:
# layout: "reach, diff, flags, files"
Expand Down
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Blacken Salt
0b2a5613b345f17339cb90e60b407199b3d26980
8 changes: 8 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[settings]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
line_length=88
ensure_newline_before_comments=True
use_parentheses=True
skip=salt/ext/,tests/kitchen/tests/
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,16 @@ repos:
- --py-version=3.7
- --platform=linux

- repo: https://github.com/timothycrosley/isort
rev: '1e78a9acf3110e1f9721feb591f89a451fc9876a'
hooks:
- id: isort

- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
language_version: python3.7

- repo: https://github.com/saltstack/salt-nox-pre-commit
rev: master
Expand Down
13 changes: 9 additions & 4 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ extension-pkg-whitelist=
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS,
ext
ext,

# Add files or directories matching the regex patterns to the blacklist. The
# regex matches against base names, not paths.
ignore-patterns=
ignore-patterns=salt.ext.*

# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
Expand Down Expand Up @@ -77,6 +77,7 @@ disable=R,
no-member,
unsubscriptable-object,
un-indexed-curly-braces-error,
whitespace-before-colon,
indentation-is-not-a-multiple-of-four-comment,
blacklisted-name,
invalid-name,
Expand Down Expand Up @@ -126,6 +127,7 @@ disable=R,
str-format-in-logging,
import-outside-toplevel,
deprecated-method,
repr-flag-used-in-string,
keyword-arg-before-vararg

# Enable the message, report, category or checker with the given id(s). You can
Expand Down Expand Up @@ -396,6 +398,7 @@ init-import=no
# List of qualified module names which can have objects that can redefine
# builtins.
redefining-builtins-modules=six.moves,
salt.ext.six.moves,
past.builtins,
future.builtins,
builtins,
Expand Down Expand Up @@ -472,7 +475,9 @@ ignored-classes=SQLObject
# (useful for modules/projects where namespaces are manipulated during runtime
# and thus existing member attributes cannot be deduced by static analysis). It
# supports qualified module names, as well as Unix pattern matching.
ignored-modules=
ignored-modules=salt.ext.six.moves,
six.moves,
_MovedItems,

# Show a hint with possible names when a member name was not found. The aspect
# of finding the hint is based on edit distance.
Expand Down Expand Up @@ -511,7 +516,7 @@ min-similarity-lines=4
fileperms-default=0644

# File paths to ignore file permission. Glob patterns allowed.
fileperms-ignore-paths=setup.py,noxfile.py,tests/runtests.py,tests/jenkins*.py,tests/saltsh.py,tests/buildpackage.py
fileperms-ignore-paths=setup.py,noxfile.py,tests/runtests.py,tests/jenkins*.py,tests/saltsh.py,tests/buildpackage.py,tests/unit/files/rosters/ansible/roster.py


[MODERNIZE]
Expand Down
Loading

0 comments on commit 774cf94

Please sign in to comment.