Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

syntax-checking

python: how to check syntax of python file/script without executing it?

April 13, 2024 by Tarik

You can check the syntax by compiling it: python -m py_compile script.py

Categories python Tags compilation, python, syntax-checking Leave a comment

PHP Syntax checking pre-source control

December 17, 2023 by Tarik
Categories php Tags fastcgi, php, syntax-checking Leave a comment

How to check TypeScript code for syntax errors from a command line?

November 26, 2023 by Tarik

The tsc –noEmit is what you’re searching. Do not emit compiler output files like JavaScript source code, source-maps or declarations. source TSDocs If you want lint code as well as check types on CI use tsc –noEmit && eslint source Stackoverflow comment

Categories typescript Tags compilation, syntax, syntax-checking, typescript, verification Leave a comment

Compile (but do not run) a Python script [duplicate]

December 24, 2022 by Tarik

python -m py_compile script.py

Categories python Tags python, syntax-checking Leave a comment

How can I check the syntax of Python script without executing it?

September 18, 2022 by Tarik

You can check the syntax by compiling it: python -m py_compile script.py

Categories python Tags compilation, python, syntax-checking Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa