Commit Graph

15 Commits

Author SHA1 Message Date
Pierre Sassoulas
ec4a3f7f1e Add a pre-commit hook to check the copyright notice
Fix the existing file so they have a notice.
No header for setup.py or examples or doc
2022-03-24 13:06:15 +01:00
Pierre Sassoulas
9e0baf370a Simplify hard to maintain copyright notice
git is the source of truth for the copyright, copyrite (the tool)
was taking exponentially longer with each release, and it's
polluting the code with sometime as much as 50 lines of names.
2022-03-24 13:06:15 +01:00
Daniël van Noord
595ec422d6
Update `pydocstringformatter` to 0.4.0 (#5787) 2022-02-10 19:30:15 +01:00
Pierre Sassoulas
45b5e7ba3a
Add missing method to `_ManHelpFormatter` (#5577)
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
2021-12-21 20:13:48 +01:00
pre-commit-ci[bot]
a602692aa1
[pre-commit.ci] pre-commit autoupdate (#5082)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v2.26.0 → v2.28.0](https://github.com/asottile/pyupgrade/compare/v2.26.0...v2.28.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-09-28 08:06:32 +02:00
Daniël van Noord
c17457f7ef Add typing to most reference of `stream` 2021-09-13 13:32:34 +02:00
Daniël van Noord
66ffcbc4c5
Add `Consider-using-f-string` checker (#4796)
* Add ``consider-using-f-string`` checker
This adds a checker for normal strings which are formatted
with ``.format()`` or '%'.
The message is a convention to nudge users towards using f-strings.
This closes #3592

* Update pylint code to use f-strings
After adding `consider-using-f-strings` the codebase showed numerous
cases of formatting which could be f-strings.
This commit changes most of these to become f-strings, or adds ignores.

* Apply suggestions from code review

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-08-30 07:57:05 +02:00
Marc Mueller
21290866a2
Fix copyright links (#4647)
* Fix link in license header
* Update link to astroid bump_changelog
2021-07-01 12:47:58 +02:00
dependabot[bot]
62c91eb2f0
Bump pyupgrade from 2.16.0 to 2.18.1 (#4496)
* Bump pyupgrade from 2.16.0 to 2.18.1

Bumps [pyupgrade](https://github.com/asottile/pyupgrade) from 2.16.0 to 2.18.1.
- [Release notes](https://github.com/asottile/pyupgrade/releases)
- [Commits](https://github.com/asottile/pyupgrade/compare/v2.16.0...v2.18.1)

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

* Update pre-commit-config

* Changes after pyupgrade update

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-05-24 13:31:09 +02:00
Matus Valo
8bb83f00b4
Moved stdlib module deprecation from imports checker to stdlib checker (#4454)
* Moved stdlib module deprecation from imports checker to stdlib checker

* Ignore deprecated-module error in pylint/config modules
2021-05-10 09:53:36 +02:00
Pierre Sassoulas
af52033971
Rename copying to license and upgrade the setup.cfg (#4338) 2021-04-11 15:29:34 +02:00
Pierre Sassoulas
ee910755b9 Migrate from % syntax or bad format() syntax to fstring
We can do that in python 3.6
2021-02-21 15:36:16 +01:00
Pierre Sassoulas
5bed07eba9 Move from % string formatting syntax to f-string or .format() 2021-02-21 15:36:16 +01:00
Pierre Sassoulas
3aa504542b Fix all E741 ambiguous variable name 'l' 2021-02-15 21:14:28 +01:00
Pierre Sassoulas
cce4e0578a Create a file for ManPageFormatter 2020-05-03 14:40:55 +02:00