Skip to content

Commit 6ce6176

Browse files
authored
Merge branch 'TadaSoftware:main' into master
2 parents 407828e + aaf0b1b commit 6ce6176

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ jobs:
77
fail-fast: false
88
matrix:
99
python-version: [
10-
"3.6",
11-
"3.7",
1210
"3.8",
1311
"3.9",
1412
"3.10",
@@ -23,10 +21,10 @@ jobs:
2321
python-version: ${{ matrix.python-version }}
2422
- name: Install dependencies
2523
run: |
26-
pip install Flake8-pyproject
24+
python -m pip install --upgrade pip
2725
pip install -r requirements.txt
28-
pip install flake8 pytest
26+
pip install ruff pytest
2927
- name: Lint
30-
run: flake8 . --count --show-source --statistics
28+
run: ruff check --output-format=github .
3129
- name: Tests
3230
run: pytest -v

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## PyNFe
22

33
[![Active Development](https://img.shields.io/badge/Maintenance%20Level-Actively%20Developed-brightgreen.svg)](https://gist.github.com/cheerfulstoic/d107229326a01ff0f333a1d3476e068d)
4-
![status](https://img.shields.io/badge/status-stable-green.svg) ![https://github.com/TadaSoftware/PyNFe/actions](https://github.com/TadaSoftware/PyNFe/workflows/PyNFe%20CI/badge.svg?branch=main) ![pyversions](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue)
4+
![status](https://img.shields.io/badge/status-stable-green.svg) ![https://github.com/TadaSoftware/PyNFe/actions](https://github.com/TadaSoftware/PyNFe/workflows/PyNFe%20CI/badge.svg?branch=main) ![pyversions](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue)
55
[![PyPI version](https://badge.fury.io/py/pynfe.svg)](https://badge.fury.io/py/pynfe)
66

77

@@ -150,6 +150,13 @@ Testes
150150
python -m unittest
151151
```
152152

153+
Lint
154+
-----------
155+
156+
Instalação: `pip install ruff`
157+
Checar lint: `ruff check .`
158+
Formatar: `ruff format .`
159+
153160

154161
Documentação
155162
-----------

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[build-system]
22
requires = ["setuptools>=42"]
33
build-backend = "setuptools.build_meta"
4-
[tool.flake8]
5-
per-file-ignores = [
6-
'/pynfe/entidades/__init__.py:F401'
4+
[tool.ruff]
5+
exclude = [
6+
'pynfe/entidades/__init__.py'
77
]
8-
max-line-length = 100
8+
line-length = 100

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@
4242
],
4343
},
4444
zip_safe=False,
45-
python_requires=">=3.6",
45+
python_requires=">=3.8",
4646
)

0 commit comments

Comments
 (0)