setup.cfg 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. [aliases]
  2. test = pytest
  3. [bdist_wheel]
  4. python-tag = py3
  5. [tool:pytest]
  6. # More options are set in `setup.py` via environment variable `PYTEST_ADDOPTS`
  7. addopts = --flake8 --isort --typeguard-packages=radicale --cov --cov-report=term --cov-report=xml -r s
  8. norecursedirs = dist .cache .git build Radicale.egg-info .eggs venv
  9. [tool:isort]
  10. known_standard_library = _dummy_thread,_thread,abc,aifc,argparse,array,ast,asynchat,asyncio,asyncore,atexit,audioop,base64,bdb,binascii,binhex,bisect,builtins,bz2,cProfile,calendar,cgi,cgitb,chunk,cmath,cmd,code,codecs,codeop,collections,colorsys,compileall,concurrent,configparser,contextlib,contextvars,copy,copyreg,crypt,csv,ctypes,curses,dataclasses,datetime,dbm,decimal,difflib,dis,distutils,doctest,dummy_threading,email,encodings,ensurepip,enum,errno,faulthandler,fcntl,filecmp,fileinput,fnmatch,formatter,fpectl,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,macpath,mailbox,mailcap,marshal,math,mimetypes,mmap,modulefinder,msilib,msvcrt,multiprocessing,netrc,nis,nntplib,ntpath,numbers,operator,optparse,os,ossaudiodev,parser,pathlib,pdb,pickle,pickletools,pipes,pkgutil,platform,plistlib,poplib,posix,posixpath,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,spwd,sqlite3,sre,sre_compile,sre_constants,sre_parse,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
  11. known_third_party = defusedxml,passlib,pkg_resources,pytest,vobject
  12. [flake8]
  13. # Only enable default tests (https://github.com/PyCQA/flake8/issues/790#issuecomment-812823398)
  14. select = E,F,W,C90,DOES-NOT-EXIST
  15. ignore = E121,E123,E126,E226,E24,E704,W503,W504,DOES-NOT-EXIST
  16. [mypy]
  17. ignore_missing_imports = True
  18. show_error_codes = True
  19. [coverage:run]
  20. branch = True
  21. source = radicale
  22. omit = tests/*,*/tests/*
  23. [coverage:report]
  24. # Regexes for lines to exclude from consideration
  25. exclude_lines =
  26. # Have to re-enable the standard pragma
  27. pragma: no cover
  28. # Don't complain if tests don't hit defensive assertion code:
  29. raise AssertionError
  30. raise NotImplementedError
  31. # Don't complain if non-runnable code isn't run:
  32. if __name__ == .__main__.: