-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow running python -m fortls #197
Conversation
Codecov Report
@@ Coverage Diff @@
## master #197 +/- ##
=======================================
Coverage 86.02% 86.03%
=======================================
Files 11 12 +1
Lines 4436 4439 +3
=======================================
+ Hits 3816 3819 +3
Misses 620 620
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
for more information, see https://pre-commit.ci
This pre-commit.ci autofix is quite useful to circumvent the first-time-contributor limitations... not that I plan to do anything malicious, but for running the CI on my patch it is invaluable. |
Does adding main.py mean that we should modify the entry_point of fortls? |
No, they are independent from each other. The |
Great, thanks for the help. I suppose this has something to do with the brew packaging. |
I might have to add back the |
You should be able to replace this with |
Vscode might (I don't remember) not permit that. Either way it's not very important for me and I have a few changes down the line that would make this a non-issue. As of now, there are solutions like pip install -e . or simply keeping a file like fortls.py somewhere locally. |
Editable install seems preferable, if you need to set a path, making |
Add a
__main__.py
to allow runningpython -m fortls
.