Commit Graph

115 Commits

Author SHA1 Message Date
Pierre Sassoulas
4de654512e
[pre-commit] Transition from flake8/autoflake to ruff (#8372)
ruff is faster and support pyproject.toml. flake8-typing-import
is not implemented but it checks for things in python version
< 3.7.2 that we do not support.
2023-03-02 21:19:56 +01:00
Ollie
5337e6280e
Changing flake8 to have max-line-length of 115 (#8362)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2023-03-02 19:49:28 +01:00
Ollie
02030cf52d
Fixing some too long lines (#8339)
* Changing flake8 max-line-length to 120

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2023-02-25 22:12:29 +01:00
Pierre Sassoulas
4a5b4e63c8
[style] Limit line length and complexity using flake8 (#8064)
125 is a good start. The check was activated in pylint with value = 100, but flake8 is less lenient than pylint and does not make any exceptions (for docstrings, strings and comments in particular).
2023-01-16 23:04:25 +01:00
dependabot[bot]
eae0eaff11
Bump flake8-bugbear from 22.12.6 to 23.1.14 (#8062)
* Bump flake8-bugbear from 22.12.6 to 23.1.14

Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 22.12.6 to 23.1.14.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/22.12.6...23.1.14)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2023-01-16 16:25:18 +01:00
dependabot[bot]
233b9d6fe8
Bump flake8 from 5.0.4 to 6.0.0 (#7859)
Bumps [flake8](https://github.com/pycqa/flake8) from 5.0.4 to 6.0.0.
- [Release notes](https://github.com/pycqa/flake8/releases)
- [Commits](https://github.com/pycqa/flake8/compare/5.0.4...6.0.0)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:production
  update-type: version-update:semver-major
...

* Fix regression with inline comment
* Update flake8 config
* doc about required python interpreters for contributors

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-12-06 23:23:37 +01:00
Christian Clauss
d2056b3a67 Migrate configs for isort, mypy, and pytest into pyproject.toml 2022-09-22 20:22:31 +02:00
Daniël van Noord
c13d8d9a6a
Add `tomlkit and isort to mypy` additional dependencies (#7450) 2022-09-10 07:43:11 +02:00
Daniël van Noord
0cc82c4c0d
Turn on `mypy` strict mode 🎉 (#7448)
* Ignore subclasses of Any

* Add ignores for imported code and remove casts

* Add disables for uninferable return values

* Turn on ``mypy`` strict mode
2022-09-09 23:05:00 +02:00
Daniël van Noord
f29bdd4e04
Turn on `check-untyped-defs in mypy` (#7407) 2022-09-09 09:52:43 +02:00
Daniël van Noord
c2989ad5c7
Complete typing of all generic types (#7406)
And update ``mypy`` configuration
2022-09-04 13:04:45 +02:00
Daniël van Noord
5dda4d45f3 Add typing to benchmark tests 2022-09-03 18:05:24 +02:00
Marc Mueller
0d36a63303
Improve packaging [PEP 517 + 621] (#7076)
* Use isolated build environments
* Update release ci job to use build
* Use new project metadata format
* Cleanup MANIFEST.in
* Remove setup.py
2022-06-28 23:39:17 +02:00
Hugo van Kemenade
bf6308cbe1
Fix pypy's links in package's metadata (#6998)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-06-22 12:56:03 +02:00
Daniël van Noord
cac381d7e3
Pin `colorama` to lowest supported version (#6970) 2022-06-18 09:32:24 +02:00
Jacob Walls
258a5e96cc
Add regression test for #6895 (#6898)
* Upgrade astroid to 2.11.6

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-06-13 17:38:21 +02:00
Daniël van Noord
3434224f7a Remove redundant second batch of old primer 2022-05-30 17:36:49 -04:00
Daniël van Noord
a6a55f079f Add `pylint-config` command 2022-05-21 15:23:24 +02:00
Pierre Sassoulas
2f7580df21 Upgrade astroid version to 2.11.5 2022-05-09 14:09:51 +02:00
Daniël van Noord
8a53754b80 Fix wrong name in `extras_require` 2022-05-03 23:44:53 +02:00
Pierre Sassoulas
62eed35a6d Upgrade astroid version following 2.11.4 release 2022-05-02 14:26:26 +02:00
Pierre Sassoulas
7dd8d5158e Fix the pyenchant dependencie following #6440
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
2022-04-28 13:09:08 +02:00
Pierre Sassoulas
fb7d1bd722
Upgrade astroid to 2.11.3 (#6398) 2022-04-19 23:19:44 +02:00
Daniël van Noord
1de6da157c
Improve CPU count detection in cgroup environments and fix CI (#6098)
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2022-04-16 16:49:46 +02:00
Daniël van Noord
443802995b
Add a `--generate-toml-config` option (#6199) 2022-04-13 21:45:47 +02:00
Daniël van Noord
eb6814e793 Update broken and redirected links across the project 2022-04-13 11:30:40 +02:00
Daniël van Noord
dfd23f61d5
Require python `3.7.2+` (#5921)
* Remove env from tox
* Add changelog
2022-04-11 15:22:18 +02:00
Pierre Sassoulas
29f1919c84
Add an explicit marker for pytest-timeout (#6054)
To avoid "'timeout' not found in  configuration option"
When using --strict-markers with pytest locally.
2022-03-30 12:51:54 +02:00
Joe Young
2885eef7f2
Include `testing_pylintrc` in source and wheel distributions (#6029) 2022-03-29 17:06:01 +02:00
Jacob Walls
6279ab18f5
Add regression test for #5982 upgrade astroid to 2.11.2 (#5988)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-03-27 14:31:10 +02:00
Daniël van Noord
e73cfa840d Update configuration of pre-commit hooks and tools 2022-03-25 10:02:06 +01:00
Pierre Sassoulas
bdeb7e5f0c Add a script to update the CONTRIBUTORS.txt 2022-03-23 19:57:20 +01:00
Daniël van Noord
11807f0ae0 Update `astroid` requirement to 2.11.0 2022-03-12 13:59:07 +01:00
Daniël van Noord
6fd52958b1
Upgrade mypy to 0.940 (#5900) 2022-03-12 10:39:49 +01:00
Konrad Weihmann
588ed30f26
Allow mccabe 0.7.x (#5896)
python version < 3.7 will still remain on mccabe 0.6.x, while
newer version will pick mccabe 0.7.x release

Closes #5878

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
2022-03-11 12:54:22 +01:00
Daniël van Noord
51d414dc47
Use the `tomli package instead of toml to parse .toml` (#5887)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-03-10 13:43:20 +01:00
Pierre Sassoulas
90dafaef06
Add a testutil extra-require and add gitpython to it (#5842)
Closes #5486
2022-02-27 10:38:30 +01:00
Daniël van Noord
9e49b30d7d
Allow dev version of next minor `astroid` version (#5689) 2022-01-16 20:16:06 +01:00
Daniël van Noord
fb4259f9de
Update astroid to `2.9.2` (#5634) 2022-01-04 20:27:33 +01:00
orSolocate
84f755cd7f
Hotfix mypy pre-commit check under Windows (#5632) 2022-01-03 22:13:38 +01:00
Pierre Sassoulas
1215cf34e8 Upgrade astroid to 2.9.1
Closes #1470
Closes #3499
Closes #4302
Closes #4798
Closes #5081
2021-12-31 15:46:18 +01:00
Daniël van Noord
019794b808
Use `dill` to pickle when run in parallel mode (#5609) 2021-12-30 15:14:20 +01:00
Daniël van Noord
cb7ee204b7
Update `primer` tests to own file, separate batches and concurrent runs (#5425) 2021-11-29 14:37:07 +01:00
Pierre Sassoulas
1f7f2e96c3
Add `flake8-typing-import` to the pre-commit configuration (#5070)
* Add flake8-typing-import to the pre-commit configuration
2021-11-25 16:18:47 +01:00
Daniël van Noord
aa048f7787
Add documentation for primer and convert to command line option (#5387)
* Add documentation for primer and convert to command line option

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2021-11-25 14:06:29 +01:00
Pierre Sassoulas
5e9d20dc32
Primer tests "à la mypy" (#5173)
* Add changelog and warning about unstable API in testutil

* Add primer tests, (running pylint on external libs during tests)

In order to anticipate crash/fatal messages, false positives are harder
to anticipate. Follow-up will be #5359 and later on #5364 

Add '__tracebackhide__ = True' so the traceback is manageable

Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
2021-11-24 13:10:52 +01:00
Marc Mueller
079805b0f9
Upgrade astroid to 2.9.0 (#5355)
* Upgrade astroid to 2.9.0
* Fix slice index col_offset
2021-11-21 19:45:17 +01:00
Pierre Sassoulas
3455dc2bf9
Add accetpance tests in CI for python 3.8+ instead of launching manually at release (#5353)
* [test] Add acceptance tests in the continuous integration

* Disable duplicate-code from the acceptance tests

* Rename acceptance to primer stdlib for clarity
2021-11-21 16:26:13 +01:00
Kound
2e7b2c20cb
Use isort's black profile (#5330) 2021-11-18 09:43:58 +01:00
Daniël van Noord
b91cc8dbb4
Add error codes to all `type: ignore` (#5329) 2021-11-17 14:13:34 +01:00