Skip to content

Commit c99cfcb

Browse files
authored
Drop support for Python 3.8 and lower, add pre-commit
1 parent 9e06e1c commit c99cfcb

13 files changed

+1842
-2744
lines changed

.bandit.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
skips:
2+
- B101 # assert_used, needed for mypy
3+
- B311
4+
- B320
5+
- B410
6+
exclude_dirs: ['tests']

.flake8

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length = 88

.git-blame-ignore-revs

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# applying pre-commit hooks to the project
2+
ca42e4247d872a174afc539902e156282940ad5d

.github/workflows/main.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
include:
13-
- python-version: "3.6"
14-
env:
15-
TOXENV: py
16-
- python-version: "3.7"
17-
env:
18-
TOXENV: py
19-
- python-version: "3.8"
13+
- python-version: "3.9"
2014
env:
2115
TOXENV: py
2216
- python-version: "3.9"
@@ -49,3 +43,9 @@ jobs:
4943
run: |
5044
pip install -U tox
5145
tox
46+
47+
pre-commit:
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v4
51+
- uses: pre-commit/[email protected]

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@
1616
.tox/
1717
.pytest_cache/
1818
.coverage
19+
20+
# python virtual env
21+
.venv/
22+
venv/
23+
.env/
24+
env/

.isort.cfg

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

.pre-commit-config.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
repos:
2+
- repo: https://github.com/PyCQA/bandit
3+
rev: 1.7.9
4+
hooks:
5+
- id: bandit
6+
args: [-r, -c, .bandit.yml]
7+
- repo: https://github.com/psf/black.git
8+
rev: 24.8.0
9+
hooks:
10+
- id: black
11+
- repo: https://github.com/PyCQA/flake8
12+
rev: 7.1.1
13+
hooks:
14+
- id: flake8
15+
- repo: https://github.com/pycqa/isort
16+
rev: 5.13.2
17+
hooks:
18+
- id: isort

price_parser/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# -*- coding: utf-8 -*-
2-
from .parser import Price, parse_price
2+
from .parser import Price, parse_price # noqa F401

0 commit comments

Comments
 (0)