File tree Expand file tree Collapse file tree 4 files changed +16
-11
lines changed
Expand file tree Collapse file tree 4 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
150150python -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
154161Documentação
155162-----------
Original file line number Diff line number Diff line change 11[build-system ]
22requires = [" setuptools>=42" ]
33build-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
Original file line number Diff line number Diff line change 4242 ],
4343 },
4444 zip_safe = False ,
45- python_requires = ">=3.6 " ,
45+ python_requires = ">=3.8 " ,
4646)
You can’t perform that action at this time.
0 commit comments