Commit graph

184 commits

Author SHA1 Message Date
ScriptAutomate
72fc8b7e64 Update docs deps to include linux deps 2021-03-19 06:30:57 -04:00
Pedro Algarvio
9ccea8a7a4 Fix bandit skip for the test suite 2021-03-04 09:04:47 +00:00
Pedro Algarvio
fbdd6478d1 Bandit does not read .bandit when files are passed.
See https://github.com/PyCQA/bandit/issues/332
2021-03-03 06:21:53 -05:00
Pedro Algarvio
d16ab08a4d Start checking the salt code base with bandit 2021-03-03 06:21:53 -05:00
Pedro Algarvio
b76442e8f3
Merge remote-tracking branch 'upstream/3002.4' 2021-02-25 17:31:33 +00:00
Pedro Algarvio
eefd5bd835 Only support Py3.6+ for Windows 2021-02-23 12:49:10 -05:00
Pedro Algarvio
2ae5defa38 Upgrade included ipaddress.py from Python 3.9.1 2021-02-19 08:35:12 -05:00
Pedro Algarvio
460a658515 salt-rewrite can now run on the whole test suite 2021-02-03 13:15:24 +00:00
Pedro Algarvio
dd40c41194 Only depend on the top level pyobjc requirement.
This was requested by the macOS team.

Refs https://github.com/saltstack/salt/issues/59023
2021-02-03 10:28:56 +00:00
Megan Wilhite
46cd3263f9 Validate vmware module defaults to verifying SSL 2021-01-22 14:32:16 -07:00
Pedro Algarvio
65fdf388f9 Add salt-rewrite to pre-commit hooks 2021-01-19 14:51:30 +00:00
Pedro Algarvio
6b942545af Concentrate common requirements in a single .in file 2021-01-13 11:25:46 +00:00
Pedro Algarvio
feda66c226 Bump remove-import-headers pre-commit hook to 1.1.0 2021-01-12 11:35:23 +00:00
Pedro Algarvio
ed4b34525a Fix the filemap checks 2020-12-04 07:44:52 +00:00
Pedro Algarvio
e4188e7a9f Add hook to check for badly named changelog entries 2020-10-19 16:21:55 +01:00
Pedro Algarvio
b427688048 Start checking rst files at pre-commit level with rstcheck
Additionally, fixed most of the errors reported by rstcheck.

Fixes https://github.com/saltstack/salt/issues/58668
2020-10-13 13:53:16 -07:00
Pedro Algarvio
12f7e06720 Even more complete static requirements regexes 2020-10-13 03:12:57 +01:00
Pedro Algarvio
7e7cbf3ffa
Switch to the remove-import-headers pre-commit hook 2020-10-07 10:46:20 +01:00
Pedro Algarvio
0cbc264fe1
Fix pre-commit pip-tools-compile regexes 2020-10-04 21:35:07 +01:00
Pedro Algarvio
49556caf05
Rework static requirements. Darwin and Windows packaging are now also static.
Refs https://github.com/saltstack/release-planning/issues/238
2020-09-30 09:31:49 +01:00
Pedro Algarvio
67b25add12
Add packaging static requirements 2020-09-30 09:31:49 +01:00
Pedro Algarvio
7efd60131b
Move CI static requirements to it's own subdirectory 2020-09-30 09:31:48 +01:00
Pedro Algarvio
65e12043eb Automatically remove import comments on files.
This is desired because now imports are automatically sorted and these
header comments often get misplaced.

Fixes #57979
2020-09-24 13:47:43 -07:00
Pedro Algarvio
e58f38f879 Update pre-commit from nox-py2 to nox
Fixes #58522
2020-09-24 13:47:43 -07:00
Pedro Algarvio
fe2b02ac7c
Revert "Bump black to version 20.8b1"
This reverts commit e22fa636f5.
2020-09-01 10:31:14 +01:00
Pedro Algarvio
cd9a439ce5 Bump black to version 20.8b1 2020-08-31 13:34:59 -07:00
Pedro Algarvio
cf391a2cdf Start upgrading codebase to Py3 for every changed file 2020-07-28 15:25:33 -07:00
Pedro Algarvio
5e72e192f9 Blacken docs 2020-06-09 03:37:02 -07:00
Pedro Algarvio
3cd6042b93 Fix macOS static requirements 2020-06-08 17:37:03 -07:00
Pedro Algarvio
fb2893536e Support FreeBSD static requirements 2020-06-04 09:44:00 -07:00
Pedro Algarvio
e6e1ab3ef6 Add task to check tests/filename_map.yml validity 2020-05-19 10:18:24 -07:00
ch3ll
c87642181e add towncrier to manage changelog 2020-05-07 16:22:31 -07:00
Pedro Algarvio
6a4703146c
Replace tests/unit/test_doc.py with a pre-commit hook.
We don't need to test docs on all platforms. In turn, we make the check
a pre-commit hook which seems more suited.
2020-04-23 20:01:05 +01:00
Pedro Algarvio
a5b9961f78
Lay the ground for invoke usage 2020-04-23 18:42:47 +01:00
Pedro Algarvio
cc8c3f09c6
Update static requirements to include Py3.8 and Py3.9 (except windows)
Windows required package pywin32 doesn't state that it support any
python version above Py3.7
2020-04-22 12:26:21 +01:00
ch3ll
2586f716b2
Revert "add towncrier to manage changelog"
This reverts commit 57d160cc60.
2020-04-20 09:34:36 -04:00
ch3ll
57d160cc60
add towncrier to manage changelog 2020-04-16 17:04:49 -04:00
Felippe Burk
0cf809a3c3
adding saltstack-internal tag to get perms right 2020-04-14 11:23:56 -06:00
Daniel Wozniak
6ed2bd8c80
Merge pull request #56601 from s0undt3ch/hotfix/drop-py2-builds
Drop static requirements for Sodium unsupported versions
2020-04-10 13:38:57 -07:00
Wayne Werner
7d42fee94a
Fix toml file 2020-04-10 14:52:32 -05:00
Wayne Werner
cf0c6c5d65
Back to .isort.cfg
At least until version 5 of isort is actually released.
2020-04-10 09:10:05 -05:00
Pedro Algarvio
68c90783f8
Drop static requirements for Sodium unsupported versions 2020-04-10 10:04:51 +01:00
Wayne Werner
35c4d92bc6
Also install isort[pyproject] for toml dependency 2020-04-09 15:51:15 -05:00
Wayne Werner
a8ef59e76f
Fix pre-commit excludes
When pre-commit provides paths to isort/black, their default excludes
are ignored. So we have to tell pre-commit to *also* exclude black and
isort excludes.
2020-04-09 14:25:01 -05:00
Wayne Werner
7ed3111efc
Set default language version 2020-04-09 14:25:01 -05:00
Wayne Werner
1b88d1816d
Remove black py language version
This is not, strictly speaking, necessary. Removing the language version
allows use of one's default supported python (3.6+).
2020-04-09 14:25:01 -05:00
Wayne Werner
c1baa329c6
Add black and isort to precommit
E203 is *not* pep8 compliant, pylint.
2020-04-03 08:10:58 -05:00
Pedro Algarvio
e6cc2a6192
Separate pyobjc requirements 2020-03-23 22:52:24 +00:00
twangboy
224f72d0f2
Update noxfile and .precommit 2020-03-23 13:58:38 -06:00
twangboy
3bda8ddb82
Update noxfile and pre-commit 2020-03-20 17:52:59 -06:00