[settings] # Make isort compatible with black profile = black line_length = 88 multi_line_output = 3 include_trailing_comma = True force_grid_wrap = 0 use_parentheses = True ensure_newline_before_comments = True # Import sections sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER default_section = THIRDPARTY known_first_party = src known_local_folder = tests # Skip files skip = __pycache__,venv,env,.env,.venv,migrations,node_modules,.git skip_glob = */migrations/*,*/__pycache__/*,*/venv/*,*/env/*,*/.env/*,*/.venv/* # Force imports to be sorted within their section force_sort_within_sections = True # Show diff when check fails show_diff = True # Check only, don't modify files (useful for CI) # check_only = True # Treat comments as code treat_comments_as_code = True # Force single line imports for specific modules force_single_line = True single_line_exclusions = typing,collections.abc # Import headings import_heading_future = Future imports import_heading_stdlib = Standard library imports import_heading_thirdparty = Third-party imports import_heading_firstparty = Local application imports import_heading_localfolder = Local folder imports # Balanced wrapping balanced_wrapping = True # Honor noqa comments honor_noqa = True # Atomic imports (prevent partial imports during interruption) atomic = True # Remove redundant aliases remove_redundant_aliases = True # Float to top (move imports to top of file) float_to_top = True # Filter files filter_files = True # Verbose output verbose = False # Quiet mode quiet = False # Force adds force_adds = True # Combine as imports combine_as_imports = True # Combine star imports combine_star = True # Order by type order_by_type = True # Group by package group_by_package = True # Reverse relative imports reverse_relative = True # Add imports add_imports = from __future__ import annotations # Known standard library modules (Python 3.8+) known_standard_library = abc,aifc,argparse,array,ast,asynchat,asyncio,asyncore,atexit, audioop,base64,bdb,binascii,binhex,bisect,builtins,bz2, calendar,cgi,cgitb,chunk,cmd,code,codecs,codeop,collections, colorsys,compileall,concurrent,configparser,contextlib,copy, copyreg,cProfile,crypt,csv,ctypes,curses,datetime,dbm, decimal,difflib,dis,distutils,doctest,email,encodings, ensurepip,enum,errno,faulthandler,fcntl,filecmp,fileinput, fnmatch,formatter,fractions,ftplib,functools,gc,getopt, getpass,gettext,glob,grp,gzip,hashlib,heapq,hmac,html, http,imaplib,imghdr,imp,importlib,inspect,io,ipaddress, itertools,json,keyword,lib2to3,linecache,locale,logging, lzma,mailbox,mailcap,marshal,math,mimetypes,mmap,modulefinder, msilib,msvcrt,multiprocessing,netrc,nntplib,numbers,operator, optparse,os,ossaudiodev,parser,pathlib,pdb,pickle,pickletools, pipes,pkgutil,platform,plistlib,poplib,posix,pprint,profile, pstats,pty,pwd,py_compile,pyclbr,pydoc,queue,quopri,random, re,readline,reprlib,resource,rlcompleter,runpy,sched,secrets, select,selectors,shelve,shlex,shutil,signal,site,smtpd, smtplib,sndhdr,socket,socketserver,sqlite3,ssl,stat,statistics, string,stringprep,struct,subprocess,sunau,symbol,symtable, sys,sysconfig,syslog,tabnanny,tarfile,telnetlib,tempfile, termios,test,textwrap,threading,time,timeit,tkinter,token, tokenize,trace,traceback,tracemalloc,tty,turtle,turtledemo, types,typing,unicodedata,unittest,urllib,uu,uuid,venv, warnings,wave,weakref,webbrowser,winreg,winsound,wsgiref, xdrlib,xml,xmlrpc,zipapp,zipfile,zipimport,zlib # Known third party modules known_third_party = numpy,pandas,scipy,matplotlib,seaborn,plotly,sklearn, torch,tensorflow,keras,transformers,gradio,streamlit, flask,django,fastapi,requests,aiohttp,sqlalchemy, pytest,mock,factory_boy,faker,coverage, click,typer,rich,tqdm,joblib,psutil, yfinance,ta,xgboost,lightgbm,catboost, pillow,opencv,imageio,scikit_image, jupyter,ipython,notebook, pydantic,marshmallow,cerberus, redis,celery,rabbitmq, boto3,azure,gcp, docker,kubernetes, prometheus_client,grafana, sentry_sdk,rollbar, stripe,paypal, twilio,sendgrid, beautifulsoup4,scrapy,selenium, nltk,spacy,gensim, networkx,igraph, dask,ray, mlflow,wandb,tensorboard, black,flake8,mypy,pylint,bandit,safety