Commit Graph

48 Commits

Author SHA1 Message Date
Alex Waygood
5498cabfe2 Bump various test dependencies (#10492) 2023-07-21 00:09:19 +01:00
Alex Waygood
79e092e133 Add some ruff autofixes to CI (#10458) 2023-07-20 14:41:52 +02:00
Alex Waygood
5ee46bd291 Bump various test dependencies (#10378) 2023-06-28 14:22:49 +01:00
Sebastian Rittau
ce222e5cd7 Split requirements file into sections (#10309)
Also note that type checkers and linters should be pinned to a specific
version.
2023-06-12 20:18:16 +02:00
Alex Waygood
d8ef303e00 Bump pycln and pathspec test dependencies (#10251) 2023-06-03 14:46:33 +01:00
Jelle Zijlstra
7bc4be08d8 Update some dependencies (#10243) 2023-06-02 16:54:52 -07:00
Alex Waygood
99375e1b4c Bump flake8-pyi to 23.5.0; re-enable F821 (#10143) 2023-05-05 18:06:10 +02:00
Alex Waygood
83f0dbe14c Bump various test dependencies (#10045) 2023-04-13 14:34:32 +01:00
Alex Waygood
a035372a91 Bump various test dependencies (#10028) 2023-04-10 13:58:26 +01:00
pre-commit-ci[bot]
4d9ca511c0 [pre-commit.ci] pre-commit autoupdate (#10007)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.1.0 → 23.3.0](https://github.com/psf/black/compare/23.1.0...23.3.0)

* Update requirements-tests.txt

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-04 09:12:24 +01:00
Alex Waygood
f3fc792620 Bump flake8-pyi test dependency to 23.3.1 (#9906) 2023-03-20 19:19:01 +01:00
Alex Waygood
b7d1079e86 Bump various test dependencies (#9886) 2023-03-14 14:13:24 -07:00
Jonathan Plasse
0bb7d621d3 Fix pre-commit configuration (#9748)
* Fix flake8 pre-commit hook to run on pyi files too

* Fix pycln pre-commit hook
   * Run on pyi files too
   * Remove `stubs stdlib tests scripts` in args to avoid running pycln on files twice
2023-02-18 06:13:14 -08:00
Shantanu
660c832fa4 Remove prettier from pre-commit (#9744)
This doesn't autofix, see #9742

> GitHub prevented pre-commit.ci from autofixing this pr due to autofixes to a workflow file

Life is too short to spend it being yelled at by robots because line
length in some YAML is too long.
2023-02-16 15:38:39 -08:00
Alex Waygood
8000fbd386 Bump various test dependencies (#9646) 2023-02-01 06:23:40 -08:00
Alex Waygood
8e7b78a8e8 Bump black to 23.1.0 (#9647) 2023-02-01 06:06:04 -08:00
Alex Waygood
cec6162146 Bump flake8-pyi to 23.1.2 (#9643) 2023-02-01 00:07:09 +00:00
Alex Waygood
1b5bd63f78 Bump isort to 5.12.0 (#9617) 2023-01-29 16:37:55 -08:00
Alex Waygood
b316dd947e Bump flake8-pyi to 23.1.1 (#9599) 2023-01-28 07:39:30 -08:00
Alex Waygood
a4e3cfefac Improve pre-commit config (#9563)
- Add a few more hooks. These are all very fast, and I've found them useful in other projects:
  - Autofixes:
    - `trailing-whitespace`: fixes trailing whitespace
    - `requirements-txt-fixer`: alphabetises items in `requirements.txt` files
    - `end-of-file-fixer`: makes sure every file ends with a single newline character
    - `mixed-line-ending`: Makes sure Windows users don't accidentally introduce CRLF line endings into a file that uses LF line endings
  - None-autofixes:
    - `check-yaml`: loads YAML files to validate syntax
    - `check-toml`: loads TOML files to validate syntax
    - `check-merge-conflict`: detects merge-conflict strings in files and blocks them from accidentally being committed
    - `check-case-conflict`: checks for files with names that would conflict on a case-insensitive filesystem like MacOS HFS+ or Windows FAT; blocks them from being committed.
  - Change the bot schedule to quarterly, to reduce noisy PRs
  - Change the `black` language target-version to Python 3.10, synching the setting here with the changes that were made to our `pyproject.toml` file in #7538
2023-01-18 06:29:18 -08:00
Alex Waygood
597e1a0078 Bump various test dependencies (#9549) 2023-01-16 11:04:45 -08:00
pre-commit-ci[bot]
d2d706f9d8 [pre-commit.ci] pre-commit autoupdate (#9485) 2023-01-10 03:25:01 +01:00
Avasam
7c15e6998f Autoformat YAML files (#9450) 2023-01-03 08:55:06 +01:00
Alex Waygood
59b1a78d5f Bump various test dependencies (#9412) 2022-12-26 18:48:07 +00:00
pre-commit-ci[bot]
e6a04141ab Bump isort requirement to 5.11.3 (#9388) 2022-12-20 02:01:41 +00:00
pre-commit-ci[bot]
12671e87e2 Bump black and isort (#9356)
updates:
- [github.com/psf/black: 22.10.0 → 22.12.0](https://github.com/psf/black/compare/22.10.0...22.12.0)
- [github.com/pycqa/isort: 5.10.1 → 5.11.1](https://github.com/pycqa/isort/compare/5.10.1...5.11.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-12-13 02:09:02 +00:00
Alex Waygood
350b3c57da Bump flake8 and flake8-noqa (#9275) 2022-11-25 11:51:00 +00:00
Alex Waygood
89f22278ba Bump flake8-pyi and pytype versions used in CI (#9268) 2022-11-24 14:55:26 +00:00
Alex Waygood
263427f438 Bump test dependencies; improve pycln config (#9197) 2022-11-14 11:58:45 -08:00
Alex Waygood
d1d1afbe3a Bump flake8-bugbear; ignore flake8-bugbear in stub files (#9069) 2022-11-02 12:18:00 -07:00
Alex Waygood
8b41b1337b Bump flake8-pyi and black to latest versions (#8859) 2022-10-06 16:45:02 -07:00
Jelle Zijlstra
c1d307fc3b black: upgrade (#8659) 2022-08-31 16:01:52 -07:00
Alex Waygood
3e5808a990 Bump flake8-pyi and pytype test dependencies (#8656) 2022-08-31 12:20:11 +01:00
Alex Waygood
b417d5796d Run flake8-noqa in CI (#8641) 2022-08-29 21:06:47 +01:00
Alex Waygood
1b6cda86d4 Alphabetise items in requirements-tests.txt (#8635) 2022-08-28 07:59:17 -07:00
pre-commit-ci[bot]
ed06b8bf54 Upgrade flake8 to 5.0.4 (#8507)
updates:
- [github.com/pycqa/flake8: 5.0.2 → 5.0.4](https://github.com/pycqa/flake8/compare/5.0.2...5.0.4)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-09 09:56:19 +01:00
pre-commit-ci[bot]
fc0a5a26b5 [pre-commit.ci] pre-commit autoupdate (#8461)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/hadialqattan/pycln: v2.0.4 → v2.1.1](https://github.com/hadialqattan/pycln/compare/v2.0.4...v2.1.1)
- [github.com/pycqa/flake8: 4.0.1 → 5.0.2](https://github.com/pycqa/flake8/compare/4.0.1...5.0.2)

* Update requirements-tests.txt

* Update flake8-pyi and flake8-bugbear as well

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-02 20:43:32 +01:00
Alex Waygood
df4618ef2d Upgrade pycln and flake8-pyi (#8464) 2022-08-02 08:43:02 +01:00
Alex Waygood
62cde01365 Upgrade flake8-pyi to 22.7.0 (#8377) 2022-07-24 03:20:35 +01:00
pre-commit-ci[bot]
89154bf4c8 [pre-commit.ci] pre-commit autoupdate (#8327)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/hadialqattan/pycln: v2.0.2 → v2.0.4](https://github.com/hadialqattan/pycln/compare/v2.0.2...v2.0.4)

* Update requirements-tests.txt

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-18 22:40:15 +01:00
Alex Waygood
35616b439f Run pycln as a pre-commit hook in CI (#8304) 2022-07-18 09:27:28 +02:00
pre-commit-ci[bot]
54e006c23d Upgrade black dependency (#8236)
updates:
- [github.com/psf/black: 22.3.0 → 22.6.0](https://github.com/psf/black/compare/22.3.0...22.6.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-05 00:02:43 +01:00
Stephen Rosen
199132122b Add pre-commit config for flake8 (#8068)
This makes it easier to lint your own work with `pre-commit`, but doesn't change the CI config by adding this to the pre-commit.ci skip list.

There's no way to automatically reflect the additional dependencies from the requirements file, so the flake8 plugin list needs to be a verbatim copy.

resolves #7991
2022-06-14 02:30:09 +01:00
Alex Waygood
be64b01e6c Upgrade black version (#7582) 2022-04-03 22:34:44 +01:00
Shantanu
b88a6f19cd Upgrade black version (#7089) 2022-01-30 16:27:06 -08:00
Sebastian Rittau
206e1ae91b Remove 'py3' from requirements filename (#6509) 2021-12-06 12:59:04 +02:00
Jelle Zijlstra
57e211b306 dependency upgrades (#6505) 2021-12-06 01:27:53 +02:00
Jelle Zijlstra
1f1bc6f27c add pre-commit config (#6341)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-11-19 16:46:51 +02:00