Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"3.13"
]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -25,7 +18,9 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-nfse.txt
pip install ruff pytest
pip install -r requirements-dev.txt
- name: Check formatting
run: ruff format --check .
- name: Lint
run: ruff check --output-format=github .
- name: Tests
Expand Down
2 changes: 1 addition & 1 deletion pynfe/entidades/certificado.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def separar_arquivo(self, senha, caminho=False):
except Exception as e:
if "invalid password" in str(e).lower():
raise Exception(
"Falha ao carregar certificado digital A1. Verifique a senha do" " certificado."
"Falha ao carregar certificado digital A1. Verifique a senha do certificado."
) from e
else:
raise Exception(
Expand Down
2 changes: 1 addition & 1 deletion pynfe/entidades/evento.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

"""
@author: Junior Tada, Leonardo Tada
@author: Junior Tada, Leonardo Tada
"""

from decimal import Decimal
Expand Down
2 changes: 1 addition & 1 deletion pynfe/entidades/servico.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
@author: Junior Tada, Leonardo Tada
@author: Junior Tada, Leonardo Tada
"""

from .base import Entidade
Expand Down
12 changes: 3 additions & 9 deletions pynfe/processamento/autorizador_nfse.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,7 @@ def consultar_situacao_lote(self, emitente, numero):
id_prestador.Cnpj = emitente.cnpj
id_prestador.InscricaoMunicipal = emitente.inscricao_municipal

consulta = (
servico_consultar_situacao_lote_rps_envio_v03.ConsultarSituacaoLoteRpsEnvio()
)
consulta = servico_consultar_situacao_lote_rps_envio_v03.ConsultarSituacaoLoteRpsEnvio()
consulta.Prestador = id_prestador
consulta.Protocolo = str(numero)

Expand Down Expand Up @@ -387,9 +385,7 @@ def serializar_lote_assincrono(self, nfse):
if nfse.servico.aliquota:
valores_servico.Aliquota = nfse.servico.aliquota
if nfse.servico.desconto_incondicionado:
valores_servico.DescontoIncondicionado = (
nfse.servico.desconto_incondicionado
)
valores_servico.DescontoIncondicionado = nfse.servico.desconto_incondicionado
if nfse.servico.desconto_condicionado:
valores_servico.DescontoCondicionado = nfse.servico.desconto_condicionado

Expand Down Expand Up @@ -525,9 +521,7 @@ def cancelar_v2(self, nfse):

ns1 = "http://www.ginfes.com.br/servico_cancelar_nfse_envio"
ns2 = "http://www.ginfes.com.br/tipos"
raiz = etree.Element(
"{%s}CancelarNfseEnvio" % ns1, nsmap={"ns1": ns1, "ns2": ns2}
)
raiz = etree.Element("{%s}CancelarNfseEnvio" % ns1, nsmap={"ns1": ns1, "ns2": ns2})
prestador = etree.SubElement(raiz, "{%s}Prestador" % ns1)
etree.SubElement(prestador, "{%s}Cnpj" % ns2).text = nfse.emitente.cnpj
etree.SubElement(
Expand Down
Loading