Commit graph

838 commits

Author SHA1 Message Date
Deepanshu
77973aa887 Merge branch 'EIR-212-sla-association-keys' into 'master'
EIR-212: Add test sla association primary key

Closes EIR-212

See merge request voereir/pre-commit-hooks!5
2023-06-12 13:43:57 +05:30
Deepanshu Bhatia
25cba977ce EIR-212: Add test sla association primary key 2023-06-12 12:42:24 +05:30
Deepanshu
20ab3ae2f4 Merge branch 'EIR-11-duplicate' into 'master'
EIR-11: Fix duplicate entry checker for composite primary keys

See merge request voereir/pre-commit-hooks!4
2023-04-27 12:20:37 +05:30
Deepanshu Bhatia
ee7cee9a8b EIR-11: Fix duplicate entry checker for composite primary keys 2023-04-27 12:18:48 +05:30
Deepanshu
468cda3884 Merge branch 'context' into 'master'
VOER-75 Add context table

See merge request voereir/pre-commit-hooks!3
2023-04-12 21:41:45 +05:30
Tanmay Pandey
024ded4078 VOER-75 Add context table 2023-04-12 21:36:38 +05:30
Deepanshu
80336ae26b Merge branch '183229025-db' into 'master'
[Delivers #183229025] Add duplicate entry and sort feature for json

See merge request voereir/pre-commit-hooks!2
2023-04-03 13:40:51 +05:30
Tanmay Pandey
2331edcb1d [Delivers #183229025] Add duplicate entry and sort feature for json
Signed-off-by: Tanmay Pandey <tanmay@voereir.com>
2023-03-30 22:07:25 +05:30
Deepanshu
78506ced37 Merge branch 'touchstone_common_json' into 'master'
Added a custom JSON encoder for json.dumps().

See merge request voereir/pre-commit-hooks!1
2021-07-10 01:03:22 +00:00
Md Safiyat Reza
747ab07a55
Added a custom JSON encoder for json.dumps().
Added a custom JSON encoder based on json.JSONEncoder.
Changes from the default behaviour:
- Using `_make_iterencode` as the only `_iterencode`.
- Change `_make_iterencode`, setting `_indent` in `_iterencode_dict` to
  `None`.
- Use `py_encode_basestring` as the only `encoder`.

Also, updated the json writer to sort keys according to requested top_keys.

Signed-off-by: Md Safiyat Reza <safiyat@voereir.com>
2021-07-10 06:23:57 +05:30
Anthony Sottile
e71fd49e70
Merge pull request #623 from pre-commit/py3-plus-which
use shutil.which instead of distutils.spawn
2021-07-07 14:09:09 -04:00
Anthony Sottile
301195efa9 use shutil.which instead of distutils.spawn 2021-07-07 14:06:01 -04:00
Anthony Sottile
8fa80b3606
Merge pull request #621 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-07-05 18:10:07 -04:00
pre-commit-ci[bot]
469e4b83f5
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.19.4 → v2.20.0](https://github.com/asottile/pyupgrade/compare/v2.19.4...v2.20.0)
2021-07-05 22:02:26 +00:00
Anthony Sottile
a7a4670f98
Merge pull request #620 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-06-28 18:14:34 -07:00
pre-commit-ci[bot]
de3f6c33c7
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-mypy: v0.902 → v0.910](https://github.com/pre-commit/mirrors-mypy/compare/v0.902...v0.910)
2021-06-28 17:37:51 +00:00
Anthony Sottile
b84362dd9a
Merge pull request #618 from pre-commit/all-repos_autofix_mypy-settings
stricter mypy settings
2021-06-21 19:42:15 -07:00
Anthony Sottile
8041dff63f stricter mypy settings
Committed via https://github.com/asottile/all-repos
2021-06-21 19:15:42 -07:00
Anthony Sottile
0bedbb96b9
Merge pull request #614 from cansarigol/pdbr-debug-statements
Added pdbr into debug statements
2021-06-15 07:10:05 -07:00
Can Sarıgöl
41b29e8c8d
Added pdbr into debug statements 2021-06-15 09:28:11 +02:00
Anthony Sottile
252f04654d
Merge pull request #613 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-06-14 11:52:53 -07:00
Anthony Sottile
fabe3d8855
Add mypy dependency on types-all 2021-06-14 11:30:37 -07:00
pre-commit-ci[bot]
172a87e6a8
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.19.1 → v2.19.4](https://github.com/asottile/pyupgrade/compare/v2.19.1...v2.19.4)
- [github.com/pre-commit/mirrors-mypy: v0.812 → v0.902](https://github.com/pre-commit/mirrors-mypy/compare/v0.812...v0.902)
2021-06-14 17:34:07 +00:00
Anthony Sottile
44effd2842
Merge pull request #611 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-06-07 18:51:05 -07:00
pre-commit-ci[bot]
00948d0833
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.19.0 → v2.19.1](https://github.com/asottile/pyupgrade/compare/v2.19.0...v2.19.1)
2021-06-08 01:46:25 +00:00
Anthony Sottile
f48244a805
Merge pull request #607 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-05-31 10:56:53 -07:00
pre-commit-ci[bot]
2d040b429d
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.18.2 → v2.19.0](https://github.com/asottile/pyupgrade/compare/v2.18.2...v2.19.0)
2021-05-31 17:25:23 +00:00
Anthony Sottile
371a07eb4c
Merge pull request #606 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-05-24 11:19:36 -07:00
pre-commit-ci[bot]
a4f7dedfed
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.16.0 → v2.18.2](https://github.com/asottile/pyupgrade/compare/v2.16.0...v2.18.2)
2021-05-24 17:20:10 +00:00
Anthony Sottile
7282c4b849
Merge pull request #604 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-05-17 11:18:53 -07:00
pre-commit-ci[bot]
d1fac7f826
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.15.0 → v2.16.0](https://github.com/asottile/pyupgrade/compare/v2.15.0...v2.16.0)
2021-05-17 17:23:36 +00:00
Anthony Sottile
38b88246cc v4.0.1 2021-05-16 08:29:57 -07:00
Anthony Sottile
0e40c1d61b
Merge pull request #603 from scop/check_shebang_scripts_are_executable-entrypoint
fix: check-shebang-scripts-are-executable entry point
2021-05-16 08:27:57 -07:00
Ville Skyttä
bb4eef160d fix: check-shebang-scripts-are-executable entry point
Closes https://github.com/pre-commit/pre-commit-hooks/issues/602
2021-05-16 13:23:23 +03:00
Anthony Sottile
dd3444783f
Merge pull request #601 from ibLeDy/fix/check-json-hook-failing
Fix `check-json` failing on ci runs
2021-05-15 07:35:35 -07:00
Iago Alonso
fed8b6debb
Rename file causing check-json to fail
- `mv duplicated_key_json.{json,notjson}`
- change reference to the file in `tests/check_json_test.py`

Fixes #600
2021-05-15 12:31:33 +02:00
Anthony Sottile
9cc62e1a63 v4.0.0 2021-05-14 20:17:35 -07:00
Anthony Sottile
b0b1a413c6
Merge pull request #599 from pre-commit/all-repos_autofix_more-inclusive-language
Use more inclusive language
2021-05-14 19:22:48 -07:00
Anthony Sottile
a5cf10d9b2 Use more inclusive language
Committed via https://github.com/asottile/all-repos
2021-05-14 19:12:09 -07:00
Anthony Sottile
11a996eec6
Merge pull request #597 from pre-commit/remove-deprecated
remove deprecated autopep8-wrapper, flake8, pyflakes
2021-05-11 13:16:53 -07:00
Anthony Sottile
1995abf556 remove deprecated autopep8-wrapper, flake8, pyflakes 2021-05-11 13:09:44 -07:00
Anthony Sottile
868784a49c
Merge pull request #595 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-05-10 14:08:46 -07:00
pre-commit-ci[bot]
f90bef2772
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/PyCQA/flake8: 3.9.1 → 3.9.2](https://github.com/PyCQA/flake8/compare/3.9.1...3.9.2)
- [github.com/asottile/pyupgrade: v2.14.0 → v2.15.0](https://github.com/asottile/pyupgrade/compare/v2.14.0...v2.15.0)
2021-05-10 20:21:04 +00:00
Anthony Sottile
11cdc8d820
Merge pull request #545 from scop/check-shebangs-executable
Add check for executability of scripts with shebangs
2021-05-04 18:49:58 -07:00
Ville Skyttä
391ae30a64 Add check for executability of scripts with shebangs
Closes https://github.com/pre-commit/pre-commit-hooks/issues/543
2021-05-04 18:45:43 -07:00
Ville Skyttä
9e7cd9f13a Refactor check_executables_have_shebangs for git ls-files reuse 2021-05-04 18:45:42 -07:00
Anthony Sottile
6c99eceab7
Merge pull request #593 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-05-03 10:27:13 -07:00
pre-commit-ci[bot]
4342783e1e
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-autopep8: v1.5.6 → v1.5.7](https://github.com/pre-commit/mirrors-autopep8/compare/v1.5.6...v1.5.7)
- [github.com/asottile/pyupgrade: v2.13.0 → v2.14.0](https://github.com/asottile/pyupgrade/compare/v2.13.0...v2.14.0)
2021-05-03 17:17:27 +00:00
Anthony Sottile
17875b1017
Merge pull request #591 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-04-26 11:05:23 -07:00
pre-commit-ci[bot]
0423b8b21f
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/reorder_python_imports: v2.4.0 → v2.5.0](https://github.com/asottile/reorder_python_imports/compare/v2.4.0...v2.5.0)
- [github.com/asottile/pyupgrade: v2.12.0 → v2.13.0](https://github.com/asottile/pyupgrade/compare/v2.12.0...v2.13.0)
2021-04-26 17:18:44 +00:00