Skip to content

Commit ea646cb

Browse files
authored
maint: precommit format, fixes and update copyright (#298)
maint: precommit format and update copyright
1 parent 8618be6 commit ea646cb

33 files changed

+621
-526
lines changed

.flake8

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
[flake8]
33

44
max-line-length = 119
5-
ignore = W503
5+
ignore =
6+
W503
7+
P102
8+
P103
69

710
exclude =
811
tests/test_spiders.py E731
9-
docs/conf.py E265
12+
docs/conf.py E265

.github/workflows/checks.yml

+6
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ jobs:
3333
run: |
3434
pip install -r requirements-tests.txt
3535
tox
36+
37+
pre-commit:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: pre-commit/[email protected]

.isort.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[settings]
2+
profile = black

.pre-commit-config.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
repos:
2+
- repo: https://github.com/PyCQA/bandit
3+
rev: 1.7.7
4+
hooks:
5+
- id: bandit
6+
args: [-r, -c, .bandit.yml]
7+
- repo: https://github.com/PyCQA/flake8
8+
rev: 7.0.0
9+
hooks:
10+
- id: flake8
11+
additional_dependencies:
12+
- flake8-bugbear
13+
- flake8-comprehensions
14+
- flake8-debugger
15+
#- flake8-docstrings
16+
- flake8-string-format
17+
- flake8-type-checking
18+
- repo: https://github.com/psf/black.git
19+
rev: 24.2.0
20+
hooks:
21+
- id: black
22+
- repo: https://github.com/pycqa/isort
23+
rev: 5.13.2
24+
hooks:
25+
- id: isort
26+
- repo: https://github.com/adamchainz/blacken-docs
27+
rev: 1.16.0
28+
hooks:
29+
- id: blacken-docs
30+
additional_dependencies:
31+
- black==24.2.0
32+
- repo: https://github.com/asottile/pyupgrade
33+
rev: v3.15.2
34+
hooks:
35+
- id: pyupgrade
36+
args: [--py38-plus, --keep-runtime-typing]

AUTHORS.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Credits
55
Development Lead
66
----------------
77

8-
* Rolando Espinoza <rolando at rmax.io>
8+
* R Max Espinoza <hey at rmax.dev>
99

1010
Contributors
1111
------------

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2022, Rolando Espinoza
1+
Copyright (c) 2011-2024, R Max Espinoza
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of
44
this software and associated documentation files (the "Software"), to deal in

0 commit comments

Comments
 (0)