Refactored sites module, updated documentation (#1918)

This commit is contained in:
Soxoj
2024-12-01 11:41:41 +01:00
committed by GitHub
parent 5073ceff13
commit 2f93963a0a
8 changed files with 190 additions and 85 deletions
+2 -2
View File
@@ -16,10 +16,10 @@ lint:
flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --ignore=E731,W503,E501 ${LINT_FILES}
@echo 'mypy'
mypy ${LINT_FILES}
mypy --check-untyped-defs ${LINT_FILES}
speed:
time python3 ./maigret.py --version
time python3 -m maigret --version
python3 -c "import timeit; t = timeit.Timer('import maigret'); print(t.timeit(number = 1000000))"
python3 -X importtime -c "import maigret" 2> maigret-import.log
python3 -m tuna maigret-import.log