<commit_before>

;;; Python

(require 'flycheck)

;; (flycheck-def-args-var ds/flycheck-python-dmypy-args python-dmypy)

;; (flycheck-define-checker python-dmypy
;;   "Dmypy syntax checker.
;; Customize `flycheck-python-dmypy-args` to add specific args to default
;; executable.
;; E.g. when processing Python2 files, add \"--py2\".
;; See URL `http://mypy-lang.org/'."

;;   :command (ds/flycheck-python-dmypy-binary (eval ds/flycheck-python-dmypy-args))
;;   :error-patterns
;;   ((error line-start (file-name) ":" line ":" column ": error:" (message) line-end)
;;    (warning line-start (file-name) ":" line ":" column ": warning:" (message) line-end)
;;    (info line-start (file-name) ":" line ":" column ": note:" (message) line-end))
;;   :modes python-mode)

;; (add-to-list 'flycheck-checkers 'python-dmypy t)<commit_msg>Asterisk configuration - use Windowsesque setup<commit_after>

;;; Python

(require 'flycheck)

;; (flycheck-def-args-var ds/flycheck-python-dmypy-args python-dmypy)

;; (flycheck-define-checker python-dmypy
;;   "Dmypy syntax checker.
;; Customize `flycheck-python-dmypy-args` to add specific args to default
;; executable.
;; E.g. when processing Python2 files, add \"--py2\".
;; See URL `http://mypy-lang.org/'."

;;   :command (ds/flycheck-python-dmypy-binary (eval ds/flycheck-python-dmypy-args))
;;   :error-patterns
;;   ((error line-start (file-name) ":" line ":" column ": error:" (message) line-end)
;;    (warning line-start (file-name) ":" line ":" column ": warning:" (message) line-end)
;;    (info line-start (file-name) ":" line ":" column ": note:" (message) line-end))
;;   :modes python-mode)

(defun ds/asterisk-conf-windows ()
  (interactive)
  (when (s-contains-p (buffer-file-name) "/asterisk-logic/")
    (conf-windows-mode)))
(add-hook 'conf-mode-hook #'ds/asterisk-conf-windows)

;; (add-to-list 'flycheck-checkers 'python-dmypy t)
{'fraction_non_alphanumeric': 0.19501854795972443, 'fraction_numerical': 0.0021197668256491787, 'mean_word_length': 4.075268817204301, 'pattern_counts': {'":': 18, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '752265', 'n_tokens_mistral': 692, 'n_tokens_neox': 680, 'n_words': 146}