Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Add support for $PROJECT substitution #143

Merged
merged 1 commit into from
Feb 24, 2016
Merged

Add support for $PROJECT substitution #143

merged 1 commit into from
Feb 24, 2016

Conversation

keras
Copy link
Contributor

@keras keras commented Jan 24, 2016

Copied functionality from https://github.com/sadovnychyi/autocomplete-python to add support for project-specific flakes with $PROJECT or $PROJECT_NAME substitutions for project specific paths e.g. $PROJECT/.venv/bin/flake8.

@@ -170,6 +181,7 @@ module.exports =
parameters.push('-')

execPath = atom.config.get('linter-flake8.executablePath')
execPath = applySubstitutions(execPath)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just combine this into the line above?

@Arcanemagus
Copy link
Member

Sorry it took so long to get to reviewing this!

@@ -144,6 +144,17 @@ module.exports =
provideLinter: ->
helpers = require('atom-linter')
path = require('path')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make stuff simpler, we could make this Path and then use path to store path value below

@keras
Copy link
Contributor Author

keras commented Jan 27, 2016

Any better?

@Arcanemagus
Copy link
Member

LGTM, any further comments @steelbrain?

@steelbrain
Copy link
Contributor

Does this project has specs? If it does, it would be nice to have one for this PR. Otherwise, you have my go if it works

@Arcanemagus
Copy link
Member

It does, and that's an excellent idea 😉.

@Arcanemagus
Copy link
Member

@keras Rebase and add specs and I would love to merge this 😉.

@keras keras changed the title Add support for $PROJECT_NAME and $PROJECT substitutions Add support for $PROJECT substitution Feb 7, 2016
@k4nar
Copy link

k4nar commented Feb 10, 2016

It would be very great to have $PROJECT_NAME also (like in autocomplete-python). That way it's easier for projects using a virtualenv outside the project root (/home/user/.local/share/virtualenvs/$PROJECT_NAME/bin/python for instance).

@Arcanemagus
Copy link
Member

Sorry @keras, didn't see that you had added the specs! I'll merge this in now and push out a release.

Arcanemagus added a commit that referenced this pull request Feb 24, 2016
Add support for $PROJECT substitution
@Arcanemagus Arcanemagus merged commit b38813e into AtomLinter:master Feb 24, 2016
@Arcanemagus
Copy link
Member

Published as v1.12.0. 🎉

@ghost ghost mentioned this pull request Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants