-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pre-commit.ci] pre-commit autoupdate #8773
Conversation
a6fadc1
to
06fbcd7
Compare
ecdea33
to
1e4257a
Compare
5bfcf0d
to
67720d7
Compare
I will need someone else to review the changes I made to get this PR to pass all the tests. Also, as a note to myself, my changes to this branch disappear every time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, pinging @hornc in case any of the marc code is still being used
fd07bd6
to
eb92915
Compare
updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.2](astral-sh/ruff-pre-commit@v0.1.14...v0.2.2) - [github.com/psf/black: 23.12.1 → 24.2.0](psf/black@23.12.1...24.2.0) - [github.com/abravalheri/validate-pyproject: v0.15 → v0.16](abravalheri/validate-pyproject@v0.15...v0.16) - [github.com/pre-commit/mirrors-eslint: v9.0.0-alpha.1 → v9.0.0-beta.0](pre-commit/mirrors-eslint@v9.0.0-alpha.1...v9.0.0-beta.0)
for more information, see https://pre-commit.ci
This code for stripping a trailing `.` after three digits is unused. The line before the removed code calls: `pick_first_date()` -> `parse_date()` -> `remove_trailing_number_dot()`, which calls a regex that will match anything the removed one does. Removed regex: `re_number_dot = re.compile(r'\d{3,}\.$')` Regex that already runs`: `re_number_dot = re.compile(r'\d{2,}[- ]*(\.+)$')`
1a3e78e
to
3499e8c
Compare
for more information, see https://pre-commit.ci
* marc/parse.py: remove unused code This code for stripping a trailing `.` after three digits is unused. * Remove unnecessary key check before dictionary access * Avoid quadratic list summation * Use `dict.get('blah')` instead of `dict.get('blah', None)` * Add a test with four digits followed by a period * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Scott Barnes <scottreidbarnes@gmail.com>
* marc/parse.py: remove unused code This code for stripping a trailing `.` after three digits is unused. * Remove unnecessary key check before dictionary access * Avoid quadratic list summation * Use `dict.get('blah')` instead of `dict.get('blah', None)` * Add a test with four digits followed by a period * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Scott Barnes <scottreidbarnes@gmail.com>
* marc/parse.py: remove unused code This code for stripping a trailing `.` after three digits is unused. * Remove unnecessary key check before dictionary access * Avoid quadratic list summation * Use `dict.get('blah')` instead of `dict.get('blah', None)` * Add a test with four digits followed by a period * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Scott Barnes <scottreidbarnes@gmail.com>
updates: