python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Simplifying line length with pre-commit, flake8, black, isort, pylint, etc
When using multiple tools that either check or format python files, is there a way to set line length once for all?
Currently I have:
.flake8 file:
max-line-length = 120
.isort.cfg file:
line-length ...
Marjeta
Votes: 0
Answers: 2
Making functions available at `package/__init__.py`, how can I prevent module internal code from importing from the top level `__init__.py`?
I'm writing a data manipulation package based on python pandas. For the part which has a functional style, I would like to make my package hierarchy flatter. Currently functions need to be imported us...
Paul Rougieux
Votes: 0
Answers: 3
Flake8 gives F832 Undefined Name despite using "from __future__ import annotations"
I have this pyi file.
from __future__ import annotations
import datetime
class Payment:
amount: float = ...
date: datetime.date = ...
def set_amount(self: Payment, amount: float = Amoun...
Phil-ZXX
Votes: 0
Answers: 1
GitHub actions flake8 Lint failing upon commit "failed with exit code 1"
I have a repo on GitHub where I have included my.yaml file for a github actions configuration as below:
name: flake8 Lint
on: [push, pull_request]
jobs:
flake8-lint:
runs-on: ubuntu-latest
...
charliejames1995
Votes: 0
Answers: 1